Use this to understand which hypervisor type and layer you are working with and where its logs and services are.
Hypervisor Layer
The hypervisor layer is the software that creates and isolates VMs on physical hardware. Type 1 runs directly on the host (ESXi, Hyper-V, KVM, Xen); type 2 runs on top of a desktop OS (VirtualBox, VMware Workstation).
1. The hypervisor layer schedules vCPUs and isolates memory.
2. It runs below management services.
3. Patch for security (side-channel mitigations).
4. Check mitigations: cat /sys/devices/system/cpu/vulnerabilities/*.
5. Restarting management services does not restart VMs.
hardware → hypervisor layer → VMs
Context & applicabilityCommon mistakes · platform/version boundaries
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 Verify both hypervisor state and guest outcome Verify boundary
After a resource or configuration change, confirm the VM has the intended virtual hardware and that the hypervisor reports normal scheduling, memory backing and device state. Then verify the guest driver sees the same device and repeat the original guest workload. For performance incidents, compare the same workload interval with host contention counters rather than relying on one instantaneous metric. If migration or failover is part of the platform, verify the resource mapping remains valid on the destination host. Hypervisor counters can show that a mediation bottleneck cleared, but only the guest-visible workload demonstrates that the original service impact is resolved.
Step 2 Find contention or failure at the mediation layer Narrow the fault
When a guest is slow or unresponsive, compare guest-visible symptoms with host/hypervisor resource state. High guest CPU can mean real workload demand, while high CPU ready or scheduling delay means the guest wants CPU but is waiting for physical execution. Memory pressure may appear as ballooning, swapping or reclamation at the hypervisor even when the guest sees free pages differently. I/O stalls can sit in the guest driver, virtual controller, host queue or physical backend. Avoid attributing every guest error to the hypervisor: show the first step by correlating host counters with the affected VM and time window, then follow the specific vCPU, memory or device path.
Step 3 Diagnosis Narrow the fault
Hypervisor Layer — discriminating diagnosis for Hypervisor Architecture → Hypervisor Layer. Use this chain of steps: Concrete boundaries: guest workload → guest OS/virtual hardware → hypervisor execution/backend → host virtual switch/storage/scheduler → physical resource → external/backend service → return to guest. IF the stable identity (same VM/guest, virtual device, host/hypervisor object and backing physical network/storage/CPU-memory resource) cannot be matched between adjacent layers, stop and correct scope before interpreting downstream absence. ELSE IF the object is transitional (migration/checkpoint/snapshot/HA or scheduler transition whose bytes, phase, owner or timestamps continue to advance), inspect the responsible timer/retry/sequence/queue and show whether it progresses. ELSE IF the owner looks known-good (guest-visible device/state maps to the intended hypervisor object, host resource is healthy and the guest workload observes the expected result), verify the next consumer/effective state rather than repeating the same local check. A broken signature is orphaned/mismatched virtual device, blocked migration phase, storage/network backing failure, host resource contention or guest-visible state that disagrees with hypervisor state It is a candidate boundary, not automatic root cause.
Step 4 Common mistakes Narrow the fault
- Treating the hypervisor as just another server to patch freely.
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.
- Type 1 runs on hardware; type 2 on an OS.
- Hypervisor bug affects all VMs on the host.
- Firmware settings (VT-x) are prerequisites.
lsmod | grep kvm— kernel hypervisor (KVM)bcdedit /enum | findstr hypervisor— Hyper-V launchvmware -vl— ESXi hypervisor version
ReferenceWhat it is1 section · depth on demand
The hypervisor as a resource mediation boundary
The hypervisor layer multiplexes physical CPU, memory and I/O resources into virtual machines while enforcing isolation and presenting virtual hardware. Depending on platform architecture, VM execution may be represented by processes, worlds or kernel-managed objects, but the operational boundaries are similar: vCPU scheduling maps guest execution to physical CPU time, guest memory maps through hypervisor-managed address translation, and virtual devices connect guest drivers to emulated or paravirtualized backends. Hardware virtualization extensions and IOMMU features assist these mappings but do not remove the software control layer. Separate “VM is powered on” from “resources are being scheduled and I/O is completing.”
ReferenceHow it works1 section · depth on demand
How it works
Hypervisor Layer — state ownership for Hypervisor Architecture → Hypervisor Layer. Identity to preserve: same VM/guest, virtual device, host/hypervisor object and backing physical network/storage/CPU-memory resource Owner sequence: Virtualization inserts management and device-emulation/synthetic layers between a guest and physical CPU, memory, network and storage. Known-good: guest-visible device/state maps to the intended hypervisor object, host resource is healthy and the guest workload observes the expected result Transitional: migration/checkpoint/snapshot/HA or scheduler transition whose bytes, phase, owner or timestamps continue to advance Broken: orphaned/mismatched virtual device, blocked migration phase, storage/network backing failure, host resource contention or guest-visible state that disagrees with hypervisor state Do not collapse configured/requested state, owner state, programmed/effective state and workload outcome into one “healthy” flag. What this does not show: a healthy VM object or completed management job does not show the guest workload or physical backing path is healthy Scope: Platform behavior differs across KVM/Proxmox, Hyper-V and VMware; validate against the deployed hypervisor/version.
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
Within hypervisor architecture, the hypervisor layer is the software that owns the hardware and schedules VMs on it. A Type 1 (bare-metal) hypervisor runs directly on hardware; a Type 2 runs as an application on a host OS.
| Type | Examples | Use |
|---|---|---|
| Type 1 | VMware ESXi, Hyper-V, KVM, Xen | Data centres, servers |
| Type 2 | VMware Workstation, VirtualBox, Parallels | Desktops, labs |
The hypervisor layer uses hardware virtualization (Intel VT-x/AMD-V for CPU, EPT/NPT for memory, VT-d/AMD-Vi IOMMU for devices) to run guest code at near-native speed while trapping privileged operations. Hyper-V places Windows itself in a privileged "parent partition"; KVM turns the Linux kernel into a hypervisor with QEMU handling device emulation.
grep -cE 'vmx|svm' /proc/cpuinfo
lsmod | grep kvm
virt-host-validate
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 Hypervisor Architecture → Hypervisor Layer. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://libvirt.org/docs.html · confidence 94%