If you are using AWS Disaster Recovery to failover to AWS you may eventually need to failback to your on-premises environment. In testing with a virtualized home lab running Proxmox I ran into an annoying issue.
The process for failback is this:
- Failover to AWS, have to do this before you can failback
- Download ISO from AWS and attach to VM (or boot physical server from it)
- Once the ISO boots it prompts you for a region, access and secret key to setup the failback process
The issue I ran into is typing the region, access and secret key into the Proxmox console is a pain and I was typoing it. Here is the solution I came up with to help solve this:
Within the booted ISO you can use the
Ctrl+c command to quit the installer and be dropped into a Linux shell, within there you can modify the SSH configs to allow SSH on all network devices:
# Edit SSH config
Now that SSH is enabled you can run the replication executable over SSH to setup the failback process:
Now it should prompt you for your region, access and secret key and you can paste them in without having to worry about typos.
One thing to note is that the
failback_entry executable supports multiple flags, so you can pass in region, secret and access key via the CLI as well.
sudo ./failback_entry \