VorticPanel

Administration

Nodes

Nodes lists every node with its status, load, servers and agent version. To add one, see Adding a node.

What a node runs

A node is either a KVM host, which runs servers, or a GPU container host, which runs customers’ GPU containers on Docker with its cards on the NVIDIA driver. You choose when you enroll it (What it runs). GPU container hosts have a GPU containers badge next to their name. See Adding a GPU container host.

  • Servers are never placed on a GPU container host, not even when staff pick a node by hand or move a server. Node groups and the placement preview list it as Runs GPU containers, not servers.
  • To change what a node runs, use Settings → What it runs. It works only while nothing runs on the node (no servers or GPU instances), and switches its cards off; choose again who can use them.
  • On a GPU container host, the settings for servers alone are hidden: maximum servers, CPU mode, nested virtualization, bridges, IPv6 and IP pools. Its Overview shows the NVIDIA driver, Docker and the NVIDIA Container Toolkit in place of libvirt and QEMU, and its page lists anything still missing before it can run containers.
  • A KVM host’s Overview shows under Encryption whether customers’ private networks to and from it go through the encrypted tunnel between nodes: On, with its tunnel address and port; that it starts when a private network first has a server on the node; or, when the tunnel couldn’t start, why (see Encryption between nodes).
  • A KVM host’s Overview shows Save image: whether customers’ saved images are sealed there under AppArmor or SELinux. See How Linux images are sealed.
  • A GPU container host’s Overview shows Isolation: whether user namespaces are on (with Turn on user namespaces or Turn off), how instances’ own disks are held to size, and how much space Docker’s disk has left. See User namespaces and Disk limits.

Status

Status Meaning
Online The agent is connected
Offline No connection for a minute, or connected but no report for 5 minutes (the node itself is usually stuck: out of memory, a disk that stopped responding, or a kernel problem). A node just enrolled has 5 minutes for its agent to connect first. Its servers keep running, but their status shows as Unknown (with the last one reported in its tooltip) until it’s back. A node that’s connected but silent has its connection dropped every few minutes, and shows online as soon as it reports again. When the panel knows why a node is offline, its page says so: its credential expired, or it refuses the panel.
Draining No new servers are placed, and nothing is moved or imported onto it. Existing servers keep running and can be moved off. A node that’s offline can be drained too, and comes back drained.
Maintenance No new servers. Customers see a notice and can’t run power, reinstall or console actions on its servers.

Putting a node into maintenance notifies every customer with a server or GPU instance on it, in the panel’s own words; the node’s notes aren’t sent. Maintenance windows can do this for exactly the window.

Capacity

A node’s cores, memory and storage are what its agent reports, and placement goes by them. What a node reports when it’s enrolled (and the size of each storage it gets) is what’s accepted for it. After that:

  • A smaller figure applies at once, and the accepted one comes back when the node reports it again.
  • A figure up to 5% above the accepted one applies as it comes.
  • A figure more than 5% above it doesn’t. New servers are placed by the accepted figures, staff with See nodes are notified, and the node’s page lists what it reports. After a hardware upgrade, Accept new capacity (needs Manage nodes) makes the new figures the accepted ones.

Settings

Each node’s Settings tab:

Setting Default Allowed
Name From enrollment Lowercase letters, numbers and dashes, 2–41 characters, unique
Management address From enrollment An IPv4 address no other node uses; changing it needs Enroll nodes
Group From enrollment A group in the node’s region, or none (a node with no group gets no new servers)
Maximum servers No limit 1–2000
CPU overcommit 4× 1–16, in steps of 0.5. How many vCPUs share each of the node’s CPU threads: at 4×, a node with 32 threads takes servers with up to 128 vCPUs in all
Memory overcommit 1× 1–2, in steps of 0.05
Reserved for the host An eighth of memory below 128 GB; 16 GB from 128 GB; 32 GB from 768 GB Up to half the memory
CPU mode host-model host-passthrough, host-model, qemu64
Nested virtualization Off
Public bridge br-public, or the node’s first other bridge (not one of libvirt’s or a container runtime’s, such as docker0) A bridge on the node
Uplink 10 Gbit/s (25 Gbit/s from 96 CPU threads) 1, 10, 25, 40 or 100 Gbit/s
IPv6 On
Notes Up to 2000 characters, staff only

