awda parent
Anyone know if there are good tools for migrating a VMware .vmx and accompanying files to a QEMU machine? Or is this more complicated than I imagine? I'd like to ditch the VMware crap modules that break with every kernel upgrade in favor of KVM.
I did just that when I switched my server from ESXi (which used the same formats). For me, the vmware2libvirt command from Ubuntu's virt-goodies package did the trick.
I documented my transition in some of the sections on this page: https://justdavis.com/karl/it/davis/servers/eddings/vms.html
Thanks, this was very helpful. Here's what I did (converting VMware Workstation VM):
1) Followed rwmj's guide to setting up a br0 device for libvirt in Fedora.
2) Deleted all vmware snapshots. sync. sync.
3) Grabbed vmware2libvirt from Ubuntu (it's just a standalone python script) and
used it with --bridge br0 -f foo.vmx > foo.xml.
4) Converted my vmdk to raw with qemu-img, moved it to /var/lib/libvirtd per your
instructions
5) Edited my xml to point to the right disk, use the qemu/raw driver, use the right
path for kvm (/urs/bin/qemu-kvm on Fedora).
6) Import into libvirt with virsh define foo.xml
7) virsh start foo
It just works! Great. And virt-viewer over qemu+ssh is great; I run this VM on a headless box on the LAN from my desktop.You can try using virt-tools (e.g. libvirt, virt-v2v). I think virt-v2v may do what you want: https://access.redhat.com/site/documentation/en-US/Red_Hat_E...
qemu-img convert
http://docs.openstack.org/image-guide/content/ch_converting....
Ok, that gets me the disk image :). What about configuration?
Ovfconverter should be able to go both ways and translate the configuration to and from what you want. Naturally there are some limitations, as not all hypervisors support what other hypervisors support, visa versa.
KVM can work with VMware vmdk-flat files natively without conversion. Just make sure you have the drivers and kernel support for KVM installed beforehand and you don't even need to convert them.