Disaster Recovery for Proxmox VE

A backup answers the question “Can I get my data back?” Disaster recovery answers a harder one: “How fast can I get the business running again after the primary environment goes down?” Backups alone leave a gap here, because restoring a virtual machine (VM) means copying its data back before it can start. Proxmox replication closes that gap by keeping ready-to-run replicas on a secondary host. Failover brings them online when the primary environment fails, and failback returns the workloads once it’s repaired.

NAKIVO Backup & Replication v11.3 adds failover, failback and Site Recovery for Proxmox VE to the replication available since v11.1. Read this guide to learn how Proxmox VE disaster recovery works, how to build and test an automated recovery workflow and which requirements and limitations apply.

NAKIVO for Proxmox Backup

NAKIVO for Proxmox Backup

Agentless, app-aware backup for Proxmox VE with multiple targets, including immutable cloud backups. Multiple instant granular recovery and full recovery options.

Key Takeaways

  • Disaster recovery for Proxmox VE combines VM replicas on a secondary host with failover to those replicas and failback to production.
  • NAKIVO Backup & Replication v11.3 adds Proxmox VE to Site Recovery, so you can automate an ordered disaster recovery workflow rather than run steps manually.
  • Failover switches a production Proxmox VE VM to its replica. Failback returns the workload to the original host or a new one.
  • A Site Recovery job for Proxmox VE runs failover, failback, start and stop actions, plus general actions such as Wait and Check Condition, as one automated workflow that you can test without disrupting production.
  • Policy rules add matching Proxmox VE VMs to backup, replication, failover and failback jobs automatically, so new VMs are covered without anyone editing the job.

What Is Proxmox VE Disaster Recovery?

Proxmox VE disaster recovery is the practice of restoring service after an event that takes out a production environment, such as a hardware failure, a storage outage, a site-wide power or network loss or a ransomware incident. As the IT side of business continuity, it covers the plan, tools and procedures behind recovery, and it draws on two data protection methods. Backups provide point-in-time copies of VMs and data that you can restore. Replication complements them by maintaining standby VMs at a secondary location, so workloads come back online faster when the primary environment becomes unavailable.

Proxmox VE replication provides the replica: A standby copy of a VM kept on a secondary Proxmox VE host, updated on a schedule so it stays close to the current state of the source. Recovery point objective and recovery time objective frame the design. The recovery point objective (RPO) is how much data you can afford to lose, set by how often the replica updates. The recovery time objective (RTO) defines how quickly you need to restore workloads after a disruption, which is what failover addresses.

The disaster recovery lifecycle has two halves. Failover switches production over to the replica when the primary fails. The standby VM powers on at the secondary site and takes over. Failback is the return trip: Once the primary environment is repaired, the changes made on the replica during the outage are sent back to the original host or a new one. NAKIVO Backup & Replication can run each half as a separate job or automate the whole sequence with Site Recovery.

How NAKIVO Enables Disaster Recovery for Proxmox VE

NAKIVO Backup & Replication handles Proxmox disaster recovery in two ways: Replication failover and failback jobs run on demand, while Site Recovery jobs automate the full sequence.

Proxmox VE VM failover

Virtual machine failover switches a workload from a failed source to its replica. When you run a replication failover job for Proxmox VE, the NAKIVO solution powers on the selected replica VMs on the target Proxmox VE host and applies the network settings for the recovery site.

To run Proxmox VM failover manually, choose a Proxmox VM replication job in Data Protection, click Recover and select Replication failover for Proxmox VE. The same menu holds the matching failback job, Replication failback for Proxmox VE. Failover can also run as an action in a Proxmox Site Recovery job, as part of an automated disaster recovery workflow.

Starting a Proxmox VE replication failover

In the New Replication Failover Job Wizard for Proxmox VE, select the replicas to fail over in the Jobs & Groups or Policy view. On the Networks and Re-IP steps, set network mapping and new IP addresses for the recovery site, then run the job. After failover, the replica serves the workload while the source is unavailable.

Selecting replicas for failover

Proxmox VE VM failback

Failback returns the workload to production once the primary environment is back. Because the replica has been running and accumulating changes during the outage, failback re-synchronizes those changes to the production side rather than simply powering the original VM back on. A replication failback job for Proxmox VE can send it back to the original Proxmox VE host or to a new one.

Choosing the failback location

As an action in a Site Recovery job, failback can also run in test mode. Cleanup then rolls back what the test did, so you can rehearse the return without making permanent changes.

Proxmox VE actions in Site Recovery jobs