When a KVM node has no br-public bridge and no other bridge to use (the installer’s change was undone, or skipped), its servers get no network, and Settings says so with Set up the bridge (the node has to be online). That makes the installer’s change from the panel, as a job: the node’s connection drops for a moment, and if the panel can’t be reached afterwards the node puts its network back as it was. When the network can’t be put on a bridge automatically (a bond, a connection that isn’t a plain network card, or one without IPv4), the job says why; make the bridge by hand then.

With IPv6 off, servers created on the node, moved to it with new addresses, or changed there to a package with IPv6 get no IPv6. Servers that already have an IPv6 block keep it. A server moved to such a node from outside its IPv6 pool has its block taken off.

Other nodes reach a node at its management address to move servers and to carry private networks. When it isn’t one of the node’s own addresses, the node’s pages and the fleet overview say so, with the address to use when there’s one; a public address on a node that has no public address of its own (1:1 NAT) isn’t flagged. The panel changes it on its own, and tells staff, when it’s the first or last address of one of the node’s subnets and the node has one address there (such as a provider’s 203.0.113.216/30 entered whole); entered under Settings, such an address is refused. An address that isn’t on the node, such as one forwarded to a node behind 1:1 NAT, stays as it is.

Credential

Each node’s agent signs in to the panel with a credential of its own, valid for a year. Settings → Agent shows until when.

  • Once a credential is 300 days old, the panel gives the agent a new one while the node is online. Rotate credential does it at once; the agent has to be online.
  • During a rotation the old credential keeps working until the agent has saved the new one and connected with it, or for an hour after it saved it.
  • A credential past its year is refused. The node shows as offline, and its page says This node’s credential expired. The agent’s log (journalctl -u panel-agent) says This node’s credential expired on …. The servers on it keep running. To bring it back, enroll it again.

Enrolling a node again

Settings → Agent → Enroll again gives a one-time install command for a node that’s already in the panel. Run it on the node as root, as when you added it. It installs the agent again, gives it a new credential and has it trust this panel’s key. The node keeps its name, settings, IP pools and history in the panel. The command works once, for an hour; asking again replaces it.

Use it for a node whose credential expired, whose files in /etc/panel-agent were lost, or whose operating system was reinstalled (see Reinstalling a node’s operating system). On a node that kept its system, its servers keep running while the agent restarts.

Adding a node and enrolling one again need the Enroll nodes permission. When a node is enrolled again, its old credential stops working, the audit log records the address the command was run from, and staff with See nodes are notified. The notice says whether it’s the same machine: the same in every way, the same with a new operating system or network card, or a different machine (its board and network cards are different), which is sent as critical.

Reinstalling a node’s operating system

The node stays in the panel: there’s no need to remove it and add it again.

Planned. Move its servers off first:

  1. Drain the node, then Move servers off (see Emptying a node).
  2. Reinstall the operating system.
  3. Settings → Agent → Enroll again, and run its command on the node.
  4. Move servers back to it if you want them there.

Its storage, the private network tunnel and the keys other nodes use to move servers to it are set up again when it connects.

Unplanned, with servers still on it. Enroll it again as above. Then, for each server the panel had on it:

  • Its disk is still there (on a separate disk or volume group the reinstall didn’t touch): the panel defines the server again around its disks and starts it if it was running. Nothing is asked of staff, and the audit log records it. An additional disk that’s gone is made again empty, and staff are told.
  • Its disk is gone: the server shows lost its disk, and staff with See nodes get one notice for the node. The node’s page lists these servers with their latest backups: Restore brings one back, and Restore all … from their latest backups does all those that have one, starting the ones that were running. Both need the Backups permission. A server without a backup can be reinstalled from its page, with an empty disk.

Storage the node doesn’t have any more (its volume group or ZFS pool was on the disk that was reinstalled) shows as Degraded with The node can’t find it within a few minutes. Set it up again with the same name, or add other storage on the node’s Storage tab. A folder added as storage that’s still there is picked up again by itself.

On a GPU container host, instances whose containers are gone show Its container is gone from its host, and staff are told once for the host. Start afresh makes each again from its image; files in it are gone unless /workspace survived.

Moving SSH off port 22

