New in libguestfs 1.27.34 – virt-v2v and virt-p2v

There haven’t been too many updates around here for a while, and that’s for a very good reason: I’ve been “heads down” writing the new versions of virt-v2v and virt-p2v, our tools for converting VMware and Xen virtual machines, or physical machines, to run on KVM.

The new virt-v2v [manual page] can slurp in a guest from a local disk image, local Xen, VMware vCenter, or (soon) an OVA file — convert it to run on KVM — and write it out to RHEV-M, OpenStack Glance, local libvirt or as a plain disk image.

It’s easy to use too. Unlike the old virt-v2v there are no hairy configuration files to edit or complicated preparations. You simply do:

$ virt-v2v -i disk xen_disk.img -o local -os /tmp

That command (which doesn’t need root, naturally) takes the Xen disk image, which could be any supported Windows or Enterprise Linux distro, converts it to run on KVM (eg. installing virtio drivers, adjusting dozens of configuration files), and writes it out to /tmp.

To connect to a VMware vCenter server, change the -i options to:

$ virt-v2v -ic vpx://vcenter/Datacenter/esxi "esx guest name" [-o ...]

To output the converted disk image to OpenStack glance, change the -o options to:

$ virt-v2v [-i ...] -o glance [-on glance_image_name]

Coming up: The new technology we’ve used to make virt-v2v much faster.


Filed under Uncategorized

20 responses to “New in libguestfs 1.27.34 – virt-v2v and virt-p2v

  1. This = awesome. Having used the old virt-v2v at a previous job, it greatly helped our migration effort. Thank you for the hard work!

  2. Hi,

    Why I’m getting wile try to execute virt-v2v with -o local parameter ?
    virt-v2v: local is not a valid output method

    [root@ntnx-kvm-1 ~]# virt-v2v –version

    any ideas ?

  3. sorry for next dummy question but after installation libguestfs-RHEL-7.1-preview on my CentOS 7.0 I have no virt-v2v tools at all. Am I missing something ? Shell install them on RHEL 7.0 ?

  4. Eric

    Is there a new installation process? The repo in the email is offline and I can’t seem to find virt-v2v in yum. I am running Centos 7.1.1503.

    • rich

      Take a look at the two emails here for packages that will run on RHEL 7.1. You will still need to find qemu-kvm-rhev (I hope CentOS ships that).

  5. Bob

    Is it still possible to do p2v on a RHEL 7.4 machine and run it virtually on a RHEL 8.4 ? Thanks!

  6. Bob

    Hi Rich, not yet but will be trying soon. Thanks.

    • Bob

      Does p2v have any limitation with a LUKS encrypted drive? if so are there work arounds?
      Thank You.

      • Bob

        One more question. I have installed libguestfs and libguestfs-tools successfully via sudo yum but don’t seem to have the virt-p2v-make-disk. Any ideas? I have RHEL 7.9 if that matters.

        Thanks Again.

      • rich

        To be honest I can’t remember about LUKS support. We’re actually hiring someone to work on virt-p2v at the moment so expect things to pick up in future. RHEL 7 doesn’t have virt-p2v-make-disk because we ship the virt-p2v ISO in RHN directly (search for virt-p2v in the portal). If you want to build the virt-p2v ISO then you’d need to use Fedora directly. You might find better support on the mailing list or our IRC channel #libguestfs on Libera.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.