vmware VMDK conversion
it appears that V2V conversion from a vmware source requires that the source is on an ESX server. What if we are not running an ESX server and only have the VMDK files? Is it Possible to convert from the stand-alone VMDK file without an ESX server. If so what is the best way to do this?
Responses
vmdk files can be converted to raw or qcow2, but virt-v2v does more than format conversion - it also injects the virtio drivers and prepares the VM to run on RHEV.
The easiest way to do this would be to just set up an ESXi server and run virt-v2v properly. Alternatively, you could convert the files manually, and set up a libvirt based VM, from which virt-v2v would pull the VMs.
Simple file support can be a great RFE, btw
You can also use the Acronis ABR11 software to achieve this. A trial that includes 3 free migrations can be found on the Red Hat Marketplace at:
http://marketplace.redhat.com/rhev/5-Acronis-Backup-Recovery-Virtual-Edition-11
We are hoping to fix this for RHEL 7 [usually disclaimers about future features, E&OE, YMMV, etc]
It needs work which is mostly complete now in qemu, plus further development work in virt-v2v. I cannot find the RFE right this minute ...
Dear Dave,
Thanks for sharing the details. However can you please help me to understand from where we can get "virt-convert" package as i dont see that package in RHN ?
Kindly suggest.
Thanks,
Ashish
Thank you ver much it works and I am able to download virtu-convert.
However when I ran this command, I got the below error:
[root@ipas home]# ll
total 4965188
drwx------. 4 redhat redhat 4096 Mar 19 13:03 redhat
-rwxr-xr-x 1 root root 5079367680 Mar 21 15:43 Red Hat Enterprise Linux 5.vmdk
-rwxr-xr-x 1 root root 1400 Mar 21 15:43 Red Hat Enterprise Linux 5.vmx
[root@ipas home]# virt-convert -i vmx Red\ Hat\ Enterprise\ Linux\ 5.vmx
Generating output in 'virt-image' format to RHEL5_Yum/
Converting disk 'Red Hat Enterprise Linux 5.vmdk' to type raw...
Done.
[root@ipas home]#
[root@ipas home]# ll
total 4965192
drwx------. 4 redhat redhat 4096 Mar 19 13:03 redhat
-rwxr-xr-x 1 root root 5079367680 Mar 21 15:43 Red Hat Enterprise Linux 5.vmdk
-rwxr-xr-x 1 root root 1400 Mar 21 15:43 Red Hat Enterprise Linux 5.vmx
drwxr-xr-x 2 root root 4096 Mar 21 16:05 RHEL5_Yum
[root@ipas home]#
[root@ipas RHEL5_Yum]# virt-v2v -i libvirtxml -o rhev -os 10.10.10.200:/ISO RHEL5_Yum.virt-image.xml
virt-v2v: RHEL5_Yum.virt-image.xml doesn't look like a libvirt domain XML file
[root@ipas RHEL5_Yum]# ll
total 4861124
-rw-r--r-- 1 root root 12884901888 Mar 21 16:05 Red_Hat_Enterprise_Linux_5.raw
-rw-r--r-- 1 root root 495 Mar 21 16:05 RHEL5_Yum.virt-image.xml
[root@ipas RHEL5_Yum]# cd ..
[root@ipas home]# ll
Kindly suggest what is the issue in the same.
It's simply not possible to use virt-v2v (or any of our tools) in the manner you are trying. This feature is scheduled for RHEL 7.
Dear Richard,
I am able to convert one of my vmware machine to RHEV virtual machine by creating the xml file manually however now when I am trying to convert a vhd vm (which has already been converted by "qemu-img convert manager.vhd -O raw manager.img" into RHEV virtual machine, I am receiving the below mentioned error:
[root@manager home]#
[root@manager home]# virt-v2v -i libvirtxml -o rhev -os 10.10.10.200:/ISO libvirt.xml
manager.img: 100% [===============================================================================================================]D 0h09m33s
inspect_os: umount_all: umount: /sysroot: umount: /sysroot: device is busy.
(In some cases useful info about processes that use
the device is found by lsof(8) or fuser(1)) at /usr/share/perl5/vendor_perl/Sys/VirtConvert/GuestfsHandle.pm line 187.
at /usr/bin/virt-v2v line 602
Kindly suggest what can be the issue or what is the workaround to convert a windows vhd virtual machines into rhev virtual machine
Thanks,
Ashish
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
