VorticPanel

Installation

Adding a GPU container host

A GPU container host is a node that runs customers’ GPU containers instead of KVM servers, the way GPU rental sites such as vast.ai work. A container starts in seconds and gets whole cards from the NVIDIA driver on the node.

Adding one works like adding a node: enroll it in the panel, then run one command on it. The command installs the NVIDIA driver, Docker and the NVIDIA Container Toolkit instead of KVM.

Once the host is ready, set up what customers rent on it (images, offers and instances) in GPU containers.

How it differs from a KVM host

KVM host GPU container host
Runs Servers from your packages and OS templates Customers’ GPU containers on Docker. Servers are never placed on it.
Its cards Go to one server whole, through vfio-pci Stay on the NVIDIA driver; containers are given them by their ID
Needs VT-x or AMD-V, and IOMMU for cards NVIDIA cards. No virtualization or IOMMU.
Network The br-public bridge and IP pools The node’s own network, with no bridge. Instances get forwarded ports on the node’s address, or an address of their own from an IP pool attached to the node.

Which one a node is shows as a GPU containers badge next to its name on the Nodes page and on its own page. A node is one or the other.

What the node needs

  • Ubuntu 22.04 / 24.04, Debian 12, or Rocky Linux / AlmaLinux 9, freshly installed.
  • One or more NVIDIA cards. Cards from Turing on (RTX 20 and newer, T4, A-series, L4, L40S, H100) use NVIDIA’s open driver, the default. Older cards (GTX 900 and 10, Tesla M, P and V) need NVIDIA’s closed driver: add --nvidia-proprietary to the command. NVIDIA’s 580 drivers are the last to support those cards, so the host is held on them; they run images built for CUDA 13.0 and older, and some newer framework builds no longer include those cards.
  • Secure Boot off, or a console at the next boot to enroll the driver’s signing key. Otherwise the driver installs but doesn’t load.
  • Root access over SSH, and outbound HTTPS to the panel and to the package servers it installs from: developer.download.nvidia.com, nvidia.github.io, download.docker.com, NodeSource and the distribution’s own mirrors.
  • Forwarded ports open to customers. Instances with forwarded ports are reached on TCP and UDP 40000–49151 at the node’s public address (its management address when it has no public one). Allow those in your provider’s firewall. Nothing else on the node has to accept connections from the panel or the internet, and the install command doesn’t put a firewall on the node itself.

1. Enroll it in the panel

Go to Nodes → Enroll node. Under What it runs, choose GPU containers, then fill in the name, management IPv4, region and group as for any node. A name such as gpu-1 keeps it easy to tell apart.

Choose Get install command. The command ends in --gpu-containers; like any install command, it works once and expires after 60 minutes. A node waiting to be installed is marked GPU container host at the top of the Nodes page.

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_… --gpu-containers

For cards older than Turing, add --nvidia-proprietary at the end. --storage-disk /dev/nvme1n1 works as on a KVM host, and makes an empty disk into storage. --no-user-namespaces leaves Docker’s user namespaces off, so root in an instance is root on the host. Either way they can be turned on or off later from the node’s page. --no-reboot stops the restart at the end (below).

What it does

  1. Checks that the panel is reachable. It doesn’t check for hardware virtualization, which containers don’t need.
  2. Installs nftables, LVM tools, an SSH server and Node.js 24. It doesn’t install KVM or libvirt.
  3. Installs the NVIDIA driver from NVIDIA’s own repository (nvidia-open, or with --nvidia-proprietary the closed driver held on the 580 branch), with the kernel headers it’s built against. If nvidia-smi already works, it leaves the driver you have.
  4. Installs Docker Engine from Docker’s repository, unless Docker is already there. It writes /etc/docker/daemon.json if there isn’t one: containers keep running while Docker restarts or updates, their logs are capped at three files of 20 MB, Docker uses its classic image store (which can hold a container to a size), and user namespaces are on, so root in an instance is an unprivileged user on the host. For those it adds a dockremap user with a range of user and group IDs of its own in /etc/subuid and /etc/subgid, after any already there. A Docker that already has containers or images gets these settings without user namespaces, and a daemon.json that’s already there is left as it is; the script says so. Turn user namespaces on from the node’s page, which checks the cards with them and moves the panel’s instances across.
  5. Installs the NVIDIA Container Toolkit, makes it Docker’s NVIDIA runtime, and adds panel-nvidia-cdi.service, which loads the nvidia_uvm module CUDA needs and describes the cards for containers (/etc/cdi/nvidia.yaml) at every boot, which picks up a new or swapped card.
  6. Checks the agent against the release key, enrolls the node, keeping the panel’s key so it only takes orders from your panel, and starts the panel-agent service. It doesn’t make a network bridge or change the network.

The restart at the end

