Pcornel
Browse topics
Options
Recent
Favorites
Virtualization · Technical reference

VM Process

Direct 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.

When to use this

Use this when inspecting what a VM consumes on the host via its process (qemu-kvm, VMX world), or when killing a hung VM.

First 30 seconds

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.

Operational verification

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

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
virtualization
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
Scope / prerequisiteUse this when inspecting what a VM consumes on the host via its process (qemu-kvm, VMX world), or when killing a hung V…
What next?3 suggested next steps
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 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 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
Key points
  • Killing the process = power cut for the guest.
  • Threads per vCPU appear in top/esxtop.
  • Process memory ≈ guest RAM + overhead.
Key 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
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

PlatformProcess
KVMqemu-system-x86_64 per VM (ps -ef | grep qemu)
Proxmox/usr/bin/kvm -id 101 …
Hyper-Vvmwp.exe per VM (Task Manager → user name = VM GUID)
ESXivmx world (esxcli vm process list)

Killing the process is a hard power-off — use it only when the normal stop fails.

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 current

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%
Confirmation

Confirm action

Continue?