A node’s SSH can listen on any port. Its agent reads the port from the node’s SSH settings every minute, the node’s Overview shows it as SSH port, and other nodes connect on it to move servers there. Nothing is set in the panel.

Change it on the node itself, as root. These steps keep port 22 open until you’ve signed in on the new one. The examples use 2222; any free port works.

  1. Open the new port to your own computer and your other nodes, in your provider’s firewall and any firewall on the node.

  2. On Rocky Linux or AlmaLinux, let SELinux and firewalld allow SSH on it:

    dnf install -y policycoreutils-python-utils
    semanage port -a -t ssh_port_t -p tcp 2222
    firewall-cmd --permanent --add-port=2222/tcp && firewall-cmd --reload

    Skip the last one if firewall-cmd says firewalld isn’t running.

  3. Listen on both ports to start with. The first command turns off any Port line already in the main settings file:

    sed -i 's/^Port /#Port /' /etc/ssh/sshd_config
    printf 'Port 22\nPort 2222\n' > /etc/ssh/sshd_config.d/10-ssh-port.conf
  4. Check the settings, which prints nothing when they’re right:

    sshd -t
  5. Apply them. On Ubuntu and Debian:

    if systemctl is-active --quiet ssh.socket; then systemctl daemon-reload && systemctl restart ssh.socket; else systemctl restart ssh; fi

    On Rocky Linux and AlmaLinux:

    systemctl restart sshd
  6. From your own computer, sign in on the new port with ssh -p 2222 root@ and the node’s address. If that works, stop listening on 22 by running the command in step 3 with only the new port, then step 5 again:

    printf 'Port 2222\n' > /etc/ssh/sshd_config.d/10-ssh-port.conf

Within a minute the node’s Overview shows the new port. Moves to the node need the agents on your other nodes to be up to date (they update themselves); a move from a node whose agent is older is refused with a message saying to update it.

Removing a node

Move its servers off and delete its GPU instances first; a node with either can’t be removed, and neither can one a server is moving onto (wait for the move, or cancel it under Transfers). Settings → Remove node takes it out of the panel: its credential is revoked and its agent can’t connect again, its storage pools are forgotten, and IP pools stop placing addresses through it. You can enroll the machine again later with a new enrollment token.

A deleted server or GPU instance is taken off its node by the node’s agent, and an offline node does it when it connects again. Until then, the addresses it had are back in the pool while the machine may still hold it. The panel also waits for a node to remove a copy a failed move left on it, and for an import’s source hypervisor to stop letting the node’s key in as root. While any of that is outstanding, removing the node is refused with what’s left. If the machine was wiped or won’t come back, tick the box in the dialog that says so, and click Remove anyway: the audit log records what was left, and for an import’s key staff are told which line to take out of /root/.ssh/authorized_keys on the source.

Nothing on the machine itself is touched. The agent stays installed: a connected agent is told it was removed and stops, and after a restart it tries again and is refused each time. The bridge, firewall tables and storage it set up stay as they are. To use the machine for something else, such as another panel, uninstall the agent too.

Uninstalling the agent

To keep the OS, remove the node in the panel first, then run these on the machine as root.

1. Keep the network backup, if you want it. When the installer moved the public network onto br-public, it saved the old network files in /var/lib/panel-agent/network-backup-… (/var/lib/panel-agent/state/network-backup-… when Set up the bridge did it), which the next step deletes. Copy them somewhere else first if you might put the network back as it was:

cp -a /var/lib/panel-agent/network-backup-* /var/lib/panel-agent/state/network-backup-* /root/ 2>/dev/null; ls -d /root/network-backup-*

2. Stop the agent and remove its service and files:

systemctl disable --now panel-agent
systemctl disable panel-firewall 2>/dev/null
rm -f /etc/systemd/system/panel-agent.service /etc/systemd/system/panel-firewall.service
rm -f /etc/systemd/system/libvirtd.service.d/panel-firewall.conf /etc/systemd/system/virtqemud.service.d/panel-firewall.conf /etc/systemd/system/docker.service.d/panel-firewall.conf
systemctl daemon-reload
rm -rf /opt/panel-agent /etc/panel-agent /var/lib/panel-agent

3. Remove its firewall tables (servers’ firewall, private network tunnels, and on a GPU container host the containers’ isolation), and the encrypted tunnel to the other nodes:

