Adding a node
A node is a KVM server that your customers’ servers run on. Adding one takes two steps: enroll it in the panel, then run one command on it. The command sets up everything on the node, including the network bridge and storage.
For a machine with NVIDIA cards that should run customers’ GPU containers instead of servers, see Adding a GPU container host.
What the node needs
-
Ubuntu 22.04 / 24.04, Debian 12, or Rocky / AlmaLinux 9, freshly installed.
-
Hardware virtualization switched on. This has to print a number above 0:
grep -Ec 'vmx|svm' /proc/cpuinfoIf it prints 0, switch on VT-x or AMD-V in the BIOS. A VPS only works if your provider offers nested virtualization.
-
Root access over SSH, and ideally also a console that doesn’t depend on the network (IPMI, iDRAC, or your provider’s web console), in case the network change goes wrong.
-
Outbound HTTPS to the panel, and to the distribution’s package mirrors and NodeSource while it installs. Nothing on the node has to accept connections from the panel or the internet. Between nodes, see Moving servers between nodes.
1. Enroll it in the panel
Go to Nodes → Enroll node and fill in:
| Field | Notes |
|---|---|
| What it runs | KVM servers. (GPU containers makes it a GPU container host.) |
| Name | Lowercase letters, digits and dashes, 2 to 41 characters, e.g. ams1-kvm-01 |
| Management IPv4 | The node’s IPv4 address. Other nodes use it for moving servers and private networks. |
| Region | Where the node is |
| Group | The node group it joins. Nodes outside a group don’t receive new servers. |
Choose Get install command. The panel shows a command with a one-time token. The token works once and expires after 60 minutes.
You can close the window and install later: the node waits at the top of the Nodes page, under Waiting to be installed. Show install command there (New install command once it has expired) gives a fresh command, and the old one stops working. Cancel drops it. The node moves into the node list once its agent connects.
2. Run the command on the node
SSH into the node as root and paste the command:
curl -fsSL https://panel.example.com/agent/install.sh | sudo sh -s -- --token enr_…
If your panel is on plain http:// for testing, the command already includes PANEL_AGENT_INSECURE=1; paste it as it is. The panel warns you above the command: the node’s credential, its tasks and the consoles then cross the network unencrypted. Such a node only follows the panel to an https:// address when the panel moves to a domain, never to another plain http:// one.
Optional: a spare disk for server disks. If the node has an empty second disk, add --storage-disk and its name (lsblk lists the disks). The script turns it into an LVM thin pool after you type yes (run without a terminal, it doesn’t ask). It refuses any disk with partitions, a filesystem, or something using it.
curl -fsSL https://panel.example.com/agent/install.sh | sudo sh -s -- --token enr_… --storage-disk /dev/nvme1n1
What it does
- Checks that virtualization is on and that the panel is reachable.
- Installs KVM, libvirt, nftables, LVM tools, WireGuard’s tools, an SSH server and Node.js 24 (from NodeSource’s repository, after checking its signing key), and starts the SSH server.
- Downloads the agent from the panel and checks it against the release key. If the signature is missing or doesn’t match, it stops without installing the agent; from then on, the node only takes agents signed with that key.
- With
--storage-disk, turns that disk into the LVM thin poolpanel/data. - Moves the public network onto a bridge called
br-public, which servers plug into. It shows you the change and asks first. The bridge keeps the node’s IP address and MAC address.--no-bridgeleaves the network as it is; servers then need a bridge made by hand. - Enrolls the node, keeping the panel’s key so it only takes orders from your panel, and starts the
panel-agentservice.
The network change
This is the only step that can cut you off:
- The switch runs apart from your SSH session, and finishes even if the connection drops.
- Afterwards it checks that the panel can still be reached. Then it asks: “If you can read this, press Enter to keep the new network”. Press Enter.
- If the panel can’t be reached, or nobody presses Enter within 90 seconds, the old network comes back. If your SSH session froze, wait three minutes and connect again.
- Run without a terminal (from automation, for example), it doesn’t ask, and keeps the new network once the panel answers.
A copy of the old network files is kept in /var/lib/panel-agent/network-backup-….
Check: in the panel, the node shows as online within a few seconds. Its Storage tab shows its storage, already added and marked as the default: the thin pool on your spare disk, an LVM thin pool or ZFS pool it found, or otherwise the /var/lib/libvirt/images folder. One that also holds the node’s own system is passed over, and staff are notified; add it on the Storage tab if you want it used.
3. Give it addresses
IP pools → New pool: your IP range and its gateway, the region, and this node. On the pool’s page, reserve every address that isn’t free for servers: the panel’s server and anything else on that network. The nodes’ own addresses are never given to servers. See IP pools.
4. A package and an OS image (first node only)
-
Packages → New package: e.g. 2 vCPU, 2 GB memory, 20 GB disk, sold in your node group. See Packages.
-
OS templates → Add from catalog, then Add next to the images you want, for example Ubuntu 24.04 and Debian 13.
Every node downloads each one from its distribution and checks its checksum. When it shows as Hidden on the OS templates page, choose Publish. See OS templates and ISOs.
Then create your first server.
If the bridge wasn’t set up
The script carries on and enrolls the node anyway, and tells you why it didn’t make the bridge:
| It says | What to do |
|---|---|
| The network was undone because the panel wasn’t reachable | Check the node can reach the panel normally (curl https://panel.example.com/api/v1/status), then click Set up the bridge on the node’s Settings tab in the panel, which makes the same change again. Or make the bridge by hand; the agent picks it up within a minute. |
Neither netplan, /etc/network/interfaces nor NetworkManager |
The network is managed in a way the script doesn’t change. Make the bridge by hand, then restart the agent. |
br-public is already there with nothing plugged into it |
A bridge made by hand that didn’t finish. On Rocky and Alma the script clears it away and makes it again. Elsewhere, remove it (ip link delete br-public, and its lines in the network settings) and click Set up the bridge. |
| The interface is in a bond | Make the bridge by hand on top of the bond. |
| Already on a bridge | Nothing to do. The panel uses the existing bridge; if the node has more than one, check it’s the right one under the node’s Settings → Network → Public bridge. |
To see again why, run node /opt/panel-agent/panel-agent.mjs bridge-plan on the node. It changes nothing.
Servers on the node get no network until it has a bridge.
Moving servers between nodes
With two or more nodes, allow these between them, on their management addresses:
| Port | For |
|---|---|
| TCP 22, or the node’s SSH port | Moving servers. The disk and memory go through this SSH connection, encrypted. |
| UDP 51871 | Customers’ private networks: the encrypted tunnel between nodes (WireGuard) |
| UDP 4789 | Customers’ private networks to and from a node that can’t run the tunnel (plain VXLAN) |
The agents create their own keys, exchange them, and pin each other’s host keys. For private networks, each node makes its own WireGuard key; the panel hands each node the other nodes’ public keys. See Encryption between nodes.
The install script doesn’t put a firewall on the node, and the SSH server answers on all the node’s addresses. To keep SSH to your own addresses and the other nodes, use your provider’s firewall; if the node has a firewall of its own (ufw, firewalld), allow the three ports above from the other nodes there, and UDP 4789 on the panelwg0 interface.
How the node talks to the panel
- The node connects out to
wss://panel.example.com/agent/v1/connect. - It signs in with its own secret, issued when it enrolls and valid for a year. The panel renews it automatically while the node is online, about two months before it runs out; see Credential.
- It keeps the panel’s key from when it enrolled, and only acts on what the panel signs with it. See How nodes know it’s your panel.
- If the connection drops, the agent reconnects. A node counts as offline after a minute without a connection; its servers keep running.
The agent’s files
| Path | What |
|---|---|
/opt/panel-agent/panel-agent.mjs |
The program |
/etc/panel-agent/agent.json |
Its panel address, node ID and credential, readable by root only |
/etc/panel-agent/controller.pub |
The panel’s key it trusts, readable by root only |
/var/lib/panel-agent/ |
Cached images, state, its SSH key for moves, and network backups |
/etc/systemd/system/panel-agent.service |
The service, running as root |
/etc/systemd/system/panel-firewall.service |
Loads the servers’ firewall (/var/lib/panel-agent/state/firewall.nft) when the node starts, before libvirt starts any server. The agent adds it itself. |
journalctl -u panel-agent |
Logs |