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

14 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).

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 )

Google+ photo

You are commenting using your Google+ 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.