Use this when working with Hyper-V's virtual disk format.
VHDX
VHDX is Hyper-V's virtual disk format, supporting up to 64 TB, 4 KB sectors, resilience against power failure and online resize. It replaced the older VHD format, which is limited to 2 TB.
1. VHDX: 64 TB, 4K sectors, metadata log for resilience.
2. Fixed vs dynamic vs differencing.
3. Online resize on SCSI.
4. Use VHDX, not VHD.
5. Keep on reliable storage.
VHDX file → Hyper-V storage stack → guest
Context & applicabilityCommon mistakes · platform/version boundaries
- Using VHD for new VMs instead of VHDX.
- Storing VHDX files on compressed or deduplicated volumes not supported for running VMs.
- Expanding a VHDX without expanding the partition inside the guest.
- Copying open VHDX files while the VM runs.
Operational reference
Fast context before you go deeper.
Get-VHD -Path D:\VMs\vm01.vhdxEvidence · 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.
- Up to 64 TB.
- Resilient to power failure.
- Online resize supported.
Get-VHD <path> | fl VhdFormat,VhdType,Size,FileSize,LogicalSectorSize— VHDX propertiesTest-VHD <path>— integrityResize-VHD <path> -SizeBytes <n>— resize
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
VHDX supports disks up to 64 TB, 4 KB logical sectors, a metadata log that protects against corruption on power loss, and TRIM/UNMAP pass-through.
New-VHD -Path D:\VMs\data.vhdx -SizeBytes 500GB -Dynamic -BlockSizeBytes 32MB
Resize-VHD -Path D:\VMs\data.vhdx -SizeBytes 800GB # online for SCSI-attached disks
Optimize-VHD -Path D:\VMs\data.vhdx -Mode Full # compact (disk offline/read-only)
Test-VHD -Path D:\VMs\data.vhdx
Convert-VHD -Path old.vhd -DestinationPath new.vhdx
After growing a VHDX, extend the partition inside the guest.
VHD vs VHDX
| VHD | VHDX | |
|---|---|---|
| Max size | 2 TB | 64 TB |
| Block alignment | 512 bytes | 4K-aware |
| Corruption protection | No | Metadata log |
| Generation 2 VMs | No | Yes |
Convert with Convert-VHD -Path old.vhd -DestinationPath new.vhdx.
ReferenceConfiguration & state1 section · depth on demand
Commands
New-VHD -Path D:\VMs\vm01.vhdx -SizeBytes 100GB -Dynamic
Get-VHD -Path D:\VMs\vm01.vhdx # type, size, file size, parent
Resize-VHD -Path D:\VMs\vm01.vhdx -SizeBytes 200GB
Optimize-VHD -Path D:\VMs\vm01.vhdx -Mode Full # compact dynamic disks (VM off or read-only mount)
Convert-VHD -Path old.vhd -DestinationPath new.vhdx
Documented example, not captured output. VHDX supports online resize on SCSI controllers, 4 KB logical sectors and is protected against corruption on power loss.
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 Hypervisor Storage → Hyper-V Storage → VHDX. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://pve.proxmox.com/pve-docs/chapter-pvesm.html · confidence 94%