for t in "bridge panel" "inet panel_vxlan" "inet panel_containers"; do nft delete table $t 2>/dev/null; done; true
ip link del panelwg0 2>/dev/null; true

4. Remove its SSH lines. Moves between nodes add lines to root’s SSH files, marked panel-migration:<transfer ID> (keys of other nodes let in, one line per move) and panel-node (other nodes’ host keys). Each move takes its own line out again when it ends, and a line left behind stops working 13 hours after it was added, but these clear out any that are still there:

sed -i -E '/ panel-migration(:[A-Za-z0-9_-]+)?$/d' /root/.ssh/authorized_keys 2>/dev/null
sed -i '/ panel-node$/d' /root/.ssh/known_hosts 2>/dev/null; true

Do step 4 on the panel’s other nodes too, for lines letting this machine’s key in, if a move from it was ever interrupted: grep panel-migration /root/.ssh/authorized_keys lists them, each with the address it’s allowed from.

What’s left on purpose:

  • The br-public bridge. The machine’s public address is on it, so taking it down cuts the network. Other hypervisor panels need a bridge for their servers too: point the new one at br-public (or rename it in the network configuration, from the console in case the network drops). To go back to the network as it was, copy the files from the backup in step 1 back to where their names say (etc__netplan__50-cloud-init.yaml is /etc/netplan/50-cloud-init.yaml), delete /etc/cloud/cloud.cfg.d/99-panel-network.cfg if it’s there (it stops cloud-init rewriting the network), and reboot from the console. On Rocky and AlmaLinux the backup folder holds networkmanager-undo.txt instead, with the nmcli commands that put the old connection back.
  • Storage. The LVM volume group panel (if the node was installed with --storage-disk), ZFS pools, and /var/lib/libvirt/images/. With no servers left they hold nothing of use; remove them with vgremove panel, zpool destroy or rm once you’re sure.
  • Packages: libvirt, QEMU, nftables, Node.js and the rest, which other hypervisor panels use too. On a GPU container host: Docker, the NVIDIA driver and Container Toolkit, /etc/docker/daemon.json, and panel-nvidia-cdi.service (systemctl disable panel-nvidia-cdi and delete its unit file if you don’t want it). See the files it adds. Leftover GPU containers, their /workspace volumes and the panel’s Docker networks (panel-gpu, and a panel-v4-… one per IP pool) go with docker rm -f $(docker ps -aq --filter label=panel.instance), docker volume rm $(docker volume ls -q --filter label=panel.instance) and docker network rm panel-gpu $(docker network ls -q --filter label=panel.pool). On folder storage, /workspaces are image files in the storage folder’s panel-workspaces/, mounted under /var/lib/panel-agent/state/container-mounts/: unmount them before step 2 (for m in /var/lib/panel-agent/state/container-mounts/*.workspace; do umount "$m"; chattr -i "$m"; done), then delete panel-workspaces/. With user namespaces on, Docker’s own folder is /var/lib/docker/<uid>.<gid>/, and /etc/subuid and /etc/subgid have a dockremap line.
  • A few lines in /etc/lvm/lvmlocal.conf marked panel:, which stop the host from picking up LVM that servers made on their own disks, /etc/udev/rules.d/12-panel-guest-disks.rules and 61-panel-guest-disks.rules, which do the same for filesystems and RAID on servers’ volumes, and /etc/default/grub.d/60-panel-guest-disks.cfg (on Rocky and Alma, a GRUB_DISABLE_OS_PROBER=true line marked panel: in /etc/default/grub), which keeps GRUB’s os-prober from mounting them. They’re harmless, and worth keeping if the machine keeps hosting virtual machines.
  • /etc/ssh/sshd_config.d/60-panel-moves.conf, which raises sshd’s limit for connections waiting to sign in, and, on a node whose name lookups the agent repaired, /etc/systemd/resolved.conf.d/panel-dns.conf. Delete them and reload sshd or restart systemd-resolved if you don’t want them.

Usage by server or GPU instance

A node’s Usage tab shows what fills it and who’s using the most, averaged over the last 5 minutes, hour or 24 hours:

  • Four pie charts: CPU (cores kept busy, against the node’s cores, with the free cores as their own slice), memory (what each server is given, against the node’s memory), network (in and out) and disk I/O (IOPS). Every server is a slice of its own. Hover any slice to see which server it is, its customer (for staff who can see customers or all servers), its figure and its share; its row lights up in the list below. The four heaviest servers across the charts get a color, the same one in every chart and in the list; the rest alternate between two grays.
  • The list: every server on the node with its CPU (as a share of its own vCPUs and in cores), memory, network in and out, disk IOPS and MB/s, and traffic this month against its allowance. Sort by any column, search by server or customer, or show only the ones that stand out.
  • Stands out: servers averaging 90% CPU or more, 500 Mbit/s or more outbound, or 5,000 IOPS or more over the whole window are flagged, and listed at the top of the tab. That’s where to look for mining, floods or a runaway database. Open a server to see its graphs, limit its speed or suspend it.

Memory is what each server is given: how much of it the guest actually uses isn’t visible from the host. Figures come from the node’s agent every 20 seconds, and the 24-hour view from the per-minute history.

On a GPU container host the tab shows its GPU instances instead, the same way:

  • Four pie charts: GPU load (the cards each instance keeps busy, against the host’s cards), GPU memory (in use on each instance’s cards), CPU (cores kept busy) and memory (what each instance’s programs hold, not the page cache).
  • The list: every instance with its cards, their load and memory, CPU (as a share of its own vCPUs and in cores), memory in use against what it’s given, and network in and out. Stopped instances show what they’re given only.
  • Stands out: instances averaging 90% CPU or more, or 500 Mbit/s or more outbound, over the whole window.

The host measures each running instance every 20 seconds or so. A GPU container host’s Overview lists its GPU instances, with their status, cards and size, where a KVM node lists its servers.

Assets and GPUs

A node’s Assets tab lists hardware servers can be given besides CPU, memory and storage: graphics cards, of any make or model (consumer or data center), passed through to one server whole. GPU servers walks through selling them, from the node to the billing panel.

The board’s own video chip isn’t listed (the Matrox in HP iLO and Dell iDRAC, ASPEED on most server boards, which often share a slot with the management controller), and neither is graphics built into the CPU (Intel UHD, AMD APUs).

The agent finds every card when it connects; Look again asks it again after you fit one. Each card shows its PCI address and its other functions (such as its HDMI audio, which goes to the server with it), its IOMMU group, the driver the node has it on, and whether it can be split. New cards start switched off: Let servers use it makes one available. A card the node no longer reports, because it was removed or moved to another slot, isn’t passed through: the server’s start fails with “isn’t one of this node’s graphics cards”. Choose Look again, then take the old card off the server and give it the card again.

What the node needs

  • IOMMU on. In the BIOS, turn on VT-d (Intel) or AMD-Vi (AMD). Add intel_iommu=on iommu=pt or amd_iommu=on iommu=pt to GRUB_CMDLINE_LINUX in /etc/default/grub, run update-grub (on Rocky Linux and AlmaLinux, grub2-mkconfig -o /boot/grub2/grub.cfg) and reboot. Until then the tab says IOMMU is off and no card can be given out.
  • A card alone in its IOMMU group, apart from its own functions and bridges. If something else shares it (a USB controller, for example), it would go to the server too: the card lists it. Use another slot, or turn on ACS in the BIOS. Two cards in one group only ever go to the same server: once a server has one of them, the other isn’t given to any other server.
  • The node not using the card. libvirt moves the card from the node’s driver to vfio-pci when a server starts and back when it stops. If the node’s own driver (nvidia, amdgpu, nouveau) won’t let go, blacklist it on the node. A card the node’s screen runs on is marked: giving it away takes the local console with it.
  • lspci (the pciutils package) for card names. The node installer adds it; on a node without it a card shows by its vendor and device IDs (apt-get install -y pciutils, or dnf install -y pciutils on Rocky Linux and AlmaLinux, fixes that).

Giving a card to a server

  • On the server’s Hardware tab, under GPUs, pick a free card on its node and choose Give it this card. The server picks it up the next time it’s stopped and started, like other hardware changes; Take off works the same way. A package can also give its servers cards; see Packages.
  • Customers see the card’s name on their server’s Overview, not where it is.
  • For NVIDIA cards the server is hidden from the card’s driver as a VM, which older consumer drivers refused to run in (error 43).
  • A server with a card can’t move to another node: take the card off, move it, then give it one on the new node. Emptying a node lists such servers as blocked.
  • Some AMD cards don’t reset when a server stops (the “reset bug”); if one stops working after its server restarts, install vendor-reset on the node.
  • Cards that can be split between servers (NVIDIA vGPU or MIG, AMD MxGPU, Intel SR-IOV) are marked, and go to one server whole.

Cards on a GPU container host

On a GPU container host the Assets tab is for containers: Let containers use it switches a card on. Nothing about passthrough applies, so IOMMU groups aren’t shown. Each card shows its memory and its ID from the NVIDIA driver (GPU-…), which containers are given it by. A card can’t go to containers unless it’s an NVIDIA card on the nvidia driver; one on vfio-pci says so. These cards aren’t offered to packages, and can’t be given to servers.

Agent versions

The Nodes page, the fleet overview and the node’s page mark agents that are behind the one the controller hands out. With Update agents automatically on (under any node’s Settings → Agent; it applies to every node, and is on to start with), nodes update after you upgrade the controller: one node first, then the rest 3 at a time once it has run the new agent for 5 minutes. How updates go out, beside it, changes that (see Upgrading). Update agent, shown while a node’s agent is behind, updates that node at once. Servers keep running while the agent restarts. The node’s Overview also shows the Panel address its agent connects to, marked old address after the panel moved until the agent has switched (see Moving to a domain). An agent too old to talk to the controller is refused with “This controller speaks agent protocol 1; update the agent.”

How nodes know it’s your panel

Your panel has a key of its own, made when it first starts. Every node keeps the panel’s key in /etc/panel-agent/controller.pub, readable by root only.

A node gets it when it’s enrolled. From then on the agent only acts on what the panel signs with that key. Each connection starts with a fresh random challenge from the agent, and everything the panel sends on it, from its welcome to each task, is signed for that challenge, that node and that address.

  • If your domain, DNS or proxy were taken over, even with a valid certificate, nodes refuse whatever answers there: no tasks, no changes to servers, no moves.
  • Nodes only follow the panel to an address that proves the same key. When the panel moves to a new address, each node checks the new address first. One that answers but can’t prove the key is refused: the node stays on the old address, its Overview marks its Panel address old address: the new one didn’t prove the panel’s key, and its Settings tab says why.
  • The key is in the controller’s backups. It’s kept encrypted in the database, like the panel’s other saved credentials, and secret.key unlocks it. A controller restored from a backup, or moved to a new server with its database and secret.key, has the same key, and its nodes carry on.

Each node’s Settings → Agent shows the panel’s key as SHA256:…. On the node, this shows the key it trusts. They should match:

node /opt/panel-agent/panel-agent.mjs controller-key

When a node refuses the panel

The node shows as offline, and its page says This node refuses the panel. The servers on it keep running. The agent’s log says why, on lines starting with REFUSED the controller:

journalctl -u panel-agent -n 50

The agent keeps trying, about once a minute, and keeps refusing until the panel proves the key it pinned. It keeps the key until you reset it, and runs nothing for a panel it refused.

Find out why before you change anything:

What happened What to do
The panel’s secret.key changed or went missing The panel can’t read its key, and says so in its log (journalctl -u panel). Put the right secret.key back and restart the panel.
The panel was restored from a copy made before it had its key Restore a newer copy if you have one. Otherwise reset the key on each node.
The panel was installed again from scratch, without a backup It doesn’t know the nodes at all: enroll each one again from Nodes → Enroll node. That replaces the node’s key too.
None of these Someone else may be answering at the panel’s address. Check its DNS records, and that the address leads to your controller, before anything else.

Resetting a node’s key

Do this only when the panel has a new key and the panel’s address leads to your controller. On the node, as root:

node /opt/panel-agent/panel-agent.mjs reset-controller-key --yes && systemctl restart panel-agent

The node then trusts the next controller it reaches at the panel’s address, and keeps that one’s key. Enrolling it again from its page does the same, with a new credential as well.

Emptying a node

On a draining or in-maintenance node, Move servers off moves every server to other nodes, two at a time. See Emptying a node.

Every word has to appear. ↑ ↓ to move, Enter to open.