Friday, February 13, 2015

KVM : How to convert disk format

1. Remove the disk from the VM.


2. Convert the disk format, for example from raw to qcow2.

# qemu-img convert -p -O qcow2 FedoraWS.img FedoraWS.qcow2

3. Add a "new-format" disk to the VM.