Pcornel
Virtualization

Virtualization Troubleshooting

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

Back to the Topic

Answer

Start with the exact symptom and time window, establish scope and a last-known-good baseline, then walk from management intent through hypervisor/runtime and resource paths to the guest and workload until the first expected behavior diverges.

Remember

  • Symptom ≠ root cause; “VM is slow” or “VM is down” is a starting observation, not a diagnosis.
  • Management-plane success ≠ data-path or workload health; a green console state can coexist with broken storage, network or guest behavior.
  • VM Running ≠ guest OS responsive ≠ application healthy; each boundary needs its own evidence.
  • No log or alert ≠ nothing happened unless collection, retention, clock alignment and query coverage are proven.

First checks

  • virsh domstate <vm> --reason — state and reason
  • journalctl -u pvedaemon -u libvirtd --since -1h — management logs
  • Get-WinEvent -LogName Microsoft-Windows-Hyper-V-Worker-Admin -MaxEvents 50 — Hyper-V worker events

Commands

journalctl

Verify in this order

symptom → layer → evidence → fix → verify

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.

Virtualization Troubleshooting troubleshooting map

BoundaryWhat to verifyEvidence limit
Symptom/scopeExact failing test, affected VM/host/cluster and incident time are definedSymptom classification does not identify root cause
Observed boundaryConfiguration, runtime and counters/logs for this Virtualization Troubleshooting boundary are time-correlatedOne healthy or failed status does not prove adjacent dependencies
Adjacent dependencyThe next host, storage, network, device, guest or cluster dependency is tested independentlyLocal success does not prove end-to-end health
VerificationThe original workload test succeeds after one controlled change and remains healthy in regression checksTemporary recovery alone is not durable proof

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

Confirmation

Confirm action

Continue?