RancherOS, the original appliance platform, is deprecated. To leave it, you
build a new Ubuntu VM that takes over the old node’s name and IP address, and
you carry the configuration and data across with ntk backup. Firewall
rules, RADIUS clients and your users’ phones keep pointing at the same
address, so nothing else has to change. The old VM is only powered off, which
makes it the way back if something goes wrong.
We rehearsed this procedure in our lab. The old node ran RancherOS 1.5.8 with appliance CLI 5.0.20, authentication server 5.0.6 and datastore 1.12.0. The new node ran Ubuntu 24.04 and ended up on CLI 5.0.90, authentication server 5.2.4 and datastore 1.22. The outputs and pictures below come from that run.
This article covers an appliance with one node. If you run a cluster of several nodes, contact us before you start.
What the backup carries
The backup file contains the datastore and the appliance configuration:
- everything the authentication server stores, such as services, users and their onboarded devices;
- the configuration of the appliance services, for example the reverse proxy and the RADIUS proxy;
- the TLS certificate and its private key. In our run the new node served a certificate with the same fingerprint as the old one.
The backup also carries the version numbers of the old node. That matters in step 7 of the switchover.
These things are not in the backup, so you move them yourself:
- network settings. On Ubuntu you set the address, gateway and DNS servers in the operating system;
- the time zone and the time servers;
- files in the
userlogosdirectory, if your single sign-on pages use them; - containers that somebody started by hand, for example a monitoring agent;
- operating system users and their SSH keys.
Before the maintenance window
Nothing in this part interrupts the service.
-
Create a VM with a currently supported Ubuntu Server LTS release and the OpenSSH server. Give it the same memory and disk as the old VM and, for now, a temporary IP address. It needs the same internet access as the old node. Create the user accounts and SSH keys that your administrators need.
-
Run the installer on the new VM:
sudo bash -c "$(curl -fsSL https://www.notakey.com/install/appliance.sh)"
Answer y to Continue? and to Do you wish to continue?, and n to
Do you wish to run configuration wizard?. The installer sets up Docker and
downloads the current appliance packages. The download is the slow part (17
minutes in our lab), which is why you do it in advance. The manual steps
behind the script are in
Install the appliance on Ubuntu.
- On the old node, write down the node name, the datacenter name and the host name of the service:
ntk cfg get node
ntk cfg get :nas.host
The first command shows the node name and the datacenter name. The second shows the host name. Also write down the network settings of the old VM (IP address, netmask, gateway and DNS servers), its time zone and its time servers.
-
Copy what the backup does not carry to your workstation: the files in
~/userlogos, and the parameters of any container started by hand (docker inspect <name>). -
Tell your users about the maintenance window. Plan 30 to 60 minutes. During that time nobody can approve a sign-in.
Switchover
- On the old node, save the backup. The path must be absolute, and the file must not exist yet.
ntk backup save /home/ntkadmin/appliance.backup
Exporting cluster data... ok
Verifying backup integrity... ok
Backup saved to /home/ntkadmin/appliance.backup
Copy the file to your workstation. It contains the private key of the TLS certificate and other secrets, so store it like a password and delete the copies you no longer need.
-
Power off the old VM. Do not delete it.
-
Give the new VM the IP address of the old one and check that you can reach it. Other devices in the network can take a minute or two to notice that the address has moved to a new machine. In our lab the first connections after the change got no answer for about that long.
-
Run the configuration wizard on the new VM:
ntk wizard
Enter the node name and the datacenter name of the old node, answer n when
the wizard asks whether to join an existing cluster, and enter the same host name and the same IP
address as before. Answer n to Use builtin reverse proxy for TLS termination?. This only skips the certificate questions: the restore brings
back the reverse proxy settings and the certificate.

- Reboot the new VM:
sudo reboot
- Copy the backup file to the new VM, into the home directory of your
user. Check that the datastore status is
running, then restore. If it is not running, start it withntk cluster start. Use the full path of the file as it is on your VM.
ntk cluster status
ntk backup load /home/ntkadmin/appliance.backup
On Ubuntu the restore does not touch the network settings and says so
(Network configuration restore not supported on your OS!). That is
expected, because you set the network in step 3.
If the old node ran older versions than the installer downloaded, the
restore then reports errors such as Image … does not exist and
Certificate export failed (ERROR 161). The restore puts back the old
node’s version numbers, and those versions are not on the new VM. The data
is restored all the same. The next step fixes the versions.


- Run the update twice. The first run updates only the management tools
and asks you to run it again. The second run sets the current versions
and restarts the datastore. The option
-yanswers the confirmation questions with yes.
ntk sys update -y
ntk sys update -y
- Set the time zone. Do it after the restore, because the restore resets it.
ntk sys timezone Europe/Riga
The command ntk sys ntp is not available on Ubuntu. Ubuntu keeps the clock
in sync by itself. If you use your own time servers, set them in the
operating system (/etc/systemd/timesyncd.conf).
- Start the authentication server. The update does not start it. This command also starts the reverse proxy.
ntk as start
If you use the RADIUS proxy or single sign-on, start them too:
ntk ap start
ntk sso start
- Reboot once more and check that the services come back by themselves.
In our lab, about 7 minutes passed between powering off the old node and the first answer from the new one. The packages were already downloaded, and the wizard was answered by a script.
Check the result
List the containers and ask the services for their status:
docker ps
ntk as status
ntk cluster health

The line accessible via HTTPS in ntk as status says no when the
appliance itself does not trust the issuer of the certificate. That was the
case in our lab, where the certificate came from a private certificate
authority. The service still answered other machines normally. Check from
your workstation instead:
curl https://mfa.example.com/api/health
{"STATUS":"LIVE"}
Then check the things only you can check:
- the browser shows the same certificate as before;
- you can sign in to the management dashboard, and the licence, the services and the users are there;
- a real sign-in with an approval on the phone works through every integration you use, for example the VPN;
- the files and hand-started containers from step 4 under “Before the
maintenance window” are back in place. On Ubuntu the
userlogosfiles go to the directory named byASSETS_DIRin/opt/notakey/cfg/.env(/opt/notakey/sharedby default).
The way back
If something does not work and you cannot fix it within the window:
- Power off the Ubuntu VM.
- Power on the old RancherOS VM. It continues with the same address and the data it had when you powered it off.
In our lab the old node answered again in under 3 minutes. Changes made on the new node in the meantime, such as newly onboarded phones, do not exist on the old one.
Before you contact us, create a support request file on the new VM and attach it:
ntk sys supreq --include-config
Afterwards
Keep the old VM powered off for at least a week, then delete it. Delete the copies of the backup file as well.
From now on, update the appliance with ntk sys update and the operating
system with the usual Ubuntu tools. Filter traffic to the appliance on a
firewall in front of the VM. UFW on the VM itself does not filter the ports
that Docker publishes.