Linux VM Troubleshooting
Cheat sheet · https://pcornel.dk/topic.php?topic=2901
Answer
Linux VM troubleshooting covers VMs that will not start, have no network, poor performance or disk problems, from the host and inside the guest.
Remember
Read the VM's QEMU log first. No network → bridge/virbr0 and the guest NIC driver. Slow → missing KVM acceleration, non-virtio devices, or host overcommit. Disk full on the host stops thin-provisioned VMs.
First checks
virsh list --all— VMs and statevirsh dominfo <vm>— CPU, memory, autostartvirsh domiflist <vm> / domblklist <vm>— NICs and diskslscpu | grep -i virtualization— hardware virtualization support
Commands
virshsystemctl status qemu-guest-agentvirsh console
Verify in this order
host resources → libvirt definition → QEMU process → virtual devices → guest OS
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=2901