Installing, updating, moving and removing an inference node
Installing
An inference node is a machine with GPUs that runs models for the control plane. Copy the install command from the control plane: Servers, Add Inference Node. It looks like this, and you run it on the machine, on Linux with systemd or on an Apple silicon Mac:
curl -fsSL https://get.onprem.ai/node | sh -s -- \
--control-plane-gateway-address 192.168.0.250 \
--control-plane-root-certificate-sha256 <fingerprint> --join-token <token>
Run it as your own user. The installer checks the arguments and downloads and checks the software as your user. Before the steps that need root (the system directories, the service account, the service definition and the programs that run as root), it prints what it installs as root and why, and asks for sudo once. Run as root, it asks for nothing, so | sudo sh also works, for scripts that run as root. With no terminal and no root, it stops and asks you to run it as root.
--control-plane-gateway-addressis the address that inference nodes connect to, for each machine of your control plane: an IP address or a name. A control plane on several machines has one address per machine, separated by commas (--control-plane-gateway-address 10.0.0.5,10.0.0.6:8443,[fd00::10]); the command the control plane gives you names all of them. One address is enough to join, and every address is more robust: the install works when one machine is down. When a machine uses another inference port than 443, the port follows its address (--control-plane-gateway-address 192.168.0.250:8444). An IPv6 address is written as it is (--control-plane-gateway-address fd00::250), and in brackets when a port follows it (--control-plane-gateway-address [fd00::250]:8444).--control-plane-root-certificate-sha256is the fingerprint of your control plane's root certificate, in hexadecimal (colons are optional). Before the machine sends anything, it checks the certificate the control plane presents: it must name the address it dialled from--control-plane-gateway-address, and it must come from this root certificate (or from a certificate authority the machine already trusts, when you gave the control plane a certificate of your own). A machine in between cannot pose as your control plane.--join-tokenis the control plane's permission to add one inference node. It works once and for 15 minutes; opening Add Inference Node again gives a new one without cancelling earlier ones.--release 5.7.1installs one exact release. The command from Servers, Add Inference Node already names the control plane's own release: an inference node runs its control plane's release or an older one, never a newer one.
The machine reaches the control plane on its inference port, 443, for everything: joining, its connection to the control plane, model traffic and metrics. That one port must be open from the machine to the control plane; nothing on the machine needs to be reachable from outside.
What the machine needs
- A classic installation of a supported distribution with systemd (Ubuntu, Debian, Fedora, Rocky, RHEL, openSUSE), or an Apple silicon Mac. Image-based systems (Fedora CoreOS, Silverblue, RHEL image mode) are not supported yet: the install writes under
/optand/etc, and changes there do not survive those systems' own image updates. - Docker, from your distribution's packages or from docker.com. Docker installed as a snap is not supported: the snap's sandbox cannot see
/var/lib/onprem-ai, where the model weights live, so no model could start. On Rocky Linux and RHEL 10, and on the EL10 cloud images, Docker 29 needskernel-modules-extrafor the running kernel: rundnf install kernel-modules-extra-$(uname -r), thenmodprobe xt_addrtype. Without it the Docker daemon does not start, and its log says "failed to add jump rules to ipv4 NAT table".
The install checks both before it changes anything on the machine: a machine it cannot support is refused with what to use instead, and nothing else on it has been touched.
In a virtual machine
An inference node runs in a virtual machine when the hypervisor passes the GPUs through to it. A guide for each common hypervisor has every step in order, from the host's settings to the connected inference node, with the control plane in a second virtual machine:
- Installing on VMware vSphere
- Installing on Proxmox VE
- Installing on Nutanix AHV
- Installing on KVM and libvirt
The address in the install command
The install command names the address of every control-plane machine that inference nodes connect to, set under Configuration → Network → Inference node endpoints: one section per machine, each saved on its own. With Detect automatically (the default), a machine's address is its own network address: the address of the network interface its default route goes through, never the address your browser opened the page on. The API gateway public URL is for API clients only, and changing it moves no inference node. When inference nodes reach a machine on another address (through a router, or by a name), clear Detect automatically for that machine and enter the address. Each machine takes its new address within 10 seconds.
Before the inference node joins, the install checks every address against the root certificate in the command. An address of another control plane stops the install before anything is installed, with "<address> belongs to a different control plane: its certificate is issued by another root ... Nothing was installed.": remove or correct that address, or copy a fresh install command from Servers, Add Inference Node. An address of some other server with its own certificate (a router, for example) stops the install the same way, with "<address> is not this control plane". An address the install cannot check (a machine that is down) only gives a warning and stays in the configuration; the inference node joins through the first address that passed. A running inference node reports a certificate of another control plane the same way, as "<address> belongs to a different control plane", with the address to remove or correct.
Every inference node receives a changed address. The previous address of that machine stays in use, and in the control plane's certificates, until every inference node can reach the new one, also the inference nodes that are offline: an offline inference node learns the new address when it connects through the previous one. Until then the card names each inference node it waits for and why: it cannot reach the new address (with the reason and when it checked), it has not checked it yet, or it is offline (since when). Keep the previous address reachable until the list is empty: the control plane then stops using it by itself. Remove an inference node you no longer use, and the control plane stops waiting for it; a removed inference node must join again to come back. With no inference node registered, the control plane uses the new address at once.
Each address after --control-plane-gateway-address must be one the certificate of that machine names. The control plane's own certificates name every IP address of their machine and that machine's address for inference nodes on the Configuration page, so an IP address works with nothing to set up. When you use a DNS name, or an address the machine does not have itself (a virtual IP, a load balancer's address), add it first under Configuration → Security → Certificates, Edit names. When the control plane presents a certificate of your own (uploaded, or from files), every machine presents that one certificate, so it must name the address of every machine.
If it does not, the install stops before the machine joins and says which address it dialled and which names the certificate holds. Add the address under Edit names (or use a certificate that names it), wait 30 seconds, and run the install command again.
Several control planes behind one shared address
Several control planes can share one public address behind a router that forwards each connection, still encrypted, to the control plane whose name it was dialled with. Each control plane then has its own DNS name, and the install command names it (--control-plane-gateway-address cp-a.example.com); add that name under Edit names on that control plane. To let the control plane see each inference node's own address rather than the router's, the router must send the PROXY protocol header, and the control plane's machine names the router's addresses in TRUSTED_PROXY_ADDRESSES_INFERENCE_PORT in its .env file (see Installing the control plane). The inference port stays the same.
Through a proxy server (optional)
Where the machine reaches the internet and the control plane only through a proxy server, give the proxy to curl first, because curl downloads the installer before the installer reads its options. Then name the proxy in the install command:
export HTTPS_PROXY=http://proxy.example.com:3128
curl -fsSL https://get.onprem.ai/node | sh -s -- \
--control-plane-gateway-address 192.168.0.250 \
--control-plane-root-certificate-sha256 <fingerprint> --join-token <token> \
--outbound-proxy-url http://proxy.example.com:3128 --outbound-proxy-exceptions 192.168.0.0/16
The install writes both into the node's configuration file, and every connection the inference node opens takes the proxy. Docker or Podman needs its own proxy setting for the model images, and a proxy that inspects TLS needs its certificate authority on this machine before the install. The guide Outbound proxy shows every step in order, who does what, how the connection to the control plane passes a proxy that inspects TLS, the checks, and what to do when a connection fails.
When the connection drops
The inference node and the control plane check on each other every 3 seconds. When the path between them breaks (a control-plane machine stops, a network link goes down), the inference node notices within about 10 seconds, says that the control plane at its address stopped answering, and reconnects, to another control-plane machine when there are several.
The node's connection to the control plane can stay up while every new connection the inference node opens fails, for example after the control plane's certificate stops naming the address the inference node dials. The inference node then stays connected, but file transfers between the inference node and the control plane fail. On the Servers page its status shows in amber as Connected, new connections fail, and its card shows the reason the inference node reported. When the reason names a certificate, add the address under Configuration → Security → Certificates, Edit names (or use a certificate that names it). The status goes back to Connected after the next file transfer connects.
The installer joins the control plane first, before it downloads anything, so a mistyped or expired token fails within seconds. It then checks every file it downloads against the release's published record, creates the service account the inference node runs as, writes its configuration, starts it, and waits until it reports healthy. It ends with what it installed and whether the inference node reached the control plane. From then on every connection between the inference node and the control plane is encrypted end to end: the inference node checks that the control plane's certificate names the address it dialled and that the control plane holds a certificate from its own root, and the control plane checks the inference node's own certificate.
If the install stops because the token expired, was already used, or the fingerprint does not match, it names the reason: copy a fresh command from Servers, Add Inference Node and run it again. If it stops because the certificate does not name the address, see The address in the install command above.
Running it again on a machine that already joined needs no token.
Running it again over an installed inference node
When an inference node is already installed on the machine, the installer does not install over it. It says which version is installed, whether it answers its health check, and which release the installer offers, then asks what to do. It never updates the inference node: the control plane does (see Updating).
| Choice | What it does |
|---|---|
| Restart | Restarts the inference node and waits until it is healthy. Nothing else changes. |
| Reinstall | Installs the release the installer offers over the inference node (a repair). It keeps the configuration and everything the inference node holds. |
| Reset | Removes everything the inference node holds (its models, model weights and images, and its data, as onprem-ai-node remove-data does) and installs it again. Its identity stays, so it comes back as the same inference node in the control plane, with no new join token. It first asks you to type the name of the machine. |
| Quit | Changes nothing. |
To answer without being asked (in a provisioning script, say), add --if-installed restart, --if-installed reinstall or --if-installed reset to the command; --yes skips the reset's confirmation. Without a terminal to ask on and without --if-installed, the installer changes nothing and names the option to add.
What is on the machine
The guide Files and folders on the machine lists the folders of both parts, who writes them and what to back up.
| Linux | Mac | Belongs to | What it is |
|---|---|---|---|
/opt/onprem-ai/inference-node/ | /Library/Application Support/onprem.ai/versions/ | the inference node's account | The installed software: the running version and the one before it |
/opt/onprem-ai/libexec/ | (none) | root | The small programs that run as root: the one that gives the inference node its limited access to Docker, the one that reads the machine's serial numbers at boot, and the one that installs the others during an update from the control plane |
/etc/onprem-ai/inference-node/config.env | /Library/Application Support/onprem.ai/inference-node.env | root | The configuration. Change a value, then restart the inference node: sudo systemctl restart onprem-ai-inference-node. The old path /etc/onprem-ai/inference-node.env is still read |
/var/lib/onprem-ai/inference-node/ | /Library/Application Support/onprem.ai/state/inference-node/ | the inference node's account | Its data: its database, its identity, its error reports, and by default its model weights (see Data directories) |
/var/cache/onprem-ai/inference-node/ | /Library/Caches/onprem.ai/inference-node/ | the inference node's account | Downloaded software updates. It may be emptied at any time; an update downloads what it needs again |
/run/onprem-ai/ | (none) | root, readable by the inference node's account | Created at every boot: the machine's serial numbers, the inference node's connection to Docker, and a copy of the end of the newest kernel crash log (/var/crash) |
/etc/systemd/journald.conf.d/60-onprem-ai-inference-node.conf | (none) | root | Keeps the system journal across restarts of the machine. Not written when the machine's administrator chose the journal storage in /etc. The uninstall removes it and keeps /var/log/journal |
/usr/local/bin/onprem-ai-node | /usr/local/bin/onprem-ai-node | root | The command for the steps below. Where it cannot be placed, the install says so, and the command is /opt/onprem-ai/inference-node/current/onprem-ai-node |
The inference node runs as its own account, onprem-ai (on a Mac _onprem-ai), never as root. Everything the inference node writes belongs to that account, and the install and the commands below write those places as that account too, so a file there never ends up owned by root. Nothing the installer writes goes under /usr.
On Linux the account is in the systemd-journal group, so the inference node can read the machine's system journal: the kernel's lines when the machine restarted or ran out of memory go into its error reports. The install keeps the journal across restarts of the machine. A machine without that group gets a warning at the install with the fix.
The install and sudo onprem-ai-node doctor warn when the machine restarts instead of stopping one process when it runs out of memory (vm.panic_on_oom set to 1 or 2). Then a model that does not fit in RAM restarts the machine again at every start. The warning names the file that sets it and the fix: vm.panic_on_oom = 0, then sudo sysctl --system. The inference node does not change this setting itself.
If the inference node cannot write one of its directories (because its owner was changed by hand, the disk is full or mounted read-only, or a security policy such as SELinux denies it), it says so at start: the inference node's error reports name the directory and the fix, and the Updates page shows the same reason on the inference node's row and keeps its update disabled until the directory is fixed and the inference node restarted. For a wrong owner, the fix is sudo chown -R onprem-ai:onprem-ai <directory> followed by a restart.
Commands on the machine
Everything you do with an inference node after the install you can do from the control plane. These commands are for the machine itself, and for an inference node that cannot reach the control plane:
| Command | What it does |
|---|---|
sudo onprem-ai-node doctor | Checks the GPUs, Docker, the configuration and the connection to the control plane (the address in use and why, and the proxy server, when there is one), and says what is wrong |
sudo onprem-ai-node error-reports list | Lists the error reports this inference node wrote; error-reports export ID copies one into the current directory, to send to support |
sudo onprem-ai-node audit-log list | Lists what the inference node did, newest first |
sudo onprem-ai-node connect | Joins the control plane again, or another one (below) |
sudo onprem-ai-node disconnect | Removes the inference node from its control plane (below) |
sudo onprem-ai-node stop | Stops everything the inference node runs (the inference node itself and every model) and frees the GPUs. It stays stopped after a reboot, and the Servers page shows it disconnected |
sudo onprem-ai-node start | Starts the inference node and its models again after stop |
sudo onprem-ai-node remove-data | Removes everything the inference node holds and keeps the software and its identity (below) |
sudo onprem-ai-node uninstall | Removes the inference node from the machine (below) |
Updating
An inference node is updated only from the control plane: Servers, the inference node's menu, Software update..., or the Updates page. It is updated to the control plane's own release, so update the control plane first. No command on the machine updates it.
The Updates page says before you start what the update needs:
- Most updates keep the models running while the inference node switches to the new version.
- Some updates stop the models on the inference node and start them again afterwards. The Updates page says why, and the update starts only when you confirm that the inference node goes into maintenance for it.
- Some inference nodes cannot be updated, for example because their version is too old. The Updates page and the inference node's card on Servers say why. Uninstall the inference node (
sudo onprem-ai-node uninstall, see Removing an inference node) and install it again with the command from Servers, Add Inference Node. Its model weights stay on the machine, so they are not downloaded again.
An update ends with the inference node restarting into the new version, so for a short while it is not connected to the control plane. The Servers page and the Updates page show what that means:
| Status | What it means |
|---|---|
| Updating | The inference node is restarting for the update you requested. It connects again on its own, usually within a minute. |
| Connected | It is back, and its card shows the version it runs. The Updates page's Status column says whether the update completed (Updated) or the inference node went back to the previous version (Rolled back). |
| Update failed | The update did not complete: the inference node reported that it failed or went back to the previous version, or it has not connected again within 15 minutes of the restart. The card says what happened; when the update wrote an error report, its id is shown beside it, to open and send to support. If the inference node has not come back, check the machine: that it is on, that its network reaches the control plane, and run sudo onprem-ai-node doctor on it. |
| Connection degraded | Connected to the control plane, but another of its connections does not work: the API gateway (its models answer no requests), metrics, or file transfers. The info icon beside the badge shows each connection with its reason. The inference node retries on its own; if it does not recover, check that the machine reaches the control plane's inference port. |
| Disconnected | Not connected for another reason than an update you requested. When the inference node keeps its connection but the control plane cannot record that it is running (its database is full or does not answer), the card says the cause is on the control plane, not on the inference node, and shows the control plane's error report id. The inference node counts as connected again on its own once the control plane records it. |
| Lost | The control plane has not heard from the inference node for over 15 minutes, outside an update. |
A restart for an update you requested does not raise the InferenceNodeLost alert; an inference node that has not come back within 15 minutes shows Update failed, and the alert fires 15 minutes after that, as for any inference node the control plane does not hear from.
An update from the control plane covers everything on the node, the small programs that run as root included. When a release changes one of them, the inference node asks the machine to install the release's copies before switching its own software, and the Updates page shows that step; when the machine cannot do it, the update stops with nothing changed and says why. What the machine did is in that step's own log: sudo journalctl -u onprem-ai-root-programs.
After an update proves healthy, the inference node keeps the version before it and removes older ones. If an update does not become healthy, the inference node goes back to the previous version on its own; this is the only way back to an earlier version. A broken inference node is repaired by uninstalling it and installing it again with the command from Servers, Add Inference Node: its model weights stay unless you give --remove-data.
Adding a removed inference node back
When an inference node was removed on the Servers page, it stops connecting and says so: sudo onprem-ai-node doctor shows "This inference node was removed from the control plane". To add it back with its history, its settings and its model weights, open the Removed list on the Servers page, choose Add back... on its row, and run the command it shows on the machine:
sudo onprem-ai-node connect --control-plane-root-certificate-sha256 <fingerprint> --join-token <token>
The command stops the inference node, joins the control plane under the inference node's existing identity, starts it again, and waits up to a minute for it to connect. The machine proves it is that inference node with the private key it kept, so a join token alone can never bring back a removed inference node on another machine.
If the machine no longer holds its identity (it was uninstalled, or its data was removed with --reset-identity), the command is refused with "this machine cannot prove it is that node". Add it as a new inference node instead, with the install command from Servers, Add Inference Node; if the Servers page then shows that it matches the removed inference node's hardware, confirm the match there and its history comes back.
Moving an inference node to another control plane
The step-by-step guide for both jobs, adding a machine and moving one, with the one fix for every refusal on the way, is Adding or moving an inference node. This section is the commands themselves.
Three commands change which control plane an inference node belongs to. Each runs as root, shows what it is going to do, and asks you to type the machine's name; --yes skips the question, for scripts, and --dry-run only shows the plan.
| Command | What it does |
|---|---|
sudo onprem-ai-node connect --control-plane-gateway-address <host[:port],...> --control-plane-root-certificate-sha256 <fingerprint> --join-token <token> | Joins the control plane at those addresses (one per control-plane machine, separated by commas; port 443 unless an address names another) and keeps everything the inference node holds. Like the install, it first checks every address and changes nothing when one belongs to a different control plane. The addresses are written into the configuration |
sudo onprem-ai-node connect --remove-data ... | First removes the inference node from its current control plane and removes everything it holds (as onprem-ai-node remove-data does), then joins the other control plane as a new inference node |
sudo onprem-ai-node disconnect | Removes the inference node from its current control plane and stops it. Its data stays, so a later onprem-ai-node connect brings it back as the same inference node. --remove-data also removes everything it holds except its identity |
sudo onprem-ai-node remove-data | Removes everything the inference node holds except its identity and leaves it stopped. The software stays installed, and the control plane keeps listing the inference node |
Take the join token and the fingerprint for onprem-ai-node connect from the other control plane's Servers, Add Inference Node.
"Everything the inference node holds" is the models it runs and their containers, the model container images, the model weights, and its data: its database (what the control plane wants it to run, its audit log and its history), its error reports, its logs and its caches. The installed software, the configuration, the service and its account stay, and so does the inference node's identity (its key and certificate), so it can come back as the same inference node:
- If the control plane still lists it, start the inference node again (
sudo systemctl enable --now onprem-ai-container-admission-control.service onprem-ai-machine-identity.service onprem-ai-root-programs.path onprem-ai-inference-node.serviceon Linux,sudo launchctl bootstrap system /Library/LaunchDaemons/ai.onprem.inference-node.pliston macOS;onprem-ai-node remove-dataprints the one for this machine): it connects as the same inference node, and the control plane sends it its configuration again. - If it was removed there, use Add back... in the Removed list on the Servers page and run the command it shows: it comes back as the same inference node.
--reset-identity removes the identity too, so afterwards the machine is exactly an installed inference node that has never joined a control plane. Joining another control plane with onprem-ai-node connect --remove-data replaces a kept identity with the new one anyway; add --reset-identity when nothing of the old membership may stay on the machine, not even its key. onprem-ai-node remove-data keeps the model weights with --keep-model-weights when you moved them out of the data directory (it refuses the option, with the reason, when they are inside it), and the images with --keep-model-images. In a cached file set directory of your own, only the model weights the inference node downloaded are removed.
If the current control plane cannot be reached, onprem-ai-node disconnect and onprem-ai-node connect --remove-data still complete and say so; remove the inference node there yourself: Servers, its menu, Remove. Running a command again finishes one that stopped part way, for example because Docker was not running.
Removing an inference node
sudo onprem-ai-node uninstall
It shows what it is going to remove and asks you to type the machine's name. Then it stops the inference node and every model it runs, including their containers, and removes the software and its configuration.
It keeps the inference node's data, its model weights and its model container images. The control plane keeps the inference node too and shows it as not connected, so a later install on this machine comes back as the same inference node, with its history and without downloading the model weights again.
| Option | What it does |
|---|---|
--remove-data | Also removes the data, the model weights (which can be hundreds of gigabytes), the model container images and the service account, and removes the inference node from the control plane, which then lists it under Removed on the Servers page |
--dry-run | Changes nothing: it only shows what would be removed |
--yes | Does not ask, for automation |
With --remove-data: if you moved the model weights to a directory of your own, only the model weights the inference node downloaded there are removed; other files in it stay, and the summary lists them. Removing the inference node from the control plane is automatic: the inference node proves who it is with its own certificate, so no other machine can remove it. If the control plane cannot be reached, or runs a version that cannot do this, the uninstall still completes and says so; remove the inference node there yourself: Servers, its menu, Remove.
Running the command again finishes an uninstall that stopped part way, for example because Docker was not running.
If the installed onprem-ai-node command no longer works, the install command removes the inference node too (add --remove-data to remove everything):
curl -fsSL https://get.onprem.ai/node | sh -s -- uninstall
To repair an inference node rather than remove it, run the install command with --if-installed reinstall instead.