Pcornel
Virtualization · VM Hardware › Memory

Static Memory

Cheat sheet · https://pcornel.dk/topic.php?topic=3456

Back to the Topic

Answer

With static memory, the VM is presented a defined memory size while running. Host implementation may still use paging, sharing or other mechanisms, so “static” describes VM assignment policy rather than guaranteed dedicated DRAM.

Remember

  • Static memory keeps guest-visible assignment fixed during the run.
  • Fixed assignment does not automatically mean physically reserved or locked RAM.
  • Host overcommit/pressure can still affect backing depending on platform.
  • A reboot/power cycle may be required for size changes when hot-add is not available.

First checks

  • qm config <vmid> | grep -E 'memory|balloon' — balloon 0 = static (Proxmox)
  • Set-VMMemory <vm> -DynamicMemoryEnabled $false -StartupBytes 8GB — static (Hyper-V)
  • virsh dumpxml <vm> | grep -E 'memory|currentMemory' — libvirt memory

Verify in this order

fixed allocation → guest sees full memory

Where it usually breaks

First mismatch in host capability/IOMMU/NUMA → hypervisor allocation/mapping → virtual hardware model → guest driver/enumeration → workload use; preserve identity/native error/pre-state before mutation.

VM Hardware → Memory → Static Memory reference map

BoundaryMeaningEvidence limit
Guest sizeFixed while VM runsStatic assignment
Host reservationMay or may not existPlatform/policy dependent
Host pressureCan still occurSeparate evidence
ResizeMay need reboot/hot-addCapability dependent

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3456

Confirmation

Confirm action

Continue?