VM Uptime
Cheat sheet · https://pcornel.dk/topic.php?topic=3670
Answer
VM uptime is how long a VM has been running since its last boot or restart. Track it with guest tools and hypervisor events to measure availability, spot unexpected reboots and HA restarts, and plan patch windows.
Remember
- Uptime reset may be HA restart.
- Patch reboots are expected events.
- Compare guest and hypervisor uptime.
First checks
qm status <vmid> --verbose | grep uptime— VM uptimeGet-VM | ft Name,Uptime— Hyper-Vuptime— guest
Verify in this order
boot → running time → restart events
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=3670