Pcornel
Browse topics
Options
Recent
Favorites
Virtualization · Technical reference

Sockets

Direct answer

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.

When to use this

Use it when a guest, license, application or NUMA/topology behavior depends on virtual processor package layout.

First 30 seconds

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.

Operational verification

config sockets → guest topology → licensing/NUMA

Evidence · next step

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
Common mistakes
Common traps

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.

Platform / version applicability
virtualization-hardware
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

Platformvirtualization-hardware
Scope / prerequisiteUse it when a guest, license, application or NUMA/topology behavior depends on virtual processor package layout.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

observation · 1
Key points
  • 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.
Key checks
  • virsh dumpxml <vm> | grep topology — sockets/cores/threads
  • qm 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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docvirtualization-hardware current

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%
Terminology layer

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.

Aliases that resolve here
virtual socketsvm cpu socketssocket topology vm
Embedded reference data

Quick lookup tables

VM Hardware → vCPU → Sockets reference map

Fast VM-hardware boundaries for VM Hardware → vCPU → Sockets.

BoundaryMeaningEvidence limit
Virtual socketGuest-visible processor packageLogical topology
Physical socketHost processor packageNot implied by virtual socket
Total vCPUParallel execution contextsCan be same across different topologies
Application viewMay enforce topology rulesMust be checked explicitly
Confirmation

Confirm action

Continue?