The qcow2 disk format has some decent features like encryption, compression and -- as its abbreviation indicates -- copy to write support. Yet, its growing size is difficult to predict. In addition, the compression and the copy processes make it quite a bit slower than raw disk images. A simple and non-representative benchmark (bonnie++ -b -u root -d /mnt) shows it:
So if you're like me and still refrain from using LVM as underlying disk layout but prefer images which can be copied and moved in a quick'n dirty way, you might want to migrate your qcow2 images to raw ones. This article describes the necessary steps.
Shutdown of the VM
First, shutdown the vm which disks you wish to convert:
virsh shutdown {vm_name}
Conversion of the image files
Each of the image files of the virtual machine have to be converted by running the following for the respective files:
Have you try with device block? I’m testing in these days a very little system with kvm and block device …
No, in my tests I didn’t compare block devices. I’d be interested in your findings though. Please let me know after you got some numbers!