📚 Browse docs

Install Asternodis

Asternodis installs from a single command on any Linux host: your Proxmox node, or a small VM that can reach it. Apart from curl to fetch the installer and OpenSSL 3.0 or newer (shipped by recent Proxmox VE) for the installer to check the release signature, the host needs only the OpenSSH client (ssh), which every Proxmox VE node already has. There is no proprietary agent to push into your guests: Asternodis works through Proxmox’s own API, SSH, and (in VMs that run it) the standard qemu-guest-agent, which Asternodis can install where it is missing.

curl -fsSL https://asternodis.com/install.sh | sh

The installer:

  • detects your OS/architecture (Linux amd64 or arm64) and downloads the matching static binary;
  • verifies it before installing anything: the release’s SHA256SUMS must carry a valid cryptographic signature from the Asternodis release key, and the binary’s SHA-256 must match it. A download that doesn’t verify is refused, and nothing is installed;
  • puts the verified binary at /usr/local/bin/asternodis;
  • creates the state directory /var/lib/asternodis;
  • installs and starts a systemd service that runs the daemon + web UI.

When it finishes it prints the URL to open, which is HTTPS on port 443 with a self-signed certificate on first run:

https://<this-host-ip>

Install in a new VM on a Proxmox node

To give the controller a virtual machine of its own, run this as root on a Proxmox VE node:

curl -fsSL https://asternodis.com/vm.sh | sh

It creates a Debian 13 VM (4 cores, 2048 MiB of memory, a 16 GiB disk, DHCP on vmbr0) from Debian’s official cloud image, and runs the installer above inside it. The image’s SHA-512 is checked against Debian’s list before it is used. A small cloud-init seed sets the VM’s name, network and keys and installs the QEMU guest agent at first boot; the script then runs every step inside the VM through that agent. The image and the seed are kept in /run (memory) only while the VM is made, so nothing is written to the node’s root filesystem, and the seed disk is removed from the VM once the install is done. Nothing else on the node is changed. At the end it prints the address to open.

A VM rather than a container: the controller is what you rely on when a node is in trouble, and a VM runs its own kernel, so a problem in the node’s kernel does not reach it, and it can be live-migrated off a node for maintenance in seconds.

The VM gets the node’s own CPU type (--cpu host) by default. That gives it AES-NI and PCLMULQDQ, which TLS needs for full speed, but a VM on host live-migrates only between nodes with the same CPU. In a cluster of mixed CPUs pass --cpu x86-64-v3: it migrates anywhere, and AES-GCM encryption is then much slower, as Proxmox’s generic CPU types do not include PCLMULQDQ.

By default it prints only its steps. Pass --verbose to see more: what the script found on the node (the storages, the free ID, the image), the seed it built, each Proxmox command before it runs (+ qm create ...) along with that command’s output, and every wait with its time and result. Errors are always shown. When the VM never comes up, the script prints what its console says about the network: cloud-init’s table of the VM’s addresses and routes, any errors from installing the guest agent (a mirror it could not reach, a name it could not resolve), and the console’s last lines.

Pass options after sh -s -- to choose the VM’s settings, for example a static address and a name that says which site the controller is for:

