Memory Hot Add
Cheat sheet · https://pcornel.dk/topic.php?topic=3462
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 maxqm set <vmid> --memory 8192— Proxmox with hotplug enabledSet-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
| Boundary | Meaning | Evidence limit |
|---|---|---|
| Feature enabled | VM allows memory hot-add | Prerequisite |
| Runtime add | Hypervisor expands mapping | Control plane |
| Guest online | OS can use new memory | Guest proof |
| Application | Can consume expanded memory | Workload proof |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3462