A Site Recovery job is where individual failover and failback operations become an orchestrated plan. For Proxmox VE, it can include four dedicated actions:

  • Failover Proxmox VE VMs: Switches the selected VMs to their replicas.
  • Failback Proxmox VE VMs: Returns the selected replicas to the original host or to a new one.
  • Start Proxmox VE VMs: Powers on VMs as part of the sequence.
  • Stop Proxmox VE VMs: Shuts down VMs as part of the sequence.

General actions fill in the rest: Run Jobs, Stop Jobs, Run Script, Attach Repository, Detach Repository, Send Email, Wait and Check Condition. Arrange them in the order your recovery plan needs, for example, stopping the source VMs at the primary site before failing their replicas over at the secondary site. The Site Recovery job then runs them as one workflow.

Proxmox VE actions in the Site Recovery action list

Automated Proxmox VE disaster recovery

The value of a Site Recovery job is that the whole recovery runs as one repeatable, automated sequence instead of a series of manual steps performed under pressure during an actual disaster. You define the order once, and NAKIVO Backup & Replication executes it the same way every time, in a test or in a real failover. That repeatability is what turns a collection of replicas into a disaster recovery plan you can rely on.

How to Configure Proxmox VE Disaster Recovery with NAKIVO

This walkthrough sets up automated Proxmox disaster recovery in two parts: A replication job keeps replicas on a secondary host, and a Site Recovery job fails the VMs over to them in a set order. Site Recovery requires an Enterprise edition, such as Enterprise Essentials or Enterprise Plus.

Step 1: Prepare Proxmox VE VM replicas

Disaster recovery starts with replicas, so a Proxmox VE replication job has to exist before you can fail over. Create one for the VMs you want to protect, targeting a Proxmox VE host at the secondary site:

  1. Go to Data Protection, click + and select Replication for Proxmox VE.Creating a Proxmox VE replication job
  2. On the Source step of the New Replication Job Wizard for Proxmox VE, select VMs in the Hosts & Clusters view or add them by policy rules in the Policy view. To ease the load on production hosts, you can also replicate from existing backups, which you pick in the Jobs & Groups view. On the Destination step, choose the host and storage at the secondary site.Selecting VMs for Proxmox VE replication
  3. On the Networks and Re-IP steps, map each source network to one at the recovery site and set replacement IP addresses.
  4. On the Schedule step, set how often the replica updates, which determines your RPO.

Once the replication job runs, you have replicas ready to fail over to.

Step 2: Create and configure a Proxmox VE failover action

With replicas in place, create a Site Recovery job and add the failover action:

  1. Go to Data Protection, click + and select Site recovery.Creating a Proxmox VE Site Recovery job
  2. On the Actions step of the New Site Recovery Job Wizard, click Failover Proxmox VE VMs.Adding a Proxmox VE failover action
  3. On the VMs page of the action, select the replicas to fail over in the Jobs & Groups view, or switch to the Policy view to pick them by policy rules. Choose a recovery point for each replica and click Next.Selecting a VM replica for Proxmox VM failover
  4. On the Options page, set the following and click Save to add the action to the job:
    • Power off source VMs: Shuts down the production VMs during failover, in production mode only.
    • Run this action in: Limits the action to test mode or production mode, or runs it in both.
    • Waiting behavior: Makes the next action wait for this one to complete or start immediately.
    • Error handling: Decides whether a failed action stops and fails the job or lets it continue.
    • Bottleneck detection: Shows which stage of the data path limits job speed.

    Configuring options for Proxmox VM failover

Step 3: Configure VM recovery order and Site Recovery actions

  1. Add the remaining actions your plan needs, for instance, a Stop Proxmox VE VMs action to shut down VMs at the primary site before failover and Start Proxmox VE VMs actions to bring dependent VMs up in the right order at the secondary site.
  2. Arrange the actions into the sequence that matches your application dependencies, so services come up in a working order rather than all at once. Select an action and click Move up or Move down to change its position. Inside an action, drag VMs to set their processing priority.Setting the Proxmox VE VM recovery order
  3. On the Networks step, map each source network to a target network for production runs and to a test network for test runs. Proxmox VE bridges and software-defined networking (SDN) vNets both appear in these lists. On the Re-IP step, set replacement IP addresses for the recovery site.
  4. On the Test Schedule step, set a test schedule or select Do not schedule, test on demand. On the Options step, enter a job name and click Finish.

Step 4: Run and test the Proxmox VE disaster recovery workflow

Don’t trust the plan until you’ve tested it. In test mode, the job walks through the recovery sequence, leaves production VMs undisrupted and reverts its changes when it finishes, so you can confirm the plan works with no real failover involved.

  1. In Data Protection, choose the Site Recovery job, click Run and select Test site recovery job. In the dialog that opens, keep or change the recovery time objective and click Test.Testing a Proxmox VE disaster recovery workflow
  2. Once a disaster recovery test passes, that same job is the one you run in production mode during an actual disaster. Click Run, select Run site recovery job and choose a failover type:
    • Planned failover: Syncs replica data with the source VMs before switching workloads to the replicas, to minimize data loss.
    • Emergency failover: Switches workloads to the replicas immediately, to minimize downtime.

