Use it when planning online VM CPU expansion or diagnosing why newly added processors are not usable by the guest or workload.
CPU Hot Add
Hot-adding CPU changes guest-visible processor resources without a full VM power cycle when the platform and guest support online CPU addition.
1. CPU hot add adds vCPUs without reboot.
2. Guest OS must support it; Linux may need udev to online CPUs.
3. May disable vNUMA on some platforms.
4. Set maximum vCPUs in advance.
5. Verify in guest: nproc.
hotplug enabled → vCPU added → guest onlines CPU
Check topology/NUMA placement and compare workload behavior before and after the change.
Continue only after interpreting the current observation.Context & applicabilityCommon mistakes · platform/version boundaries
It does not show optimal NUMA placement, linear scaling or support for CPU removal.
Next check: Check topology/NUMA placement and compare workload behavior before and after the change.
and state what the evidence does not show.
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 Verification path Verify boundary
hot-add capability/config → runtime add → guest enumeration/online state → scheduler → application scaling
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.
- Hypervisor acceptance of a hot-add request does not guarantee guest online/usage.
- Guest OS editions/versions and topology rules can limit hot-add support.
- Hot add usually increases count; removing CPUs online is a separate capability and may not be supported.
- Application scaling after CPU addition is not automatic.
qm set <vmid> --hotplug cpu,memory— enable hotplug (Proxmox)virsh setvcpus <vm> 4 --live— add vCPUs live (libvirt)Get-VMProcessor <vm>— Hyper-V (no vCPU hot add)
ReferenceImportant terms & boundaries2 sections · depth on demand
What this shows and what it does not
A successful management action shows the platform accepted the request, but it does not show the guest onlined the CPU or the workload benefits.
Platform-specific hot-plug restrictions and scheduler/NUMA effects belong to CPU Virtualization/platform branches.
and state what the evidence does not show.
In depth
CPU hot add lets you add vCPUs to a running VM. Support varies: VMware (must be enabled while powered off, and enabling it disables vNUMA for that VM), Proxmox (hotplug: cpu with vcpus lower than cores), Hyper-V (no vCPU hot add; memory only).
qm set 120 --hotplug disk,network,usb,cpu --cores 8 --vcpus 4
qm set 120 --vcpus 6 # online
The guest OS must bring new CPUs online (Linux udev rule or echo 1 > /sys/devices/system/cpu/cpuN/online). For large VMs, prefer right-sizing over hot add because of the vNUMA trade-off.
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 VM Hardware → vCPU → CPU Hot Add. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://libvirt.org/docs.html · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
VM Hardware → vCPU → CPU Hot Add reference map
Fast VM-hardware boundaries for VM Hardware → vCPU → CPU Hot Add.
| Boundary | Meaning | Evidence limit |
|---|---|---|
| Feature enabled | VM permits CPU hot-add | Prerequisite only |
| Runtime add | Hypervisor changes VM CPU set | Not guest proof |
| Guest online | OS recognizes processor | Not workload scaling |
| Application | Uses new parallelism | Must be verified |