Pcornel
Virtualization · Monitoring

VM Health

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

Back to the Topic

Answer

VM health combines heartbeat from guest tools, power state, CPU and memory metrics, disk latency, snapshot age and application checks, so you see whether the VM and its service are actually working.

Remember

  • Powered on ≠ healthy.
  • Heartbeat needs guest tools.
  • Check the application too.

First checks

  • qm status <vmid> --verbose — VM status
  • Get-VM | ft Name,State,Status,Heartbeat — Hyper-V heartbeat
  • virsh domstate <vm> --reason — libvirt state

Verify in this order

VM process → guest agent → application checks

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.

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

Confirmation

Confirm action

Continue?