Skip to main content

Ports and files

Ports​

PortDirectionUsed for
7443/tcpbrowsers → node, node ↔ nodeThe web UI, the API, heartbeats and everything else between nodes (HTTPS with a self-signed certificate that each node pins for the others)
8443/tcpnode ↔ nodeIncus API, used to copy VMs between nodes (replication, moves, ISOs and saved images)
7443/udp (IPv6 link-local multicast to ff02::5354:4158)node ↔ node, direct cable onlyBeacons on spare wired ports that find a direct cable between nodes. They never leave the cable. This port stays 7443 even if you change --listen.
ICMP / ARPnode → LANPinging the tiebreaker (router, two-node clusters only) and checking whether a failed node or its VMs still answer before a takeover

If ufw is active when you install, the installer opens 7443/tcp, 8443/tcp and 7443/udp. With any other firewall, open them between the nodes yourself; the UI port also needs to be reachable from wherever you manage the cluster. Nodes installed with version 0.1.1 or earlier did not get the 7443/udp rule (updates do not change the firewall): if you use a direct cable, run sudo ufw allow 7443/udp on them, or the nodes never find the cable.

Outbound​

DestinationWhen
Ubuntu/Debian mirrors, pkgs.zabbly.comInstalling (packages, Incus)
images.linuxcontainers.orgBrowsing and downloading VM images from the catalog
The registry of an app's image (Docker Hub, ghcr.io, lscr.io, quay.io, ...)Looking up and downloading app images, and once a day per app, checking for a newer one
Your NAS (NFS 2049/tcp, SMB 445/tcp)Mounting the network shares, from every node
Any URL you giveDownloading an ISO from a URL into the ISO library, or the files of a VM to import
updates.harnessautomation.comChecking for and downloading updates (optional; releases can be uploaded instead), and activating and renewing a license (optional; a site without internet uses license files, see License)
The new machine, on SSH (22/tcp, or the port you give)Adding a node over SSH, from the node you add it on
Your SMTP server, the Telnyx APISending alarm emails and text messages, if configured
A Shelly smart plug on the LANSwitching a failed node off before takeover, if configured

Files on a node​

