Use this when inspecting what a VM consumes on the host via its process (qemu-kvm, VMX world), or when killing a hung VM.
VM Process
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.
1. Each running VM is a host process/world (qemu, vmwp, vmx).
2. Killing it hard-stops the VM.
3. Process CPU and memory = VM usage on the host.
4. Logs: /var/log/libvirt/qemu/<vm>.log.
5. Use the platform's stop command, not kill, normally.
VM start → process created → vCPU threads → VM I/O threads
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 Inspecting a VM process on KVM Verify boundary
ps -eo pid,cmd | grep -E 'qemu|kvm' | grep <vmname>
top -H -p <pid> # per-thread CPU (vCPU threads)
virsh qemu-monitor-command <vm> --hmp info cpus
qm monitor <vmid> # Proxmox QEMU monitor
Killing the QEMU process is like pulling the power; use virsh shutdown/qm shutdown (ACPI) first.
Step 2 Common mistakes Narrow the fault
- Killing the wrong process — confirm the VM ID/UUID in the command line first.
- Reading host CPU of the process without considering vCPU count.
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.
- Killing the process = power cut for the guest.
- Threads per vCPU appear in top/esxtop.
- Process memory ≈ guest RAM + overhead.
ps -ef | grep -E 'qemu|kvm'— one QEMU process per running VMGet-Process vmwp— Hyper-V worker processesesxcli vm process list— ESXi VM worlds
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
Each running VM is backed by a host process or world: qemu-system-x86_64 (KVM), vmx world (ESXi), vmwp.exe worker process (Hyper-V). It holds device emulation and the vCPU threads.
ps -ef | grep qemu | grep -- '-id 100' # Proxmox VM 100
qm monitor 100 # QEMU monitor
esxcli vm process list; esxcli vm process kill -t soft -w <worldID>
Get-VM vm1 | Select Name,Id; Get-Process vmwp | ? { $_.CommandLine -match '<VMId>' }
Killing this process is equivalent to pulling the power cord of the VM — use it only when normal stop fails.
Finding the VM process
| Platform | Process |
|---|---|
| KVM | qemu-system-x86_64 per VM (ps -ef | grep qemu) |
| Proxmox | /usr/bin/kvm -id 101 … |
| Hyper-V | vmwp.exe per VM (Task Manager → user name = VM GUID) |
| ESXi | vmx world (esxcli vm process list) |
Killing the process is a hard power-off — use it only when the normal stop fails.
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 → VM Process. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://libvirt.org/docs.html · confidence 94%