Pcornel
Browse topics
Options
Recent
Favorites
Virtualization · Technical reference

vCPU

Direct answer

A vCPU is what the guest schedules work onto, but the hypervisor ultimately schedules that vCPU onto physical cores/threads. vCPU count therefore describes guest-visible parallel execution capacity, not dedicated pCPU ownership.

When to use this

Use it for VM CPU sizing and when separating guest CPU count from host CPU capacity, scheduler contention or topology.

First 30 seconds

1. Right-size vCPUs from measured demand.

2. Prefer cores over sockets unless licensing needs otherwise.

3. Stay within a NUMA node where possible.

4. CPU type affects migration.

5. Watch ready/steal.

Operational verification

vCPU config → topology → scheduler → physical cores

Evidence · next step

Correlate hypervisor scheduler metrics and workload performance under representative load.

Continue only after interpreting the current observation.
Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common traps

It does not show CPU headroom, low scheduler wait, correct NUMA locality or linear workload scaling.

Next check: Correlate hypervisor scheduler metrics and workload performance under representative load.

vCPU execution depends on guest runnable state, hypervisor scheduling, physical CPU availability, NUMA locality and contention/steal or ready time. 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 for VM CPU sizing and when separating guest CPU count from host CPU capacity, scheduler contention or topology.
What next?3 suggested next steps
Child topics (this level)7
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.

2 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

configured vCPU → virtual topology/features → hypervisor scheduler → physical execution → guest scheduler → workload

Step 2 Branching troubleshooting Narrow the fault

Concrete boundaries: guest thread → vCPU runnable → hypervisor scheduler → pCPU/NUMA placement → execution/steal-ready time → guest completion → workload latency.

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
Drill down

Subtopics

Go one level deeper into this subject.

Key points
  • vCPU count is guest-visible logical CPU capacity.
  • A vCPU is not automatically pinned to one physical core.
  • More vCPUs can increase parallelism but can also increase scheduling coordination and NUMA/topology effects.
  • CPU utilization inside the guest and hypervisor scheduler wait are different measurements.
Key checks
  • virsh vcpucount <vm> — vCPU count
  • qm config <vmid> | grep -E 'sockets|cores|cpu:' — Proxmox CPU settings
  • Get-VMProcessor <vm> — Hyper-V vCPU
ReferenceWhy it matters1 section · depth on demand

How it works in operation

vCPU — operational mechanics and state ownership. vCPU execution depends on guest runnable state, hypervisor scheduling, physical CPU availability, NUMA locality and contention/steal or ready time.

ReferenceImportant terms & boundaries3 sections · depth on demand

What this shows and what it does not

Guest-visible vCPU count shows CPU presentation, not scheduler latency, physical exclusivity or workload scaling.

Deeper scheduler, ready/wait, affinity, pinning and compatibility behavior belongs to CPU Virtualization.

vCPU execution depends on guest runnable state, hypervisor scheduling, physical CPU availability, NUMA locality and contention/steal or ready time. 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. Concrete boundaries: guest thread → vCPU runnable → hypervisor scheduler → pCPU/NUMA placement → execution/steal-ready time → guest completion → workload latency.

In depth

As VM hardware, the vCPU count and topology (sockets × cores × threads) are what the guest OS sees. The topology affects licensing (some software licenses per socket) and NUMA behaviour, and the count should match what the workload actually uses.

Sizing practiceReason
Start small (2 vCPUs) and grow on evidenceOversized VMs schedule worse
Match cores per socket to NUMA layoutBetter guest scheduling
Avoid single-vCPU for modern OSes with servicesCan stall under load
Check guest CPU and host ready/stealSeparate guest saturation from host contention
Set-VMProcessor -VMName app01 -Count 4
Get-VMProcessor -VMName app01 | Select-Object Count, CompatibilityForMigrationEnabled
qm set 101 --sockets 1 --cores 4
nproc; lscpu | grep -E 'Socket|Core|Thread'

If the guest shows high CPU but host ready time is low, the VM needs more vCPUs; if ready time is high, the host is contended and more vCPUs will make it worse.

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. 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
vcpuvirtual cpuvirtual processorvm cpu
Embedded reference data

Quick lookup tables

VM Hardware → vCPU reference map

Fast VM-hardware boundaries for VM Hardware → vCPU.

BoundaryMeaningEvidence limit
vCPU countLogical processors exposed to guestNot dedicated physical cores
SchedulerMaps runnable vCPUs to pCPUsCan introduce wait/contention
Guest CPU %Guest view of execution demandNot host scheduler wait
Physical CPUFinite execution backingShared unless isolated/pinned
Confirmation

Confirm action

Continue?