PathWhat it is
/etc/staxmax/staxmaxd.envLocal options for staxmaxd (STAXMAXD_OPTS). Updates keep it.
/etc/staxmax/keyring.jsonThe signing keys this node trusts for releases. A release whose signature doesn't verify is never installed.
/etc/systemd/system/staxmaxd.serviceThe unit. It belongs to the release and is replaced on every update, so put local options in staxmaxd.env, not here or in a drop-in.
/opt/staxmax/currentLink to the release that is running, in /opt/staxmax/releases/<version>/. /opt/staxmax/previous links to the one a rollback goes back to. Each release includes license-keyring.json, the key license files must be signed with.
/usr/local/bin/staxmax, /usr/local/bin/staxmaxdThe admin command and the daemon (links into the current release)
/usr/local/sbin/staxmax-updateInstalls, checks and rolls back releases on this node; see Command line
/usr/local/sbin/staxmax-uninstallRemoves staxmaxd, leaving Incus, VMs and the pool
/etc/issue.d/staxmax.issueThe node's name and dashboard address, shown above the login prompt on its screen. staxmaxd keeps it up to date; staxmax-uninstall removes it.
/etc/needrestart/conf.d/staxmax.confKeeps system updates from restarting Incus and staxmaxd (see System updates). Written by staxmaxd where needrestart is installed. To keep your own version, delete its first line; staxmaxd then leaves the file alone, and so does staxmax-uninstall, which otherwise removes it.
/etc/systemd/system/apt-daily-upgrade.timer.d/staxmax.confThe node's own hour for the nightly system updates. Written by staxmaxd, with the same first line and the same rules. staxmax-uninstall puts the updates back to their usual hour.
/etc/netplan/90-staxmax.yamlMarks network ports the node's start waited for in vain as optional, so the next start does not wait for them (see Troubleshooting). Written by staxmaxd only on a node that had such a wait, with the same first line and the same rules. staxmax-uninstall removes it, which brings the wait back.
/etc/systemd/logind.conf.d/staxmax-no-sleep.confWritten if the installer turned sleep off (it also masks sleep.target, suspend.target, hibernate.target, hybrid-sleep.target and suspend-then-hibernate.target). staxmax-uninstall removes it and unmasks them.
/var/lib/staxmax/The node's state (see below)
/var/lib/staxmax-import/Where files of a VM being imported, and disks being built for Download as OVA, wait while they are converted. It is the ZFS dataset <pool>/staxmax-import on the storage pool, created the first time it is needed and emptied when staxmaxd restarts. staxmax-uninstall leaves it.
/var/log/staxmax/Logs of each install, update and rollback. staxmaxd itself logs to the journal (journalctl -u staxmaxd).
The backup storage (Settings → Backups)Nightly exports, one file per VM per night: <vm>/<vm>_<time>.tar.gz. A Folder is the same path on every node; a USB drive or a share is mounted by staxmax at /mnt/staxmax/backup (on every node for a share, on the drive's node for a USB drive).
/mnt/staxmax/shares/<name>Where every node mounts each network share; containers' shared folders point here. While a share is not mounted, the folder is empty and immutable.
/etc/systemd/system/mnt-staxmax-shares-<name>.mountThe mount of each network share, written by staxmax (it replaces your changes). An SMB share's user and password are in /etc/staxmax/share-<name>.credentials, readable by root only.
/etc/systemd/system/mnt-staxmax-backup.mountThe mount of the backup storage, written by staxmax (it replaces your changes). An SMB share's user and password are in /etc/staxmax/backup-smb.credentials, readable by root only.
The offsite bucket or SFTP folder (Settings → Offsite backups)Encrypted exports: <folder>/<cluster ID>/<vm>/<vm>_<time>.tar.gz.enc. Decrypt one by hand with staxmax decrypt-backup; see Command line.

State directory: /var/lib/staxmax​

FileWhat it is
config.jsonThis node's identity, the cluster members, the cluster settings, the admin password hash and the cluster secret. Readable by root only; treat it as a secret.
state.jsonThe replicated VM table
tls.crt, tls.keyThis node's certificate, pinned by the other nodes. Don't replace or delete them: a new certificate is no longer accepted by the other nodes.
fenced.jsonPresent while this node has fenced itself; keeps it fenced across restarts and reboots
alarms.jsonWhich alarm notifications have been sent
password-reset.jsonLeft by staxmax reset-password until staxmaxd applies it
setup-codeThe code the setup page asks for, until the node is set up
identify-leds.jsonPresent while Identify blinks the port light: how to put the light back if staxmaxd stops meanwhile
update-rollout.jsonThe cluster update this node is coordinating, so it can finish the record after its own restart
boot_idThe boot staxmaxd last started in, so it can tell a restart of staxmaxd from a reboot
updates/This node's identity with the release server
updates/license.json, updates/license-state.jsonThis node's current license, as last issued by the license server or imported from a file, and what it must remember across restarts.
updates/releases/Kept installers (.run + .sig), handed to other nodes in an update and to machines that join
incus-client/Credentials staxmaxd uses to talk to the other nodes' Incus
danger

Deleting /var/lib/staxmax turns the machine back into a fresh, unconfigured node. Do that only to a node the cluster has already removed (see Troubleshooting), never to a live member.

Incus objects staxmax creates​

NameWhat it is
Storage pool staxZFS pool for VM disks, ISOs and images (name chosen at install; the same on every node). Without --disk it lives in a file under /var/lib/incus/disks/.
Custom volumes <vm>_<disk>A VM's or container's data disks, in the storage pool, devices disk-<disk> on the instance
Network lanmacvlan network on the LAN interface that VMs attach to
Networks lan-v<n>One per VLAN in use, made on each node from its own lan
Snapshots named stax-…staxmax's own replication snapshots; not shown in the UI and not to be touched
ZFS dataset <pool>/staxmax-importMounted at /var/lib/staxmax-import; see above. Not an Incus object, but on the same pool.
Instances named …-orphan-<time>A preserved copy of a VM that lost ownership after a failover; never deleted automatically

Every VM has Incus autostart turned off: staxmaxd decides what runs where.