Pcornel
Virtualization · VM Hardware › vCPU

Sockets

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

Back to the Topic

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.

Remember

  • 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.

First 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

Verify in this order

config sockets → guest topology → licensing/NUMA

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 → vCPU → Sockets reference map

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

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

Confirmation

Confirm action

Continue?