curl -fsSL https://asternodis.com/vm.sh | sh -s -- --ip 10.0.20.5/24 --gw 10.0.20.1 --hostname asternodis-site-a
OptionDefaultSets
--vmid Nnext free IDThe VM ID.
--hostname NAMEasternodisThe VM’s name and hostname.
--cores N4CPU cores.
--memory MiB2048Memory, at least 1024.
--disk GiB16Disk size, at least 8.
--storage NAMElocal-lvm or local-zfsStorage for the disk; otherwise the first active storage that holds VM disks, the node’s local last.
--cpu TYPEhostThe CPU type, such as x86-64-v3 for a cluster of mixed CPUs.
--image FILEDebian 13 cloud imageA cloud image already on the node (qcow2 or raw), instead of downloading Debian’s.
--bridge NAMEvmbr0The bridge.
--vlan TAGnoneA VLAN tag.
--ip CIDRdhcpA static IPv4 address with its prefix. Needs --gw.
--gw ADDRESSfrom DHCPThe IPv4 gateway.
--ip6 CIDRnonedhcp, auto or a static IPv6 address with its prefix.
--gw6 ADDRESSnoneThe IPv6 gateway.
--dns ADDRESSfrom DHCP, or the node’sA DNS server. With a static --ip and no --dns, the node’s own DNS servers are used.
--searchdomain NAMEas for --dnsThe DNS search domain.
--ssh-keys FILEnoneAn authorized_keys file for the VM’s user asternodis.
--no-onbootstarts at bootDo not start the VM when the node boots.
--version vX.Y.ZlatestThe release to install.
--net-timeout SECS300How long to wait, from the VM’s start, for it to boot, reach the internet and answer through its guest agent, from 30 to 86400.
--keep-on-faildestroy itKeep the VM when the install fails, to look at it.
--dry-runSay what would be done and change nothing.
--verbosesteps onlyAlso print what was found on the node, the seed, each command and its output, and every wait.

Every option is checked before anything is created, including that a static --gw is in the network of --ip, and that no running guest in the cluster already has the static --ip or --ip6 (two guests on one address cannot both reach the network). A stopped guest with the address is only noted, as you may be replacing it; do not run both. The check reads the guests’ Proxmox settings, so it cannot see a device outside Proxmox that uses the address. A static address is also written into the VM’s notes in Proxmox. The node must reach cloud.debian.org to download the image (unless you pass --image), and the VM must reach deb.debian.org for the guest agent and https://asternodis.com for the release.

If anything fails after the VM was created, or you interrupt the run with Ctrl-C, the script stops and destroys that VM, which it created itself; nothing else is touched. With --keep-on-fail the VM is kept instead, and the script prints the command to retry the install and the one to remove the VM.

Signing in to the VM

The VM has a user called asternodis for you to sign in with, at the VM’s console in the Proxmox web UI (the VM’s Console tab) and over SSH. It is in the sudo group: sudo -i gives a root shell. Root itself has no password and does not accept SSH passwords.

At the end of the install, vm.sh asks you to set the password of asternodis, typed twice. The password goes from your terminal to the VM’s guest agent: it is never on a command line or in the script. When there is no terminal to ask at (the script run from another script, say), it skips this and prints the command to set it. Set or change the password from a shell on the Proxmox node at any time, while the VM is running:

qm guest passwd <vmid> asternodis

Or run passwd in the VM once you are signed in.

SSH also accepts keys. Give asternodis your keys when you create the VM with --ssh-keys, or add one later from your own machine once the password is set:

ssh-copy-id asternodis@<the VM's address>

These are the VM’s own accounts. The Asternodis web UI has its own: the first time you open https://<the VM's address>, the first screen (Secure this console) asks you to create its admin user and password.

An example with every option

This sets up a recovery-site controller as VM 250. It gets a static IPv4 and IPv6 address on VLAN 20 of vmbr0, its own DNS server and search domain, 8 cores, 4 GiB of memory and a 32 GiB disk on local-lvm, the x86-64-v3 CPU type for a cluster of mixed CPUs, and pins release v1.1.2. The keys that log in to the node as root can sign in to it as asternodis, and it stays stopped when the node boots until you start it. It waits up to 10 minutes for the VM to come up, and keeps the VM if the install fails.

First, check the plan with --dry-run. It reads the node and prints what it would create, but downloads and changes nothing:

curl -fsSL https://asternodis.com/vm.sh | sh -s -- \
  --vmid 250 \
  --hostname asternodis-site-b \
  --cores 8 \
  --memory 4096 \
  --disk 32 \
  --storage local-lvm \
  --cpu x86-64-v3 \
  --bridge vmbr0 \
  --vlan 20 \
  --ip 10.0.20.5/24 \
  --gw 10.0.20.1 \
  --ip6 fd00:20::5/64 \
  --gw6 fd00:20::1 \
  --dns 10.0.20.53 \
  --searchdomain dr.example.com \
  --ssh-keys /root/.ssh/authorized_keys \
  --no-onboot \
  --net-timeout 600 \
  --keep-on-fail \
  --version v1.1.2 \
  --dry-run