How to Fail Back Proxmox VE VMs with NAKIVO

Proxmox VM failback works only on replicas in the Failover state, so it always follows a failover. You can run it in two ways:

  • As a standalone job: In Data Protection, choose the replication job, click Recover and select Replication failback for Proxmox VE.
  • As a Site Recovery action: Add a Failback Proxmox VE VMs action to a Site Recovery job, where failback can also run in test mode.

Either way, you select the replicas and then choose where the workload returns.

Failback to the original Proxmox VE host

When the original production Proxmox VE host has been repaired, fail back to it with the Original location option. The NAKIVO solution sends the changes accumulated on the replica during the outage back to the source host and returns the workload there, so production resumes where it started, with the data written during failover preserved. This option requires storage that supports snapshots on that host, because the failback creates a snapshot of the source VM.

Failback to a new Proxmox VE host

When the original host is gone, for example, after a hardware replacement or a rebuild following a site loss, fail back to a new Proxmox VE host instead. Select the New location option, then choose the target container and storage. NAKIVO Backup & Replication brings the workload up there.

Selecting a new failback location

Proxmox VE Site Recovery and Disaster Recovery Testing

The same Proxmox VE Site Recovery job validates your plan in test mode and restores service in production mode, so every round of Proxmox VE disaster recovery testing rehearses the real recovery.

Create a Proxmox VE Site Recovery job

A Site Recovery job for Proxmox VE is created in the New Site Recovery Job Wizard, the same way as for other platforms. The wizard has five steps: Actions, Networks, Re-IP, Test Schedule and Options. Because the job is stored and repeatable, it becomes the documented, executable form of your disaster recovery plan rather than a runbook someone has to perform manually.

Building a Proxmox VE Site Recovery job

Configure Proxmox VE recovery actions and VM order

Within the job, order the actions and the VMs they act on to match your environment’s dependencies: Bring up database VMs before the applications that depend on them and infrastructure services before the workloads that need them. For a database-backed application, fail over the database replicas in one Failover Proxmox VE VMs action and the application replicas in a later one, or start VMs that aren’t replicated with Start Proxmox VE VMs actions in the same sequence. The order you set is the order the recovery runs in, so getting it right is what makes the recovered environment come up functional rather than in a broken half-state.

Two general actions make the sequence more dependable. A Wait action pauses the job to give services time to start. A Check Condition action tests whether a resource exists, is running or responds at its IP address or hostname, then continues the job, stops it, ends it or jumps to another action based on the result. In the example below, if the replica isn’t running yet, the job returns to the Wait action and checks again.

Configuring a Check Condition action

Schedule Proxmox VE disaster recovery tests

A disaster recovery plan that’s never tested is an assumption, not a plan. NAKIVO Backup & Replication runs Site Recovery jobs in a non-disruptive test mode that executes the sequence and then cleans up: VMs started for the test are powered off, and failed-over replicas return to their pre-failover state, with replication from the source re-enabled. On the Test Schedule step, set these disaster recovery tests to run regularly. A plan that passed six months ago may not still pass after the environment has changed, and scheduled tests catch that drift before a real disaster does.

Scheduling Proxmox VE disaster recovery testing

To check recovery speed, set a recovery time objective on the Options step of the wizard. Each test report then shows whether the sequence finished within that time, and you can adjust the value when you start a test on demand.

Setting a recovery time objective for a test

Policy-Based Proxmox VE Disaster Recovery Jobs

Policy rules decide which VMs a job protects, so policy-based Proxmox disaster recovery keeps coverage current without manual maintenance.

Create policy rules for Proxmox VE VMs

Instead of adding VMs to a job by hand, you define a policy made of rules that select VMs by their properties, and any VM that qualifies is added to the job automatically. For Proxmox VE, rules can check the VM name, location, storage, network, size or power state, and you choose whether a VM must meet all rules or any of them. Define them in the Policy view on the Source step of a Proxmox VE replication job or on the VMs page of a failover or failback action.

Match Proxmox VE VMs by policy

NAKIVO Backup & Replication supports policy-based jobs for Proxmox VE backup, replication, failover and failback. Matching is continuous: A newly created VM that meets the rules joins the job automatically, and a VM that stops matching (after a rename, for example) drops out of it. A rule that matches VM names containing “prod” can protect every production VM that follows your naming convention, without anyone remembering to add it.

Proxmox VE Disaster Recovery Requirements and Limitations

