Use this topic for virtual disk format, attachment, fixed/dynamic/differencing behavior and the first storage boundary before deeper Storage-domain analysis.
VHD / VHDX
A virtual disk file is only one layer of the storage chain: VM controller attachment, VHD/VHDX format, file path, host filesystem, storage device/path and guest filesystem all remain distinct boundaries.
1. Get-VMHardDiskDrive -VMName <vm> — path.
2. Get-VHD <path> — format, type, parent.
3. Differencing chain intact (checkpoints)?
4. Host free space for dynamic disks.
5. Resize: Resize-VHD then extend in guest.
VM controller → VHDX file (fixed/dynamic/differencing) → host volume
Inspect the active differencing chain and verify host plus guest I/O at the same time window.
Continue only after interpreting the current observation.Context & applicabilityCommon mistakes · platform/version boundaries
A present VHDX file does not show chain integrity, host storage health or guest filesystem health.
Next check: Inspect the active differencing chain and verify host plus guest I/O at the same time window.
Operational reference
Fast context before you go deeper.
Get-VMHardDiskDrive -VMName web01Verification & 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
VM controller → active VHD/VHDX chain → host file/filesystem → storage path/media → guest block device → guest filesystem → application I/O
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.
- VHDX is the preferred modern Hyper-V virtual disk format.
- A VHDX file existing does not prove it is attached to the intended VM or readable end-to-end.
- Dynamic expansion changes physical allocation behavior, not the guest-visible maximum alone.
- Checkpoints and differencing disks can alter the active disk chain; do not inspect only the base VHDX.
Get-VM— VMs and stateGet-VMHost— host settingsGet-VMSwitch— virtual switchesGet-VMNetworkAdapter -VMName <vm>— vNICs, switch, VLANGet-VMHardDiskDrive -VMName <vm>— attached disksGet-WinEvent -LogName Microsoft-Windows-Hyper-V-VMMS-Admin -MaxEvents 30— VMMS events
ReferenceImportant terms & boundaries2 sections · depth on demand
What the evidence shows
Healthy VHDX metadata or file presence does not show underlying storage latency/integrity, guest filesystem health or application I/O.
Deep storage technology remains in Storage. Windows Hyper-V owns how virtual disks attach to VMs and how VM disk chains behave.
In depth
Virtual disk management on Hyper-V:
New-VHD -Path D:\VMs\data.vhdx -SizeBytes 500GB -Dynamic
Resize-VHD -Path D:\VMs\data.vhdx -SizeBytes 800GB # online for SCSI disks
Get-VHD D:\VMs\data.vhdx | Select VhdType,Size,FileSize,FragmentationPercentage,ParentPath
Optimize-VHD -Path D:\VMs\data.vhdx -Mode Full # compact (attached read-only or detached)
Mount-VHD -Path D:\VMs\data.vhdx -ReadOnly
Convert-VHD -Path old.vhd -DestinationPath new.vhdx
VM worker processes access VHDX files using the VM's virtual account (NT VIRTUAL MACHINE\<VMID>) — copying files manually can strip that ACL and make the VM fail to start ("Account does not have permission").
ReferenceConfiguration & state1 section · depth on demand
Disk commands
Get-VMHardDiskDrive -VMName web01
Get-VHD -Path D:\VMs\web01.vhdx | Select VhdType,Size,FileSize,ParentPath,FragmentationPercentage
Add-VMHardDiskDrive -VMName web01 -ControllerType SCSI -Path D:\VMs\data.vhdx
Resize-VHD -Path D:\VMs\data.vhdx -SizeBytes 200GB
Documented example, not captured output. After resizing, extend the partition inside the guest.
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 Hyper-V → VHD / VHDX. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/windows-server/virtualization/hyper-v/ · 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
Hyper-V → VHD / VHDX reference map
Fast lookup boundaries for Hyper-V → VHD / VHDX.
| Boundary | Meaning | Evidence limit |
|---|---|---|
| Attachment | VM points to a virtual disk path | Does not prove file/backing storage healthy |
| Format/type | VHD/VHDX and fixed/dynamic/differencing | Does not prove active chain is complete |
| Host storage | File and backing filesystem/path are available | Does not prove guest filesystem healthy |
| Guest I/O | Guest reads/writes expected data | Strongest workload-facing storage evidence |