Pcornel
Linux · Virtualization

Linux VM Troubleshooting

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

Back to the Topic

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 state
  • virsh dominfo <vm> — CPU, memory, autostart
  • virsh domiflist <vm> / domblklist <vm> — NICs and disks
  • lscpu | grep -i virtualization — hardware virtualization support

Commands

virsh
systemctl status qemu-guest-agent
virsh 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

Confirmation

Confirm action

Continue?