Skip to content

Add a rig on a machine over SSH

Control can set a rig up on a Linux machine it reaches over SSH. It reads the machine, installs what is missing if you allow it, writes the rig’s services and starts them. Apart from one line in authorized_keys, you do nothing on the machine.

You add the machine once under Settings › Machines, then add as many rigs there as it has room for under Rigs › Add a rig.

  • Control is ready for rigs elsewhere: it has an address the machine can reach (THERMITE_CONTROL_PUBLIC_URL) and the rig images (THERMITE_RIG_HARNESS_IMAGE, THERMITE_RIG_SUPERVISOR_IMAGE, and THERMITE_RIG_HARNESS_CUDA_IMAGE for GPUs). A rig on an arm64 machine, or on a Blackwell GPU, takes THERMITE_RIG_HARNESS_CUDA13_IMAGE instead. See Let rigs on other machines reach control.
  • A Linux machine with systemd, which control reaches over SSH, and which can reach control’s address, the message bus’s port (4222 on control’s host, unless control names another: Run the message bus) and pull the images. Control can’t sign the machine in to a registry: the machine’s Podman must pull the images without signing in (Push the images to your own registry).
  • An account on it for control. Best is an account of its own, made with sudo useradd -m thermite. Rigs run as this user’s systemd services, under rootless Podman. If the account is root, rigs run as system services instead.
  • Sudo without a password for that account, only if you want control to install what is missing (step 4). Add the line thermite ALL=(ALL) NOPASSWD: ALL with sudo visudo -f /etc/sudoers.d/thermite. Control uses sudo only to install, so you can remove that file once the installs are done.
  • For GPUs: NVIDIA GPUs with their driver installed, so that nvidia-smi works. Control can install NVIDIA’s container toolkit, but not the driver.
  1. Press the cog at the foot of the sidebar to open Settings, then Machines under Rigs, and press Add a machine.
  2. Choose A computer over SSH, and fill in:
    • Name: the name Thermite shows for it, such as gpu-host-1
    • Address: its host name or IP address, as control reaches it
    • SSH port: usually 22
    • User: the account control logs in as, such as thermite
    • Private key: paste a private key with no passphrase, or leave it empty and control makes one
  3. Press Add and read its host key.

The page says "gpu-host-1" is added. Compare its host key below, then trust it: control connects only after that. The machine’s row opens. If it says that no SSH server answered, check the address and port, then press Read its host key again.

The machine’s row shows a line that starts with restrict, followed by the public half of control’s key. Select and copy it, then add it to ~/.ssh/authorized_keys of the user on the machine. For a new account, make the folder and the file first, owned by that user: ~/.ssh with mode 700 and authorized_keys with mode 600. restrict turns off forwarding and terminals, which control does not use.

If you left Private key empty, control made an ed25519 key, and this step is required. If you pasted your own key and its public half is already in that file, skip it.

The row says Check the host key and lists one fingerprint for each key the machine presented, with its type (ED25519, ECDSA or RSA). On the machine, print each one’s own fingerprint from the matching file and compare:

Terminal window
ssh-keygen -lf /etc/ssh/ssh_host_ed25519_key.pub # and ssh_host_ecdsa_key.pub, ssh_host_rsa_key.pub

If they match, press It matches: trust it. Control pins the keys: it refuses a machine that later presents another one, and shows you the new key.

Control then logs in and runs a check that only reads. The page says Trusted "gpu-host-1"'s host key and read the machine: see what it found below. The row shows:

FactWhat it tells you
SystemThe OS, kernel, CPUs, memory and free disk
GPUsEach NVIDIA GPU, how busy it is, the driver and the CUDA version
ContainersPodman’s version, and NVIDIA’s container toolkit with its CDI spec (the Container Device Interface file that tells Podman which GPUs there are)
Servicessystemd, and whether lingering is on for the user
RightsRoot, sudo without a password, or no sudo
Reaches controlWhether the machine reaches control’s address

If the check fails with “the machine refused the key for that user”, the key line from step 2 is missing. Add it and press Check again.

Under Missing for a rig, the row lists what the machine still needs, and asks about each one: May control install Podman?, followed by the exact script control would run.

  • Install it: control runs exactly that script, once. Your yes is recorded with your name. The row says Installing …; press refresh in the status bar (the line along the bottom of the page) to follow it. When it is done, control reads the machine again.
  • Don’t install: I’ll do it myself: install it yourself, then press Check again.

Control can install three things:

WhatWhen it is needed
PodmanAlways. Use Podman 4.4 or later: rigs run as Podman Quadlet units
NVIDIA’s container toolkit (version 1.20.1-1), with a CDI specWhen the machine has GPUs
Lingering for the user’s servicesWhen the user is not root. Without it the rig stops when the user logs out

All three need sudo without a password; otherwise the row says “the user can’t sudo without a password, so control can’t install it”. Control installs Podman and the toolkit only on Debian and Ubuntu, and on Fedora, RHEL, CentOS, Rocky Linux, AlmaLinux and Amazon Linux. On another system the row says “control has no recipe for …: install it yourself”.

