Automatic Restart
Cheat sheet · https://pcornel.dk/topic.php?topic=3603
Answer
Automatic restart is usually a cold recovery action: the VM execution state lost with the failed host is not preserved unless another technology provides it. HA selects a destination, acquires ownership of required resources, starts the VM and then depends on guest boot and service startup to restore availability.
Remember
- Automatic restart ≠ live migration.
- Power-on success ≠ guest OS ready.
- Guest OS ready ≠ application healthy.
- Repeated restart attempts can be a symptom of an unresolved dependency, not a recovery strategy.
First checks
ha-manager config— restart policiesGet-VM <vm> | fl AutomaticStartAction,AutomaticStartDelay— Hyper-V auto startqm config <vmid> | grep onboot— Proxmox start at boot
Commands
qm set 120 --onboot 1 --startup order=1,up=60
Verify in this order
host/HA event → ordered restart
Where it usually breaks
First mismatch in cluster membership/quorum → node capability/health → placement policy → resource ownership → migration/failover task → guest/workload continuity; preserve identity/native error/pre-state before mutation.
High Availability → Automatic Restart reference map
| Boundary | Meaning | Evidence limit |
|---|---|---|
| Trigger | Failure qualifies under HA policy | May be suppressed/excluded |
| Placement | Eligible destination chosen | Requires dependencies/capacity |
| Start | VM execution begins | Not guest readiness |
| Service | Application becomes usable | Independent proof |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3603