Failover from backups
When a host goes down for good (hardware failure, lost data center), NexoVirt helps you bring its
guests back on another host from their newest Proxmox Backup Server backups.
Failover is assisted, never automatic: the panel detects the outage and prepares everything,
but only an admin with the hosts.manage permission starts it.
Requirements
Section titled “Requirements”- The guests are backed up to a PBS datastore that is attached to the failed host.
- The same PBS server is attached to the target host, so the target can read those backups.
- The target host has room for the guests (RAM and a storage with enough space).
When a host counts as down
Section titled “When a host counts as down”A host is down only when both of these have been silent for the configured time:
- its agent heartbeat, and
- its newest node inventory row (the window is at least twice the inventory interval).
Hosts in maintenance mode and hosts that were never inventoried are never treated as down. This check uses the panel’s own data only, so a short network blip or a single missed heartbeat does not trigger it.
A dead member of a cluster
Section titled “A dead member of a cluster”In a cluster connection, the other members keep answering, so the connection as a whole is not down. A single member counts as down when the newest inventory lists it as offline and its own agent has been silent for the configured time (or it has no agent). A member whose agent still reports is running; only the cluster lost it, and it is not offered for failover.
When a host is down:
- admins with
hosts.managesee a red banner on every panel page, “Node name is unreachable since HH:MM.”, with an Open failover button. A dead cluster member shows “Node node of cluster is unreachable since HH:MM.”, and a cluster without quorum shows “Cluster name has no quorum since HH:MM. Proxmox refuses guest changes until enough members are back.”, - a host_down alert fires through the alerting engine,
- the down host no longer blocks the panel through the agent health check.
Backup protection
Section titled “Backup protection”Each guest’s protection is based on its newest PBS backup:
| Protection | Meaning |
|---|---|
| Protected | A backup exists and is newer than the maximum backup age. |
| Stale | The newest backup is older than the maximum backup age. |
| No backup | No backup of this guest was found on the PBS servers attached to its host. |
A guest’s page shows its Failover protection in the details card. On the Failover page you can Preview any host, even a healthy one, to check the protection of all its guests before you need it. A host that is up can only be previewed, not failed over.
Running a failover
Section titled “Running a failover”- Click Open failover in the banner, or open Failover in the sidebar. With several down hosts, switch between them with the buttons in the card header. A dead cluster member is listed as cluster / node and shows only that member’s guests.
- Review the guest list: Last backup, Protection, Target and Pre-flight per guest.
- Choose the Target: Automatic (best node with the PBS server attached) or a specific node. Hosts in maintenance or unreachable are listed but disabled. For a dead cluster member, the other online members of the same cluster are offered too, but only while the cluster has quorum.
- Choose the IP zone on the target: Keep the IP when possible, or a zone to take new addresses from. The list only shows zones usable on the chosen target. Turn on Drop port-forwards if forwards should not move along. Each guest that needs a new address gets its own: the preview never shows the same address twice.
- Select the guests and click Fail over selected.
The pre-flight runs per guest and refuses, for example, guests without a backup, targets without room, or targets that do not have the PBS server attached. Like the migrate dialog it refuses to move port-forwards when the source or target network is managed outside NexoVirt, and it warns (never blocks) when the guest’s last known address does not fit the target bridge or hand-made NAT on the source node forwards to it.
Some guests are refused outright:
- A container whose backup has settings tied to the old node (
devNdevices, rawlxc.*keys, bind mounts): “This guest cannot be failed over: it uses settings tied to the old node (…). Restore its backup by hand on a node that has these folders and devices.” - A guest of a dead cluster member that is managed by Proxmox HA while the rest of the cluster is reachable: “Managed by Proxmox HA: Proxmox restarts it on another member.” HA brings it back on its own.
Your selection is kept while the pre-flight refreshes the list. The target storage is chosen automatically. Guests of a reseller, or of the reseller’s customers, only go to nodes assigned to that reseller.
What happens per guest
Section titled “What happens per guest”You land on the run page (Failover of host), which refreshes every 5 seconds. Guests are restored one at a time. For each guest the panel:
- checks again that the source host is still down. If it is reachable again, that guest is aborted with “The source node is reachable again. Use migration instead.”,
- keeps the guest’s VMID on the target when it is free, otherwise takes the next free one,
- restores the chosen backup on the target (it never overwrites an existing guest),
- applies the IP plan, moves port-forwards, moves the panel records (owner, plan and so on) to the restored guest,
- starts the guest if it was running before.
Problems after the restore (IP, port-forwards, records, start) finish the guest with warnings instead of failing it. When the guest does not start, the warning names the reason where Proxmox gives a known one (for example a bind mount host path or a passed-through device missing on the target, not enough free memory, no quorum) and the job log shows Proxmox’s own message; check the restored guest’s IP, port-forwards, owner and power state. If the restore itself fails, only the guest this failover created is removed. Stop on the run page skips the guests that have not started yet.
Starting a failover does not put the failed host into maintenance mode.
The source copies
Section titled “The source copies”On the failed host, each failed-over guest is now a source copy. Its page shows a Failed over notice with the new location and backup time. Every action on it is refused, and it is left out of evacuations, alerts and plan enforcement.
When the host comes back
Section titled “When the host comes back”When the failed host returns, its guests may start again on their own (for example through autostart). NexoVirt checks every inventory run:
- A source copy found running is stopped immediately, and a failover_conflict alert is raised in the inbox. Review the situation, then resolve it yourself; it also resolves once the source copy is deleted.
- The Failover page lists these copies under Returned nodes with their status and where the guest now runs. Select them and click Delete source copies, or use Delete source copy on a copy’s page.
Settings
Section titled “Settings”The failover settings are under Settings → Placement → Failover:
- Node down after (minutes): how long the agent and inventory must both be silent. Default 5.
- Max backup age (hours): backups older than this count as Stale. Default 24.
Failover runs are executed by the migrate:work worker, like migrations. See
Migration & balancing.
Next steps
Section titled “Next steps”- Backups (PBS) to set up backup jobs and attach PBS to every host.
- Alerts & webhooks to route
host_downand backup alerts.
NexoVirt is developed and designed by Nucez Software, your partner for custom software and web design.