Fixing "qcow2: Marking image as corrupt" / "qcow2_free_clusters failed: Invalid argument" — Recovering a Crashed VM Disk

A production VM died with qcow2 metadata corruption. How I diagnosed it with qemu-img check, repaired the image without losing data, and what actually causes this.

July 8, 2026 · 5 min