How to convert VirtualBox vdi to KVM qcow2

It is very easy to convert a VirtualBox .vdi disk images to KVM qcow2 file. You have to use the RAW file format as an intermediate. 1 – Make sure the VirtualBox machine is shutdown. 2 – Convert the vdi to a raw disk images. Note: vdi are compressed and raw images are not and … Read more

How to mount a qcow2 disk image on Ubuntu

This is a quick guide to mounting a qcow2 disk images on your host server. This is useful to reset passwords, edit files, or recover something without the virtual machine running. Step 1 – Enable NBD on the Host You will need to enable the nbd (network block device) kernel module on the host. This … Read more

How to recover a qcow2 file using fsck

I just upgrade Ubuntu on one of my virtual machines and for some reason the file system was corrupted after I rebooted the server. I got errors like: ext4-fs error ext4_lookup deleted inode referenced Great. Here is how I fixed the problem. I found the solution was to attach the qcow2 file as a device … Read more

KVM: Host CPU does not provide required features

I just exported / copied a virtual machine from one of our servers (a HP Proliant) to my laptop so that I could to mess around with it offline. I used the following commands to export the domain. On the server: On the laptop: However, I got this error on the laptop: error: unsupported configuration: … Read more

Ubuntu 13.04 – kvm binary is deprecated?

I was trying to setup a KVM host with some KVM virtual machines on Ubuntu 13.04 Server.  It was a fresh install on a HP DL360.  However, there seemed to be a fundamental problem with KVM / virsh / virt-install. When trying to install a virtual machine using virt-install with this command. I get this … Read more