Add a rig is a wizard: one step at a time, with Back and Next. Each field has an “i” that says what it means, and each step links to its page here.

  1. Open Rigs in the sidebar, then press Add a rig.
  2. Under What kind of rig?, choose One machine and press Next. (A rig whose agents run on one machine and whose GPUs are on others is Several machines: see Give a rig runners on other machines.)
  3. Under Where does it run?, choose gpu-host-1 (over SSH). A machine that is not ready says why, for example “Not ready: Podman is missing. Fix it under Settings › Machines.” Press Next.
  4. Under Which GPUs does it use?, tick the GPUs the rig uses; all its free ones are ticked at first. None: the rig measures on the CPU. One: the judge and the agents share it. Several: the lowest-numbered are the judge’s, half by default; set GPUs for the judge to change that. A GPU another rig uses shows “used by …”. See Give a rig several GPUs. Press Next.
  5. Under Name it and create it, give a Rig name: 2 to 40 lowercase letters, digits and dashes, starting and ending with a letter or digit. It can’t change later. A name control knows already, a removed rig’s too, says so under the field, “There is a rig named rig-1 already: a removed rig keeps its name, so choose another.”, and Create the rig stays off. Images shows what control will run, and Message bus where the rig will reach control’s message bus: the machine must reach that port, since a rig talks to control only on the bus. When control has no address for rigs on its bus, Message bus says none: control can't set a rig up, and Create the rig is refused: Control has no address for rigs on its message bus (THERMITE_NATS_PUBLIC_URL, or the host of THERMITE_CONTROL_PUBLIC_URL with port 4222), so a rig could not reach it: a rig works only on the bus. What this rig will be says where it runs and how its GPUs are split.
  6. Press Create the rig.

You land on the rig’s page: “Control is setting rig-1 up on gpu-host-1. Its page fills in once the rig reports for the first time.” Its Set up by control block lists each step, and shows each one as it comes, with no refresh:

  • ✓ Enrolled with control: a token of its own
  • ✓ Files and units written, images ready, services started. The first pull of the images can take a while: control allows 30 minutes for this step.
  • ✓ Its key on the message bus registered: the supervisor made its own key and registered the public part with control over HTTPS, at its start. Each later start of the supervisor adds “It registered its keys on the message bus with control” to the rig’s history.
  • ✓ First report reached control. Control waits up to 10 minutes for it. The report comes over the bus: a machine that can’t reach the bus’s port never reports, this step fails with “no report after 10 minutes”, and 5 minutes after the rig registered its keys, its page shows it Broken (A rig off the bus).

A step that fails shows ✕ and the reason. When the rig reports, press refresh, and its page fills in: “rig-1 is live; it reported … ago.” Over MCP, rig_setup shows the rig’s status there and the same steps, by their ids. It is for those who run control, so the agent token doesn’t have it (MCP tools).

If the setup step says “rig rig-1 exists on this machine already”, an earlier rig of that name left its folder on the machine, and control wrote nothing. Control can’t set this rig up again under the same name, so add the rig again under a new name. If you don’t need the earlier rig, remove what it left first: on this rig’s page, under Remove it from gpu-host-1, type remove rig-1 and press Remove the rig. That deletes the earlier rig’s units, files and volumes on the machine, with the results in them, and retires this rig. A removed rig’s name can’t be used again.

WhatFor a userFor root
The rig’s folder: its tokens, control’s public key and bus/bus-ca.pem, the certificate of control’s authority for the message bus~/.local/share/thermite/rigs/rig-1/var/lib/thermite/rigs/rig-1
Four Podman Quadlet files: two containers and two networks~/.config/containers/systemd/etc/containers/systemd
Two servicesthermite-rig-1-harness.service and thermite-rig-1-supervisor.service, as the user’s servicesThe same, as system services
Five Podman volumesthermite-rig-1-state, -scratch, -inbox, -outbox and -supervisorThe same

The supervisor’s unit names the message bus (THERMITE_NATS_URL, from control’s THERMITE_NATS_PUBLIC_URL) and the certificate it trusts the bus’s server through (THERMITE_NATS_CA_FILE), and mounts the bus folder: it reports, takes its commands and gets its config over the bus, over TLS, and calls control’s address only to register its keys and send its results. The harness never reaches the bus.

Each container unit sends its part’s log to the journal (LogDriver=journald), within the unit’s rate limit (LogRateLimitIntervalSec=30s, LogRateLimitBurst=10000) and the journal’s own size limits. Read it on the machine with journalctl --user -u thermite-rig-1-supervisor.service (Where the logs are). Each unit also checks its part’s health route every 30 seconds (HealthCmd=, after 5 minutes to start): a part that fails three times running is killed (HealthOnFailure=kill), and systemd starts it again (Restart=always). See A part that is unhealthy.

The rig’s page keeps the Set up by control block: the machine, the GPUs (for example “GPU 0 (judge), GPU 1 (agents)”), the images and the setup history. Its buttons:

  • Stop its services or Start its services, and Restart them.
  • Remove it from gpu-host-1: type remove rig-1 and press Remove the rig. It deletes the rig’s units, files and volumes on the machine and retires its token. Control removes it only once every result has left it, so export first; until then it refuses with rig-1 still holds results: and what waits on the rig. If its results can’t leave, such as when its supervisor is broken, type discard rig-1 instead: what the rig held goes with its volumes, and the audit log records it. Control keeps the rig’s exports, its events, its champions’ patches and what its runs added to Thermite’s knowledge base. The page says Removed from the machine., and the rig stays in Rigs, Stale and then Offline. To take it off the rig lists too, use Retire it at the top of its page: type retire rig-1 and press Retire it.

The rig keeps the images it was set up with. When control runs a newer version, the rig’s page says so, and Update to control’s version moves it onto the images control deploys, over SSH: Update to control’s version. The update writes the message bus’s address and control’s authority’s certificate again, as control has them then: a rig set up before the bus, which is broken until then, gets them this way. Control refuses the update while it has no address for rigs on its bus.

Next, check the rig: Isolation has already run at start; run Judge smoke. Then give it a model.