Then run the same command without --dry-run to create the VM and install:

curl -fsSL https://asternodis.com/vm.sh | sh -s -- \
  --vmid 250 \
  --hostname asternodis-site-b \
  --cores 8 \
  --memory 4096 \
  --disk 32 \
  --storage local-lvm \
  --cpu x86-64-v3 \
  --bridge vmbr0 \
  --vlan 20 \
  --ip 10.0.20.5/24 \
  --gw 10.0.20.1 \
  --ip6 fd00:20::5/64 \
  --gw6 fd00:20::1 \
  --dns 10.0.20.53 \
  --searchdomain dr.example.com \
  --ssh-keys /root/.ssh/authorized_keys \
  --no-onboot \
  --net-timeout 600 \
  --keep-on-fail \
  --version v1.1.2

--no-onboot only affects later reboots of the node: the VM is still started now, so the install can run.

--ssh-keys names a file on the node, and its keys sign in to the VM as asternodis. /root/.ssh/authorized_keys there holds the keys that can already log in to the node as root.

--image skips the download, for a node without internet access to cloud.debian.org: download debian-13-genericcloud-amd64.qcow2 elsewhere, check it against Debian’s SHA512SUMS, copy it to the node and pass its path:

curl -fsSL https://asternodis.com/vm.sh | sh -s -- \
  --image /root/debian-13-genericcloud-amd64.qcow2 \
  --ip 10.0.20.5/24 \
  --gw 10.0.20.1

Add --verbose to any of these to see each command and wait. For DHCP leave out --ip and --gw, or pass --ip dhcp. For IPv6 from DHCPv6 or SLAAC pass --ip6 dhcp or --ip6 auto without --gw6. To see every option on the node itself:

curl -fsSL https://asternodis.com/vm.sh | sh -s -- --help

Put each site’s controller at that site: the recovery site’s controller belongs on a recovery node, not on a node it protects.

What’s running

ComponentDefaultPurpose
Web UI / API:443 (HTTPS)The console and REST API you interact with. A :80 listener redirects here.
Peer link and Site Link:8444 (mTLS)The one port between paired sites: pairing, the control channel, and the Site Link that carries replication. Reachable in one direction is enough. You can change it under Settings → Site Link.
Data dir/var/lib/asternodisThe controller database and keys.

The self-signed cert is fine for evaluation. For production you can supply your own certificate (--tls-cert / --tls-key) or terminate TLS at a proxy. See the CLI reference.

Network ports

The default setup needs one port between the sites: the Site Link, a long-lived mutually authenticated TLS connection between the two controllers, on the peer port (8444). It is enough for the control channel (every call one controller makes to the other) and for replication, failback, restore and container transfers, which all travel through it. It has to be reachable in one direction only: whichever controller can reach the other opens the connection, so a primary site behind a NAT can dial out to a reachable recovery site and that is the whole network setup. A firewall that blocks only one direction does not stop the control calls either: the controller that cannot connect sends them through the link the other one opened. Nothing is changed on your Proxmox nodes and no port range is opened between them.

Pairing is the one step that needs a particular direction: the controller you join from connects to the controller you created the pair on, so that port must be reachable from the joining site when you join. Once the pair exists, either direction is enough, and the pair keeps working if the direction that was used to join is later closed and the other is open. (A pair set to Direct only connects the control calls directly too, so it needs the port open in both directions.)

