Pcornel
Virtualization · Virtual Storage

Virtual Disks

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

Back to the Topic

Answer

A Virtual Disk is a guest-visible block device whose sectors are provided by a hypervisor-managed backing object such as an image file, logical volume, raw device or remote block volume.

Remember

  • Virtual disk size is logical capacity presented to the guest, not necessarily physical allocation.
  • The guest disk identity can remain stable while the backing object or storage location changes.
  • A virtual disk being attached does not prove the guest has partitioned, formatted or mounted it.
  • A backend object being healthy does not prove the guest device driver or filesystem is healthy.

First checks

  • virsh domblklist <vm> --details — VM disks
  • qemu-img info <disk> — format, virtual and actual size
  • Get-VHD -Path <vhdx> — VHDX details

Commands

qm resize

Verify in this order

virtual disk → backing file/volume → storage

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 → Virtual Disks reference map

BoundaryMeaningEvidence limit
Guest disklogical block deviceGuest view
Virtual diskhypervisor mappingVirtualization view
Backingimage/LV/raw objectHost view
Backendactual storagePersistence view

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

Confirmation

Confirm action

Continue?