[Libguestfs] More notes on virt-v2v 1.27.27

Richard W.M. Jones rjones at redhat.com
Fri Aug 15 18:26:41 UTC 2014


This is a quick way to check that virt-v2v is working for you (using
libguestfs from git).

$ ./run virt-builder fedora-20
[   1.0] Downloading: http://libguestfs.org/download/builder/fedora-20.xz
[   2.0] Planning how to build this image
[   2.0] Uncompressing
[  42.0] Opening the new disk
[  53.0] Setting a random seed
[  53.0] Setting passwords
Setting random password of root to kKwqFUcYYTVXUHoJ
[  53.0] Finishing off
                   Output file: fedora-20.img
                   Output size: 4.0G
                 Output format: raw
            Total usable space: 5.2G
                    Free space: 4.5G (86%)

$ ./run virt-v2v -i disk fedora-20.img -o local -os /tmp 
[   0.0] Creating an overlay to protect the source from being modified
[   0.0] Opening the overlay
[   9.0] Initializing the target -o local -os /tmp
[   9.0] Inspecting the overlay
[  14.0] Converting Fedora release 20 (Heisenbug) to run on KVM
virt-v2v: warning: could not update grub2 console: aug_get: no matching 
node (ignored)
[  32.0] Trimming filesystems to reduce amount of data to copy
[  32.0] Closing the overlay
[  33.0] Copying disk 1/1 to /tmp/fedora-20-sda (raw)
[  36.0] Creating output metadata
[  36.0] Finishing off

It's not a very meaningful test because it "converts" a KVM image to
run on KVM.  However it's useful because it checks that everything is
working, and it only takes a few minutes.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-top is 'top' for virtual machines.  Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://people.redhat.com/~rjones/virt-top




More information about the Libguestfs mailing list