VHDX
Cheat sheet · https://pcornel.dk/topic.php?topic=388
Answer
A VHDX is a Hyper-V virtual hard disk: one file on the host that the virtual machine sees as a disk. It is fixed, dynamically expanding, or differencing (changes on top of a parent).
Remember
A dynamic disk grows as the guest writes and does not shrink by itself. Checkpoints create .avhdx files that hold everything written since — never delete them by hand; delete the checkpoint. After Resize-VHD, the partition must be extended inside the guest.
First checks
Get-VHD <path> | fl VhdFormat,VhdType,Size,FileSize,FragmentationPercentage,ParentPath— detailsResize-VHD <path> -SizeBytes 200GB— grow (online for SCSI)Convert-VHD <old.vhd> <new.vhdx> -VHDType Dynamic— convert
Verify in this order
VHDX file → storage stack → guest disk
Where it usually breaks
First mismatch in management intent → host/cluster capability → hypervisor runtime/task → virtual resource/device → guest state → workload-visible read-back; preserve identity/native error/pre-state before mutation.
Hyper-V → VHDX reference map
| Boundary | Meaning | Evidence limit |
|---|---|---|
| Guest disk | VM-visible block device | Not host file size |
| VHDX | Backing image/container | Accessible ≠ performant |
| Chain | Parent/child relation when applicable | One file ≠ whole state |
| Backend | Host/storage path | Online ≠ low latency |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=388