Pcornel
Virtualization · VM Hardware › Memory

Memory Hot Add

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

Back to the Topic

Answer

Hot-add expands the memory presented to the guest at runtime. The platform may have limits on maximum size, NUMA topology, slot layout or which guest OS can online the added memory.

Remember

  • Hypervisor acceptance does not guarantee guest online/usable memory.
  • Hot-add capability may need to be enabled before VM boot.
  • Topology/NUMA can change when memory is expanded.
  • Applications may not automatically exploit added memory.

First checks

  • virsh setmem <vm> 8G --live — change memory live within max
  • qm set <vmid> --memory 8192 — Proxmox with hotplug enabled
  • Set-VMMemory <vm> -StartupBytes 8GB — Hyper-V runtime resize (Gen2, 2016+)

Verify in this order

hotplug enabled → memory added → guest onlines

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 → Memory Hot Add reference map

BoundaryMeaningEvidence limit
Feature enabledVM allows memory hot-addPrerequisite
Runtime addHypervisor expands mappingControl plane
Guest onlineOS can use new memoryGuest proof
ApplicationCan consume expanded memoryWorkload proof

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

Confirmation

Confirm action

Continue?