Applies to: Windows Server 2019, Windows Server 2022, and Windows Server 2025.
Dynamic Memory adjusts virtual-machine RAM within safe administrator-defined limits.
Prerequisites
- Administrative access and an approved change window.
- A verified backup and documented rollback plan.
- A pilot environment or low-risk target for validation.
Step-by-step procedure
- Confirm the guest operating system supports Dynamic Memory.
- Record current startup RAM and workload peaks.
- Set startup, minimum, and maximum values while the VM is off when required.
- Monitor memory pressure after startup.
Commands
Set-VMMemory -VMName "APP01" -DynamicMemoryEnabled $true -StartupBytes 4GB -MinimumBytes 2GB -MaximumBytes 12GB
Get-VMMemory -VMName "APP01"Verification
The guest remains responsive and Hyper-V reports acceptable assigned memory and pressure.
Rollback
Disable Dynamic Memory and restore the recorded fixed startup RAM during a maintenance window.
Security notes
- Use least privilege and record the change.
- Review relevant event logs after implementation.
- Test before production rollout.
Size memory from the guest workload
Dynamic Memory adjusts a guest’s assigned memory within the configured bounds, but it does not remove the application’s memory requirements. Check that the guest operating system and workload support the feature. Some applications or vendor support policies expect fixed memory, so obtain the supported sizing method before changing a production database or appliance.
Startup memory must allow the guest to boot reliably, while minimum and maximum values describe the permitted operating range. The sample values are illustrative. Base the real values on measured startup demand, sustained workload and the host’s total capacity, leaving resources for the management operating system and other VMs.
Schedule the change according to what can be modified on the running VM and host version. Record the original configuration first. Observe guest paging, application latency and host memory pressure over a representative busy period, not only immediately after boot when the server may be idle.
If the guest pages heavily or the host is overcommitted, investigate the capacity model. Raising every VM’s maximum can create competing claims rather than solve a physical shortage. Roll back to the known supported settings if the application behaves poorly, and retain the before-and-after measurements.
Related resources
Canadian Windows VPS and RDS hosting: managed Windows VPS hosting. Refer to Microsoft Windows Server documentation.
How to Install the Hyper-V Role on Windows Server
Install Hyper-V on a supported Windows Server host, verify processor and nesting prerequisites, restart deliberately, check hypervisor…
How to Create an External Hyper-V Virtual Switch
Create an external Hyper-V switch with explicit uplink and management-sharing choices, verify host and guest VLANs, diagnose provider…
How to Create a Generation 2 Hyper-V Virtual Machine with PowerShell
Create a Generation 2 Hyper-V VM with explicit storage, CPU, memory, UEFI and Secure Boot settings, install a supported guest, and validate…
How to Configure Production Checkpoints in Hyper-V
Configure Hyper-V ProductionOnly checkpoints, validate guest VSS and storage prerequisites, create a maintenance checkpoint, and understand…
How to Configure Hyper-V Replica Between Two Hosts
Configure certificate-authenticated Hyper-V Replica between standalone hosts, restrict the receiving listener, verify synchronization, and…