Windows Server 2022 / Hyper-V / Configure Dynamic Memory
In Windows Server 2022, shut down the virtual machine, open Settings → Memory in Hyper-V Manager, and enable Dynamic Memory. Startup RAM covers boot. After startup, Hyper-V adjusts the allocation between the minimum and maximum based on guest demand and available host memory.
How startup, minimum and maximum RAM differ
Startup RAM is the memory assigned when the VM starts. It must also meet the requirements for installing or upgrading the guest operating system. Minimum RAM sets the floor after boot, even when Hyper-V reclaims memory. Maximum RAM caps growth. Raising the maximum does not guarantee that the physical host can supply it.
The memory buffer is extra memory Hyper-V attempts to assign above current demand. Memory weight affects which VMs receive priority when host memory is scarce. Check that the guest supports Dynamic Memory and leave headroom for the host operating system and other VMs.
Microsoft guide to Hyper-V Dynamic Memory
Enable Dynamic Memory for an existing VM
- Save your work in the guest and shut it down normally. Confirm that the VM is Off in Hyper-V Manager, select it, and open Settings.
- Select Memory, then check Enable Dynamic Memory. Set Startup RAM high enough for the guest to boot reliably.
- If suitable for the guest and its workload, try startup 4096 MB, minimum 2048 MB and maximum 4096 MB. Check that minimum ≤ startup ≤ maximum. Select OK and start the VM. Adjust the example values to your guest’s requirements.
Verify the memory allocation
Look at the Assigned Memory column in Hyper-V Manager. Compare it just after boot, at idle and during normal work. The allocation does not have to fall to 2048 MB immediately. Memory usage in the guest’s Task Manager can differ from the host’s allocation. Check host capacity as well. If the VM fails to start, review Startup RAM and the load from other VMs.
Microsoft guide to Hyper-V memory performance
Change the values or return to static memory
While a VM is running, you can raise its Dynamic Memory maximum or lower its minimum. Shut down the guest before changing Startup RAM or disabling Dynamic Memory. For static memory, clear Enable Dynamic Memory and specify enough RAM for boot and normal work.