I made the switch today to move from VirtualBox to KVM on my Fedora 13 workstation. At first I thought I would have to reinstall all of my guests, then I found this blog on how to convert VirtualBox guests to work in KVM: Convert Virtualbox vid to KVM qcow.
I left them as raw images (not sure if that’s good or bad, but it works) 🙂
First, convert your VirtualBox vdi files to raw format:
VBoxManage clonehd --format RAW fedora13.vdi fedora13.img
Notice I did NOT pass in the path to the vdi file. VBoxManage will magically know where to find it.
Then I moved the
.img file to
sudo mv .VirtualBox/HardDisks/fedora13.img /var/lib/libvirt/images/
Once I had the images copied, I started
virt-manager to create my guests. Click the New button and follow along in the wizard.
First give your VM a name, and select Import existing disk image, press Forward.
Next, set the OS type and Version (not sure if this is required). Enter the path to the image or use the Browse button.
Find the image in the list, select it, press Choose Volume.
Now you have a storage configured, click Forward to finish creating your guest.
Click Finish to add it to the list of guests.
Select the guest from the list, press Run button, and watch it start.
There you go a running KVM guest that started life as a VirtualBox guest.