[Libguestfs] using virt-v2v
Richard W.M. Jones
rjones at redhat.com
Mon Jul 27 17:56:52 UTC 2015
On Mon, Jul 27, 2015 at 07:10:05PM +0200, Arsène Gschwind wrote:
> Hi,
>
> I'm trying to migrate some VMs from KVM to oVirt using virt-v2v and
> I cannot get it to work.
>
> What will be the best/working strategy for doing such a migration.
You don't need to (and _shouldn't_) use virt-v2v if the guest already
works on KVM. It's only for importing guests which run other
hypervisors like VMware, Xen or Hyper-V (or physical, via virt-p2v).
Having said that, there was a problem that oVirt didn't support
imports of disk images. I don't know if that feature was added yet.
> Where do I have to install virt-v2v on the oVirt management host?
> I've setup a RHEL 7.1 VM with the libguestfs preview for RHEL 7.2,
> will this work that way. My VM are located on FC LUNs on the KVM
> server, I'm able to access libvirt using qemu+ssh but the it returns
> an error that it cannot find the device where the VM is located on.
For reference if trying to use virt-v2v to import a VMware/etc guest,
there are two ways to do this. Either install virt-v2v in any RHEL 7
VM anywhere (but preferably somewhere with a good network connection
to the source and destination), and use a command line like the one
suggested here:
http://libguestfs.org/virt-v2v.1.html#convert-from-vmware-to-rhev-m-ovirt
Or with oVirt 3.6+ there is a GUI interface you can use. In that case
virt-v2v is installed on a RHEV-H node, but that should be transparent
to the end user.
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
libguestfs lets you edit virtual machines. Supports shell scripting,
bindings from many languages. http://libguestfs.org
More information about the Libguestfs
mailing list