Scroll to navigation

guestfs-examples(3) Virtualization Support guestfs-examples(3)
 

НАЗВА

guestfs-examples — приклади використання libguestfs з коду мовою C

КОРОТКИЙ ОПИС

 #include <guestfs.h>
 
 guestfs_h *g = guestfs_create ();
 guestfs_add_drive_ro (g, "disk.img");
 guestfs_launch (g);
 cc prog.c -o prog -lguestfs
або:
 cc prog.c -o prog `pkg-config libguestfs --cflags --libs`

ОПИС

This manual page contains examples of calling libguestfs from the C programming language. If you are not familiar with using libguestfs, you also need to read guestfs(3).

ПРИКЛАД. СТВОРЕННЯ ОБРАЗУ ДИСКА

@CREATE_DISK@

ПРИКЛАД. ПЕРЕВІРКА ОБРАЗУ ДИСКА ВІРТУАЛЬНОЇ МАШИНИ

@INSPECT_VM@

EXAMPLE: ENABLE DEBUGGING AND LOGGING

@DEBUG_LOGGING@

EXAMPLE: DISPLAY THE OPERATING SYSTEM ICON OF A GUEST

@DISPLAY_ICON@

EXAMPLE: THE LIBVIRT AUTHENTICATION API

@LIBVIRT_AUTH@

EXAMPLE: THE MOUNT LOCAL API

@MOUNT_LOCAL@

EXAMPLE: MULTIPLE HANDLES AND THREADS

@COPY_OVER@

EXAMPLE: FETCH DHCP ADDRESS FROM A GUEST

@VIRT_DHCP_ADDRESS@

ТАКОЖ ПЕРЕГЛЯНЬТЕ

guestfs(3), guestfs-erlang(3), guestfs-golang(3), guestfs-java(3), guestfs-lua(3), guestfs-ocaml(3), guestfs-perl(3), guestfs-python(3), guestfs-recipes(1), guestfs-ruby(3), http://libguestfs.org/.

АВТОРИ

Richard W.M. Jones ("rjones at redhat dot com")

АВТОРСЬКІ ПРАВА

Copyright (C) 2010-2014 Red Hat Inc.

LICENSE

BUGS

To get a list of bugs against libguestfs, use this link: https://bugzilla.redhat.com/buglist.cgi?component=libguestfs&product=Virtualization+Tools
To report a new bug against libguestfs, use this link: https://bugzilla.redhat.com/enter_bug.cgi?component=libguestfs&product=Virtualization+Tools
When reporting a bug, please supply:
The version of libguestfs.
Where you got libguestfs (eg. which Linux distro, compiled from source, etc)
Describe the bug accurately and give a way to reproduce it.
Run libguestfs-test-tool(1) and paste the complete, unedited output into the bug report.
2014-10-18 libguestfs-1.28.1