The first part was an introduction to to Virt Manager and KVM. In this video tutorial, I will show you how to migrate your Virtual Box machines to the Virt Manager.
You may already have some VMs in your VirtualBox and after watching the video of the first part, you may have started considering that it is time to start the migration process to the Kernel-Based Virtual Machine.
The commands that I use are :
VBoxManage clonehd disk.vdi disk.raw --format raw
which will convert a Virtual Box machines’ disk image to a raw disk format
qemu-img convert -f raw disk.raw -O qcow2 disk.qcow2
which will convert the raw disk image to a compressed qcow2 format. We do this because the raw disk format consumes a lot of disk space. After you’ve converted all virtual images you can safely remove VirtualBox from you system completely
Enjoy:
Congrats on a very good tutorial Salih … I’m about to make the switch from VirtualBox to Virt-Manager, but found that my virtual machines disks are not .vdi but .vmdk. Any tip converting those?
Thanks in advance!
LikeLike
Here is a resource for your question https://help.ubuntu.com/community/KVM/FAQ
LikeLiked by 1 person
Thanks for the reply Salih! …
I ended up using this command:
qemu-img convert -f vmdk path/to//VBoxVM.vmdk -O qcow2 NewVM.qcow2
which worked pretty well even when the VM didn’t boot as I presume there’s differences in the hardware being emulated.. so now I have to figure that out 😉
Thanks again!
LikeLike
Yes, that is usually the first problem to fix. As you saw in the video, while I was creating the new VM, I click configure before install to fix the disk format. 🙂
LikeLike
Salih can you kindly guide throuh converting my KVM machines into VirtualBox machines.
LikeLike
Glad that I helped
LikeLike
Salih,I cannot open video, I import ova to KVM, blue screen error 0x0000007B,0x0000005C, can you help me?
LikeLike