Pcornel
Virtualization · Virtual Storage

Disk Images

Cheat sheet · https://pcornel.dk/topic.php?topic=3510

Back to the Topic

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 chain
  • qemu-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

BoundaryMeaningEvidence limit
Logical blocksguest viewVirtual capacity
Format metadatamapping/featuresImage boundary
Host objectfile/volumeStorage object
Backendfilesystem/media/servicePersistence

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3510

Confirmation

Confirm action

Continue?