How to Convert KVM/Qemu Disk Format with qemu-img

Ever since I started playing around with Linux KVM, I’ve been running qcow2 disk format, planning to try raw format and compare for the performance on disk IO. Here is how to convert your disk format in Linux KVM/Qemu with qemu-img.

After conversion, run virsh edit to change new disk format type and location of renamed disk file.