Pcornel
Virtualization · Hyper-V

VHDX

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

Back to the Topic

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 — details
  • Resize-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

BoundaryMeaningEvidence limit
Guest diskVM-visible block deviceNot host file size
VHDXBacking image/containerAccessible ≠ performant
ChainParent/child relation when applicableOne file ≠ whole state
BackendHost/storage pathOnline ≠ 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

Confirmation

Confirm action

Continue?