KVM
Cheat sheet · https://pcornel.dk/topic.php?topic=2898
Answer
KVM (Kernel-based Virtual Machine) is the Linux kernel module (kvm_intel or kvm_amd) that uses CPU virtualization extensions so guests run at near-native speed.
Remember
Enable VT-x/AMD-V in firmware. Inside a VM, nested virtualization must be enabled on the outer host. Users need access to /dev/kvm (kvm group).
First checks
virt-host-validate— host virtualization checksvirsh list --all— VMs and statevirsh dominfo <vm>— CPU, memory, autostartvirsh domiflist <vm> / domblklist <vm>— NICs and diskslscpu | grep -i virtualization— hardware virtualization support
Verify in this order
CPU extensions enabled → kvm module loaded → /dev/kvm → QEMU uses KVM acceleration
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=2898