Pcornel
Virtualization · Hypervisor Architecture

VM Process

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

Back to the Topic

Answer

On KVM each VM runs as a normal host process (qemu-kvm) with threads for every vCPU and I/O; on ESXi it is a VMX world. Host tools like ps, top and esxtop therefore show VM resource use per process.

Remember

  • Killing the process = power cut for the guest.
  • Threads per vCPU appear in top/esxtop.
  • Process memory ≈ guest RAM + overhead.

First checks

  • ps -ef | grep -E 'qemu|kvm' — one QEMU process per running VM
  • Get-Process vmwp — Hyper-V worker processes
  • esxcli vm process list — ESXi VM worlds

Commands

virsh shutdown
qm shutdown
esxcli vm process list

Verify in this order

VM start → process created → vCPU threads → VM I/O threads

Where it usually breaks

First mismatch in management intent → host/cluster capability → hypervisor runtime/task → virtual resource/device → guest state → workload-visible read-back; preserve identity/native error/pre-state before mutation.

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

Confirmation

Confirm action

Continue?