Use it when a guest, license, application or NUMA/topology behavior depends on virtual processor package layout.
Sockets
Virtual socket count affects how the guest interprets CPU package topology. It is a topology presentation choice and is not proof that the VM has one physical host socket per virtual socket.
1. Sockets are a topology label; performance is the same as cores in most cases.
2. Licensing (Windows, SQL) may count sockets or cores.
3. Match host NUMA for large VMs.
4. Check guest sees intended topology: lscpu.
5. Avoid odd topologies.
config sockets → guest topology → licensing/NUMA
Compare host placement/NUMA evidence and verify the application or licensing rule that motivated the topology.
Continue only after interpreting the current observation.Context & applicabilityCommon mistakes · platform/version boundaries
It does not show matching physical socket placement, NUMA locality or licensing compliance for a specific product.
Next check: Compare host placement/NUMA evidence and verify the application or licensing rule that motivated the topology.
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
VM CPU topology config → CPUID/topology presentation → guest package enumeration → application interpretation
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.
- Virtual socket is a guest topology construct.
- Virtual sockets do not map one-to-one to physical CPU sockets by default.
- Licensing or application limits may care about socket count separately from total vCPU count.
- Changing topology can affect guest/application interpretation even when total vCPU count stays constant.
virsh dumpxml <vm> | grep topology— sockets/cores/threadsqm set <vmid> --sockets 1 --cores 4— set topology (Proxmox)Get-VMProcessor <vm> | fl Count— Hyper-V count
ReferenceImportant terms & boundaries3 sections · depth on demand
What this shows and what it does not
Guest package enumeration shows the topology exposed by the hypervisor, not physical socket placement or local memory access.
Physical NUMA placement and CPU pinning belong to CPU Virtualization.
and state what the evidence does not show.
Platform, version and operating-envelope scope
Hypervisor metrics and CPU scheduling names differ across KVM/Proxmox, Hyper-V and VMware releases.
In depth
Sockets are the number of virtual CPU packages the guest sees. Total vCPUs = sockets × cores per socket × threads per core.
Why it matters: some software licenses count sockets (or limit them — e.g. older Windows client editions support 2 sockets), and topology hints NUMA layout to the guest. Default to 1 socket with N cores unless the VM is larger than one physical NUMA node, in which case match the host's NUMA layout.
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 → Sockets. 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 → Sockets reference map
Fast VM-hardware boundaries for VM Hardware → vCPU → Sockets.
| Boundary | Meaning | Evidence limit |
|---|---|---|
| Virtual socket | Guest-visible processor package | Logical topology |
| Physical socket | Host processor package | Not implied by virtual socket |
| Total vCPU | Parallel execution contexts | Can be same across different topologies |
| Application view | May enforce topology rules | Must be checked explicitly |