A Proxmox disaster recovery plan in NAKIVO Backup & Replication depends on supported Proxmox VE versions, the right edition, a chain of jobs and storage that can take snapshots.

Supported Proxmox VE versions

NAKIVO Backup & Replication v11.3 supports disaster recovery for Proxmox VE 8.x through 9.2. Support for later Proxmox VE releases arrives with NAKIVO updates, so check the supported platforms list in the NAKIVO user guide before you upgrade existing hosts or install new Proxmox VE hosts, and keep the NAKIVO components on supported versions.

NAKIVO editions and licensing

Replication, failover and failback for Proxmox VE come with all NAKIVO editions. Site Recovery jobs and policy rules require Enterprise Essentials, Enterprise, Enterprise Plus, MSP Enterprise or MSP Enterprise Plus, so your edition determines whether you run failover and failback as separate jobs or as one orchestrated workflow.

Proxmox VE disaster recovery dependencies

Disaster recovery for Proxmox VE builds on replication, so the dependencies follow that chain. A Proxmox VE replication job and its replicas must exist before you can fail over. Failback depends on failover: It works only on replicas that a failover job or action has switched to the Failover state.

Proxmox VE disaster recovery limitations

Keep these limitations in mind when you design the plan:

  • Snapshot-capable storage: Replication relies on VM snapshots. VMs on classic Logical Volume Manager (LVM) storage need the Snapshot as Volume Chain option to be replicated, and iSCSI or storage area network (SAN) storage needs it to serve as a replication target. The option is available in Proxmox VE 9.0 and later.
  • Failback to the original location: The Original location option is unavailable when the source VM’s storage doesn’t support snapshots. Fail back to a new location instead.
  • Re-IP for some Linux guests: Re-IP can’t be applied to VMs running Red Hat Enterprise Linux (RHEL) or other RHEL-family guest operating systems in their default configuration, because these systems disable the QEMU Guest Agent commands that Re-IP needs.

Conclusion

Disaster recovery for Proxmox VE rests on three capabilities: Replicas that stay close to production, failover that brings them online when the primary environment fails and failback that returns workloads once it’s repaired. Since v11.3, NAKIVO Backup & Replication covers all three for Proxmox VE.

A Site Recovery job turns them into one ordered workflow that you can test on a schedule without disrupting production and run unchanged when a real outage hits. Policy rules keep the job current as new VMs appear, so the plan you test stays the plan you run.

Try NAKIVO Backup & Replication

Try NAKIVO Backup & Replication

Get a free trial to explore all the solution’s data protection capabilities. 15 days for free. Zero feature or capacity limitations. No credit card required.

FAQ

What is disaster recovery for Proxmox VE?

Disaster recovery for Proxmox VE is the process of restoring Proxmox VE workloads after an outage takes down the production environment. It combines backups for point-in-time recovery with VM replicas on a secondary host, failover to those replicas when the primary site fails and failback once it is restored.

Does NAKIVO support disaster recovery for Proxmox VE?

Yes. Since v11.3, NAKIVO Backup & Replication supports failover of Proxmox VE VMs to their replicas, failback to the original or a new host and Site Recovery jobs that automate both. Replication, failover and failback come with every edition, while Site Recovery requires Enterprise Essentials, Enterprise, Enterprise Plus, MSP Enterprise or MSP Enterprise Plus.

Can I fail over a Proxmox VE VM to its replica?

Yes. Once a replication job has created replicas on a secondary Proxmox VE host, a replication failover job or a Failover Proxmox VE VMs action in a Site Recovery job powers on the replicas and switches the workload to them. You can map networks and set Re-IP rules so the replicas come up on the correct networks and addresses.

Can I fail back a Proxmox VE VM after a disaster?

Yes. Once the primary environment is back, failback syncs the changes made on the replica during the outage and returns the VM to the original Proxmox VE host or a new one. It works on replicas in the Failover state. Inside a Site Recovery job, failback can also run in test mode, which reverts its changes afterward.

Can I test Proxmox VE disaster recovery with NAKIVO?

Yes. NAKIVO Backup & Replication runs Site Recovery jobs in a non-disruptive test mode that executes the recovery sequence and then reverts the changes it made. You can run tests on demand or on a schedule and set a recovery time objective (RTO), and each test report shows whether the workflow finished within it.

Does NAKIVO support policy-based disaster recovery for Proxmox VE?

Yes. Policy rules in NAKIVO Backup & Replication add matching Proxmox VE VMs to backup, replication, failover and failback jobs automatically. Rules match VMs by name, location, storage, network, size or power state, so new VMs are protected without manual updates. Policy rules are available in Enterprise Essentials, Enterprise, Enterprise Plus, MSP Enterprise and MSP Enterprise Plus.

People also read