If the script installed the driver and it can’t load until a reboot (the open-source nouveau driver still has the cards, for example), the machine restarts itself 20 seconds after the script finishes. Press Ctrl+C in those 20 seconds to restart it yourself later. The node comes back online and describes its cards for containers as it starts. With --no-reboot, or when containers are already running on the machine, it doesn’t restart and ends with Reboot this machine to load the NVIDIA driver instead.

3. Check it’s ready

The node shows as online in the panel within a few seconds. On its Overview, under Host, it shows the NVIDIA driver (with the newest CUDA it supports), Docker and the toolkit, each with its version. Under Isolation it shows whether user namespaces are on, how instances’ own disks are held to their size, and how much space Docker’s disk has left.

Docker holds instances’ own disks to their size itself when its data root (/var/lib/docker) is on XFS mounted with project quotas (prjquota), on btrfs with quotas on, or on ZFS. On any other filesystem the agent measures them every 5 minutes and stops an instance that’s over; see Disk limits.

Until everything is there, the node’s page says This GPU container host isn’t ready for containers yet, followed by what’s missing:

It says What to do
The NVIDIA driver isn’t loaded Reboot if the driver was just installed. Otherwise run the setup command. With Secure Boot on, enroll the driver’s key at the console, or switch Secure Boot off.
Docker isn’t running systemctl enable --now docker, or run the setup command
The NVIDIA Container Toolkit isn’t installed Run the setup command
Its NVIDIA Container Toolkit is older than 1.17.8 No instance starts there until it’s updated (CVE-2024-0132, CVE-2025-23266): apt-get install --only-upgrade nvidia-container-toolkit (or dnf upgrade nvidia-container-toolkit), or run the setup command. Stopping instances still works.
The toolkit hasn’t described the cards for containers yet nvidia-ctk cdi generate --output=/etc/cdi/nvidia.yaml, or reboot
No NVIDIA card was found on it Fit one, then choose Look again on the node’s Assets tab
Its agent hasn’t reported what’s installed yet The agent is older than the panel. It updates itself; the message clears within a few minutes.

The agent reports what’s installed when it connects and when you choose Look again on the Assets tab.

4. Switch on its cards

The node’s Assets tab lists its cards, each with its memory, the driver it’s on and its ID from the NVIDIA driver (GPU-…). New cards start switched off: Let containers use it makes one available.

A card can’t go to containers when:

  • Not on the NVIDIA driver: a card on vfio-pci was set aside for passthrough (often with vfio-pci.ids= on the kernel command line or in /etc/modprobe.d). Take it out of those settings and reboot.
  • Not an NVIDIA card: only NVIDIA cards work in containers.

Cards on GPU container hosts aren’t offered to packages. Next, create an offer for them: see GPU containers.

Turning an existing node into one

A node can change what it runs only while no servers are on it: move them off first (see Moving servers).

  1. On the node’s Settings tab, under What it runs, choose Make it a GPU container host. Its cards are switched off, so you decide again which ones containers can use.
  2. Install what it needs. On a node that’s already enrolled, run the install script with --gpu-containers and no token. It only installs the driver, Docker and the toolkit, then restarts the agent (and the machine, when the new driver needs it, as above):
curl -fsSL https://panel.example.com/agent/install.sh | sudo sh -s -- --gpu-containers

The node’s page shows this command, with your panel’s address, for as long as something is missing. KVM and libvirt stay installed but unused, and the node’s bridge settings no longer apply. Its IP pools are only used for instances with an address of their own.

Make it a KVM host on the same tab goes the other way. The node then needs KVM, libvirt and the br-public bridge; if it was enrolled as a GPU container host, the simplest way is to remove it and enroll it again as a KVM host.

The files it adds

Besides the agent’s own files:

Path What
/etc/docker/daemon.json Docker’s settings: live restore, capped logs, the classic image store, user namespaces, and the NVIDIA runtime the toolkit adds. Turning user namespaces on or off from the node’s page keeps the file from before the change as daemon.json.panel-backup.
/etc/subuid, /etc/subgid The dockremap line: the user and group IDs root in an instance has on the host
/var/lib/docker/<uid>.<gid>/ Docker’s images and containers with user namespaces on, beside the ones from before
panel-workspaces/ in folder storage Each instance’s /workspace as an image file, on a host whose only storage is a folder
/etc/cdi/nvidia.yaml The cards, described for containers (CDI)
/etc/systemd/system/panel-nvidia-cdi.service Writes /etc/cdi/nvidia.yaml again at every boot
/etc/apt/sources.list.d/docker.list, nvidia-container-toolkit.list, and NVIDIA’s cuda-keyring The package repositories on Debian and Ubuntu, so apt upgrade keeps them current. On Rocky and Alma they’re in /etc/yum.repos.d/.

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