Pcornel
Browse topics
Options
Recent
Favorites
Storage · Technical reference

Dynamic VHDX

Direct answer

A dynamic VHDX starts small and grows as the guest writes data, up to its maximum size. It saves space and performs close to fixed disks on VHDX, but the host volume must have room for growth.

When to use this

Use this when using dynamically expanding VHDX disks.

First 30 seconds

1. Dynamic VHDX grows on write.

2. Default and efficient; performance close to fixed on modern Hyper-V.

3. Overcommit can fill the volume — monitor.

4. Compact after deleting data.

5. Trim from guests.

Operational verification

write → VHDX grows → volume fills

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common mistakes
  • Total maximum size of dynamic disks larger than the volume, with no alerts.
  • VMs paused because the host volume is full ("Paused-Critical").
  • Compacting while the VM is running.
Platform / version applicability
Hypervisor Storage
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformHypervisor Storage
Key commandGet-VHD -Path D:\VMs\app.vhdx | Select Size,FileSize,MinimumSize
Scope / prerequisiteUse this when using dynamically expanding VHDX disks.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Checks Verify boundary
Get-VHD -Path D:\VMs\app.vhdx | Select Size,FileSize,MinimumSize
Get-Volume -DriveLetter D | Select SizeRemaining

Sum the maximum sizes of dynamic disks on a volume and compare with its capacity.

Evidence references

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.

observation · 1
Key points
  • They grow as data is written.
  • Host volume must have space for growth.
  • Performance is close to fixed on VHDX.
Key checks
  • New-VHD -Path <p> -SizeBytes 100GB -Dynamic — create dynamic
  • Get-VHD <p> | fl FileSize,Size — actual vs max
  • Optimize-VHD <p> -Mode Full — compact (offline)
ReferenceHow it works1 section · depth on demand

Watch out for

  • The host volume can fill up as dynamic disks grow, pausing every VM on it. Monitor free space.
  • Deleted data inside the guest does not shrink the file automatically; use Optimize-VHD (with TRIM/UNMAP enabled).
  • Get-VHD shows FileSize (on disk) vs Size (maximum).
ReferenceImportant terms & boundaries2 sections · depth on demand

In depth

A dynamic VHDX grows in blocks (default 32 MB) as the guest writes; deleted data inside the guest is returned only through TRIM/UNMAP (SCSI controller, supported guest OS) or manual compaction.

Get-VHD -Path vm.vhdx | Select Size,FileSize,MinimumSize
Optimize-VHD -Path vm.vhdx -Mode Full

Risk: the sum of dynamic disk sizes can exceed the volume. When the host volume fills, every VM with a growing disk is paused (Paused-Critical). Monitor free space per CSV/volume against the provisioned total.

Compacting

Mount-VHD -Path D:\VMs\app.vhdx -ReadOnly
Optimize-VHD -Path D:\VMs\app.vhdx -Mode Full
Dismount-VHD -Path D:\VMs\app.vhdx

Documented example, not captured output. Run TRIM/defrag inside the guest first so free blocks are released. VHDX files do not shrink automatically.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docHypervisor Storage current

Authoritative/upstream documentation reviewed for bounded claims in Hypervisor Storage → Hyper-V Storage → Dynamic VHDX. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://pve.proxmox.com/pve-docs/chapter-pvesm.html · confidence 94%
Confirmation

Confirm action

Continue?