1 libguestfs is a library for accessing and modifying guest disk images.
2 Amongst the things this is good for: making batch configuration
3 changes to guests, getting disk used/free statistics (see also:
4 virt-df), migrating between virtualization systems (see also:
5 virt-p2v), performing partial backups, performing partial guest
6 clones, cloning guests and changing registry/UUID/hostname info, and
9 libguestfs uses Linux kernel and qemu code, and can access any type of
10 guest filesystem that Linux and qemu can, including but not limited
11 to: ext2/3/4, btrfs, FAT and NTFS, LVM, many different disk partition
12 schemes, qcow, qcow2, vmdk.
14 libguestfs provides ways to enumerate guest storage (eg. partitions,
15 LVs, what filesystem is in each LV, etc.). It can also run commands
16 in the context of the guest. Also you can mount guest filesystems on
17 the host (requires root privs and NFS).
19 libguestfs is a library that can be linked with C and C++ management
20 programs (or management programs written in other languages, if people
21 contribute the language bindings). You can also use it from shell
22 scripts or the command line.
24 libguestfs was written by Richard W.M. Jones (rjones@redhat.com).
25 For discussion please use the fedora-virt mailing list:
27 https://www.redhat.com/mailman/listinfo/fedora-virt
31 ----------------------------------------------------------------------
33 - recent QEMU with vmchannel support
39 - (Optional) local Fedora mirror
41 Running ./configure will check you have all the requirements installed
46 ----------------------------------------------------------------------
48 Then make the daemon, library and root filesystem:
50 ./configure [--with-mirror=URI]
53 Use the optional --with-mirror parameter to specify the URI of a local
54 Fedora mirror. See the discussion of the MIRROR parameter in the
55 febootstrap(8) manpage.
57 Finally run the tests:
61 If everything works, you can install the library and tools by running
62 these commands as root:
67 Notes on cross-architecture support
68 ----------------------------------------------------------------------
70 At the moment we basically don't support cross-architecture or
71 32-on-64. This limits what is possible for some guests. Filesystem
72 operations and NFS export will work fine, but running commands in
73 guests may not be possible.
75 To enable this requires work for cross-architecture and 32-on-64
76 support in febootstrap, fakeroot and fakechroot.
78 The daemon/ directory contains its own configure script. This is so
79 that in future we will be able to cross-compile the daemon.
83 ----------------------------------------------------------------------
85 Having a local Fedora mirror makes a massive difference to the time it
86 takes to build and rebuild initramfs images.
88 Failing that, use squid to cache yum downloads, but read this first:
89 https://lists.dulug.duke.edu/pipermail/yum/2006-August/009041.html
90 (In brief, because yum chooses random mirrors each time, squid doesn't
91 work very well with default yum configuration. To get around this,
92 choose a Fedora mirror which is close to you, set this with
93 './configure --with-mirror=[...]', and then proxy the whole lot
94 through squid by setting http_proxy environment variable).
97 Copyright and license information
98 ----------------------------------------------------------------------
100 Copyright (C) 2009 Red Hat Inc.
102 The library is distributed under the LGPLv2+. The programs are
103 distributed under the GPLv2+. Please see the files COPYING and
104 COPYING.LIB for full license information.