Use this when a VM must never have memory reclaimed, such as passthrough or latency-sensitive VMs.
Memory Reservations
A memory reservation guarantees that part or all of a VM's memory is always backed by physical RAM and never swapped. It suits latency-sensitive or passthrough VMs, but reduces overcommit and density.
1. Memory reservation guarantees physical memory.
2. Reserved memory isn't reclaimed (no balloon/swap).
3. Required for passthrough and some latency-sensitive VMs.
4. Reduces consolidation.
5. vSphere: reservation shrinks VM swap file.
reservation → pinned physical memory
Context & applicabilityCommon mistakes · platform/version boundaries
- Full reservations on many VMs, reducing consolidation and blocking HA admission.
- Reserving memory on VMs that do not need guarantees.
- Forgetting that a reservation must be available to power on.
Operational reference
Fast context before you go deeper.
Verification & 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 Checks Verify boundary
Get-VM | Get-VMResourceConfiguration | Where MemReservationMB -gt 0 | Select VM,MemReservationMB
Compare with HA admission control capacity.
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.
- Reservation removes overcommit benefit.
- Passthrough often requires full reservation.
- Affects admission control.
Get-VMMemory <vm> | fl Minimum,Startup— Hyper-V minimum/startupqm config <vmid> | grep -E 'memory|balloon'— Proxmox balloon minGet-VMResourceConfiguration (PowerCLI)— vSphere reservation
ReferenceWhy it matters1 section · depth on demand
When to use reservations
- Latency-sensitive VMs (databases, voice, real-time).
- VMs with passthrough devices or SR-IOV, which need fully reserved memory.
Reservations reduce how many VMs fit on a host and count against HA admission control. A full reservation also removes the VM's swap file size on ESXi.
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
A memory reservation guarantees host RAM for the VM; reserved memory is never ballooned or swapped. On VMware a full reservation also removes the VM's swap file (.vswp size = configured − reservation), saving datastore space.
Required or strongly recommended for: VMs with passthrough devices (memory must be pinned for DMA), latency-sensitive workloads, SAP HANA and large databases. Like CPU reservations, they reduce overcommit and count against HA admission control.
ReferenceConfiguration & state1 section · depth on demand
Configuration
| Platform | Setting |
|---|---|
| vSphere | VM → Edit settings → Memory → Reservation / "Reserve all guest memory" |
| Hyper-V | Static memory, or Dynamic Memory minimum |
| KVM/libvirt | <memoryBacking><locked/></memoryBacking> |
| Proxmox | Ballooning off + memory = minimum; locked for passthrough |
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 Resource Management → Memory Reservations. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://libvirt.org/html/libvirt-libvirt-domain.html · confidence 94%