Use it to separate what the guest sees from where the data is actually stored and to troubleshoot attachment, capacity, format and backend mapping problems.
Virtual Disks
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.
1. A virtual disk is a file or volume presented as a block device.
2. Check virtual vs allocated size.
3. Know the format and backing chain.
4. Extend safely: grow disk, then partition/filesystem in guest.
5. Shrinking is risky.
virtual disk → backing file/volume → storage
Check provisioning/allocation, backing-store health and latency for the same disk under representative load.
Continue only after interpreting the current observation.Context & applicabilityCommon mistakes · platform/version boundaries
It does not show thin capacity headroom, snapshot-chain health, redundancy or workload performance under load.
Next check: Check provisioning/allocation, backing-store health and latency for the same disk under representative load.
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification path Verify boundary
guest disk enumeration → controller attachment → virtual disk config → backing object existence/access → backend I/O → guest read/write verification
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- 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.
virsh domblklist <vm> --details— VM disksqemu-img info <disk>— format, virtual and actual sizeGet-VHD -Path <vhdx>— VHDX details
ReferenceWhat it is1 section · depth on demand
Provisioning choices
| Type | Pros | Cons |
|---|---|---|
| Thin | Saves space, fast to create | Can overfill storage; first-write cost |
| Thick (lazy) | Space reserved | Zeroing on first write |
| Thick (eager) / fixed | Predictable performance | Slow to create, uses full space |
Grow disks with platform tools (qm resize, Resize-VHD, vSphere disk edit), then extend the partition and file system inside the guest.
ReferenceImportant terms & boundaries2 sections · depth on demand
What this shows and what it does not
Attached ≠ guest-usable ≠ backend-healthy ≠ data-integrity confirmed.
In depth
A VM disk has three settings that decide most of its behaviour: the format (VMDK, VHDX, qcow2, raw/zvol/RBD), the allocation (thin or thick) and the bus/controller it is attached to. Per-disk options add caching mode, discard/UNMAP, IO threads and I/O limits.
qm config 120 | grep -E '^(scsi|virtio|sata|ide)[0-9]'
virsh domblklist vm1 --details; virsh domblkinfo vm1 vda --human
Get-VMHardDiskDrive vm1 | Get-VHD | ft Path,VhdType,Size,FileSize
Separate OS and data disks: it lets you size, snapshot, back up and move data independently, and keeps OS reinstalls from touching data.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Virtual Storage → Virtual Disks. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://libvirt.org/storage.html · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
Virtual Storage → Virtual Disks reference map
Fast virtual-storage boundaries for Virtual Storage → Virtual Disks.
| 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 |