Once you’ve backed up your VM and checked (and eventually repaired) your VMware VM’s disk then proceed as follow:
1) Boot up your VMware VM and UNINSTALL VMware Tools, this because VMware tools will conflict with KVM (or Virtualbox), so you need to uninstall them before converting your VM.
2) If you created your VMware VM disk dividing it in multiple files then you’ll have to merge them into one file before converting your VM, this because KVM and Virtualbox converter uses only one file to convert it into a KVM or Virtualbox image file.
To do so get into your VM directory container and type:
$ vmware-vdiskmanager -r my-vm-disk.vmdk -t 0 my-vm-disk-new.vmdk
3) When your VM is finally ready for to be converted, convert it by executing:
To convert your VM to a KVM VM:
$ qemu-img convert my-vm-disk-new.vmdk -O qcow2 my-vm-disk-kvm.qcow2
To convert your VM to a Virtualbox VM:
$ qemu-img convert my-vm-disk-new.vmdk -O vdi my-vm-disk-vbx.vdi
Thanks for reading and, if you enjoyed this post, please support my blog by visiting my on-line hacking and engineering merchandise shop on redbubble.com by clicking here, thank you! 🙂