Pcornel
Virtualization · KVM / QEMU

QEMU

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

Back to the Topic

Answer

A QEMU system VM is a userspace process representing a machine model with CPU, memory and devices; acceleration, device backends and host resources determine how that model maps to real execution.

Remember

  • QEMU ≠ KVM; QEMU is userspace and can use multiple accelerators or TCG.
  • Machine type and device model are compatibility contracts, not cosmetic labels.
  • QEMU process alive ≠ guest OS responsive.
  • QEMU command-line/config accepted ≠ every backend resource usable at runtime.

First checks

  • qemu-system-x86_64 --version — QEMU version
  • ps -ef | grep qemu-system — running VM processes
  • tail -50 /var/log/libvirt/qemu/<vm>.log — VM QEMU log

Verify in this order

libvirt → QEMU process → KVM

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.

KVM / QEMU → QEMU reference map

BoundaryWhat to verifyEvidence limit
Definition/configExpected KVM / QEMU → QEMU definition or configuration is presentConfigured state does not prove runtime behavior
RuntimeRelevant KVM/QEMU/libvirt object or process is active without matching errorsRuntime state does not prove dependencies or guest outcome
DependencyHost CPU/memory, storage, network or device backend required by this path is healthyLocal success does not prove the next boundary
AcceptanceOriginal guest/application test succeeds after the change or observationRequired for end-to-end closure

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

Confirmation

Confirm action

Continue?