Virtual Disks
Cheat sheet · https://pcornel.dk/topic.php?topic=3500
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 disksqemu-img info <disk>— format, virtual and actual sizeGet-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
| Boundary | Meaning | Evidence limit |
|---|---|---|
| Guest disk | logical block device | Guest view |
| Virtual disk | hypervisor mapping | Virtualization view |
| Backing | image/LV/raw object | Host view |
| Backend | actual storage | Persistence view |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3500