How to migrate your Virtual Box machines to the KVM-VirtManager (Part 2)

How to migrate your Virtual Box machines to the KVM-VirtManager (Part 2)

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.

how-to-migrate-you-virtual-box-machines-to-the-kvm-virtmanagerYou 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:


9 responses to “How to migrate your Virtual Box machines to the KVM-VirtManager (Part 2)”

  1. 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!

Leave a Reply

Your email address will not be published.