Disk Images
Cheat sheet · https://pcornel.dk/topic.php?topic=3510
Answer
A Disk Image is a file or structured storage object that represents virtual disk blocks and may add metadata for allocation, snapshots, checksums, compression or other format-specific features.
Remember
- The image format is not the same as the host filesystem or guest filesystem.
- Sparse/thin image allocation can differ from the image’s logical size.
- Image metadata corruption can affect the virtual disk even when the host filesystem is mounted.
- Feature support and safe conversion depend on the specific format and implementation.
First checks
qemu-img info --backing-chain <img>— image format and chainqemu-img check <img>— consistency check (qcow2)Test-VHD <vhdx>— VHDX check
Verify in this order
image file → format driver → virtual disk
Where it usually breaks
First mismatch in guest block/filesystem view → virtual controller/disk → hypervisor mapping → datastore/path → storage backend → durability/read-back; preserve identity/native error/pre-state before mutation.
Virtual Storage → Disk Images reference map
| Boundary | Meaning | Evidence limit |
|---|---|---|
| Logical blocks | guest view | Virtual capacity |
| Format metadata | mapping/features | Image boundary |
| Host object | file/volume | Storage object |
| Backend | filesystem/media/service | Persistence |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3510