Convert vmware image to virtualbox how to#
That is all on how to use VirtualBox VMs on KVM. You can now transfer the QCOW2 disk image to KVM host.Īfter that, you can create a new virtual machine by importing from the existing disk image. You can simply do the direct conversions of VDI to QCOW2 by executing the command below qemu-img convert -f vdi -O qcow2 vm-disk-name.vdi vm-disk-name.qcow2 Create New KVM Virtual Machine The conversion can be done by executing the command below qemu-img convert -f raw vm-disk-name.img -O qcow2 vm-disk-name.qcow2 Convert VDI Directly to QCOW2 I have been able to move quite a few VMs and physical machines to VMware after some adjustments. After the final restart you should have your VirtualBox machine running on VMware. After the machine restarts, install the VMware Guest Tools. Now, copy the raw disk image to the host running KVM and convert it to the format supported by KVM, in this case, qcow2. First remove VirtualBox Guest Additions and restart. ls ~/kvm-images vm-disk-name.img Convert RAW Disk Image to KVM QCOW2 You should now be having a RAW virtual machine disk image, located in the ~/kvm-images for our case. Replace the location of the VirtualBox VM and the name of the VM disk ( /path/to/vm-disk-name.vdi) accordingly. Next, convert a specific VirtualBox VM disk to raw image. Convert VirtualBox VDI to Raw Disk ImageĬreate a directory to store KVM images. Another method is to directly convert VDI to QCOW2 using the qemu-img command.One method is to convert VDI to raw disk image (.img) and then convert the raw disk image to QCOW2.There are two ways in which we can convert the VirtualBox disk image into KVM qcow2. We also assume that you are not running VirtualBox and KVM on the same host at the same time.