Pcornel
Virtualization · High Availability

Automatic Restart

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

Back to the Topic

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 policies
  • Get-VM <vm> | fl AutomaticStartAction,AutomaticStartDelay — Hyper-V auto start
  • qm 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

BoundaryMeaningEvidence limit
TriggerFailure qualifies under HA policyMay be suppressed/excluded
PlacementEligible destination chosenRequires dependencies/capacity
StartVM execution beginsNot guest readiness
ServiceApplication becomes usableIndependent proof

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

Confirmation

Confirm action

Continue?