Sockets
Cheat sheet · https://pcornel.dk/topic.php?topic=3448
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/threadsqm 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
| 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 |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3448