From → toPortPurpose
Browser → controllerTCP 443, and 80Web UI and REST API over HTTPS. :80 only redirects to :443.
Controller ↔ peer controllerTCP 8444, in one direction is enoughThe Site Link and the control channel between paired sites (--peer-listen); for pairing, from the joining controller to the one the pair was created on. Change it, live, under Settings → Site Link.
Controller → Proxmox node you addedTCP 8006Proxmox API. Set per cluster.
Controller → Proxmox nodesTCP 22SSH for node operations. Set per cluster.
Controller → internetTCP 443, outboundLicense activation and periodic check-in, and update downloads.
DNS clients → recovery nodeTCP/UDP 53Only when DR DNS is enabled for a pair.
Proxmox nodes → package repositoriesTCP 80/443, outboundOnly to install what is missing: a standard Debian package a node lacks, installed with apt-get, and qemu-guest-agent for a Linux guest, which comes from that guest’s own repositories.
Controller → your webhook endpointsAs configured, outboundOnly with alert webhook delivery or automation hooks.

The Site Link is a relay: the data crosses both controllers, so its speed is bounded by their CPU and network and by the round-trip time between the sites. The controllers relay only encrypted bytes: a VM disk stream keeps its own TLS from node to node inside the Site Link, and a container transfer is SSH carried through it. On a typical site-to-site link the relay is not the limit: on a two-site test link that carries about 25 MB/s, the Site Link moved data as fast as plain TCP between the nodes, in both directions, and the relaying controller used under 40% of one CPU core. To check yours, run Measure link speed on the pair’s page (Sites & nodes → Site pairs).

  • Controller VM CPU type. If a controller runs as a Proxmox VM, give it CPU type host (or another type that passes through the AES and PCLMULQDQ instructions). Without PCLMULQDQ, encryption falls back to software and costs much more CPU. The controller says so in its log at start-up and in the speed test result.
  • Faster still. Where the nodes of the two sites can reach each other directly, opening the paths below lets each pair skip the controllers (see the Site Link mode on the pair’s page).

Optional: direct node paths

These are needed only for Direct only mode, and in Auto mode they are used only where the pair’s network check proved them open. Auto never needs them: with none of them open, it uses the Site Link. Open them when you want the extra speed of node-to-node transfers, or when you set a pair to Direct only. Open them at both sites:

From → toPortPurpose
Primary nodes → recovery nodesTCP 10800–20000VM disk replication: one encrypted port per disk, chosen from the recovery site’s range on the recovery node. The range shown is the default; each site sets its own under Settings → Direct node paths.
Recovery nodes → primary nodesTCP 10800–20000VM failback, and restore in place: the recovery site streams back to the primary node, one encrypted port per disk, chosen from the primary site’s range (the default is the same).
Primary nodes → recovery nodesTCP 22Container replication and failback over SSH, and VMs in the optional native-ZFS mode.
  • Node-to-node addresses. In a direct path a node connects to its counterpart at the address that counterpart’s own controller uses for it, so each site’s node addresses must be routable from the other site. Where they are not, give the node a data address under Settings → Direct node paths. The Site Link needs no node addresses.
  • Node-to-node SSH is always port 22. The per-cluster SSH port applies to the controller’s own connections only. Asternodis authorizes a per-pair key in the recovery cluster’s root authorized_keys for this path.
  • Which nodes the controller reaches. Other members of a cluster are reached through the node you added. The exceptions are a recovery node that holds replicas and a node you choose as a failback target: the controller reaches those directly at their cluster address.

Manual install

Prefer to place the binary yourself? Download asternodis_linux_amd64 (or asternodis_linux_arm64), mark it executable, and run asternodis serve. A manual download is not signature-checked for you: fetch SHA256SUMS and SHA256SUMS.sig from https://dl.asternodis.com/latest/ into the same folder and, from an already-installed asternodis you trust, run asternodis verify-release --dir . --name asternodis_linux_amd64 (it applies the same check as the installer and the in-app updater). latest is the only published channel today: a version path such as /get/v1.0.16/ returns 404 until that release is published as its own channel. The CLI reference covers the flags.

Next: first run. Set the admin password and walk the setup guide.