Pcornel
Linux · Virtualization

QEMU

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

Back to the Topic

Answer

QEMU is the user-space emulator that runs each VM as a process, providing virtual hardware (disks, NICs, display) and using KVM for CPU acceleration. Disk images are usually qcow2 or raw.

Remember

Each running VM is a qemu-kvm/qemu-system process on the host. qcow2 supports snapshots and thin provisioning; raw is faster. Check images with qemu-img info and qemu-img check.

First checks

  • qemu-img info <image> — disk image details
  • virsh list --all — VMs and state
  • virsh dominfo <vm> — CPU, memory, autostart
  • virsh domiflist <vm> / domblklist <vm> — NICs and disks
  • lscpu | grep -i virtualization — hardware virtualization support

Verify in this order

libvirt starts a QEMU process → virtual devices → disk image and network backends → guest boots

Where it usually breaks

First mismatch in hardware/kernel capability → scheduler/mm/device → cgroup/namespace → process/thread → service/runtime → workload behavior/counters; preserve identity/native diagnostic/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=2899

Confirmation

Confirm action

Continue?