Storage · Hypervisor Storage › KVM Storage
QCOW2
Cheat sheet · https://pcornel.dk/topic.php?topic=4212
Answer
QCOW2 is QEMU's copy-on-write disk format with thin provisioning, internal and external snapshots, backing files and optional compression. It is flexible, but slightly slower than raw.
Remember
- Thin, snapshots, backing files.
- Slower than raw.
- Check with qemu-img check.
First checks
qemu-img info <disk.qcow2>— format/backingqemu-img check <disk.qcow2>— consistencyqemu-img convert -O qcow2 -o preallocation=metadata src dst— preallocated metadata
Commands
virsh blockcommit
Verify in this order
qcow2 → QEMU block layer → guest
Where it usually breaks
First mismatch in provider/pool → virtual/logical disk → host/guest mapping → partition/filesystem → mount/drive → workload; preserve identity/pre-state before mutation.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4212