Skip to content

Install & first boot

This walks an operator from a bare Linux GPU workstation to a running LabPod server with a root admin account. Plan on 10–15 minutes, plus image-download time the first time a user launches a workspace.

Before you start, skim Requirements. The installer’s --check mode verifies most of them for you.

  • A supported Linux host: Ubuntu/Debian (apt) or Fedora/RHEL/Rocky (dnf).
  • sudo / root on that host.
  • curl, tar, sha256sum (from coreutils), and the OpenSSL command-line tool (openssl). Install these before either method below, including --check: the public installer needs them to download and verify the release before it can install host dependencies.
  • Network access to the distro package repos and the NVIDIA container-toolkit repo (the installer adds Podman and the GPU toolkit for you).
  • For GPU workspaces: an NVIDIA GPU with drivers already installed. The installer wires up the NVIDIA Container Toolkit and a CDI spec; it does not install the GPU driver itself.

If a tool is missing, run only the block for your host’s package manager. These commands also install the CA certificates needed for HTTPS. An existing TLS library does not supply the openssl command.

Ubuntu/Debian (apt):

Terminal window
(
set -euo pipefail
sudo apt-get update
sudo apt-get install -y curl tar coreutils openssl ca-certificates
)
Terminal window
# Run these as root
(
set -euo pipefail
apt-get update
apt-get install -y curl tar coreutils openssl ca-certificates
)

Fedora/RHEL/Rocky (dnf):

Terminal window
sudo dnf install -y /usr/bin/curl /usr/bin/tar /usr/bin/sha256sum /usr/bin/openssl ca-certificates
Terminal window
# Run these as root
dnf install -y /usr/bin/curl /usr/bin/tar /usr/bin/sha256sum /usr/bin/openssl ca-certificates

The dnf block names command paths instead of packages, so an installed curl-minimal or coreutils-single package already satisfies it.

LabPod ships one public install script. It is a host setup script, not just an app installer - it installs Podman and rootless dependencies, adds the NVIDIA toolkit repo, generates the CDI spec, and installs the labpod binary and systemd units. It is idempotent: already-configured items are skipped, and re-running is safe.

Install the latest release:

Terminal window
(
set -euo pipefail
installer=$(mktemp)
[ -n "$installer" ]
trap 'rm -f "$installer"' EXIT
curl -fsSL https://labpod.ai/install.sh -o "$installer"
[ -s "$installer" ]
sudo bash "$installer"
)
Terminal window
# Run these as root
(
set -euo pipefail
installer=$(mktemp)
[ -n "$installer" ]
trap 'rm -f "$installer"' EXIT
curl -fsSL https://labpod.ai/install.sh -o "$installer"
[ -s "$installer" ]
bash "$installer"
)
Other options

To preview changes without changing the host, run only this command:

Terminal window
(
set -euo pipefail
installer=$(mktemp)
[ -n "$installer" ]
trap 'rm -f "$installer"' EXIT
curl -fsSL https://labpod.ai/install.sh -o "$installer"
[ -s "$installer" ]
sudo bash "$installer" --check
)
Terminal window
# Run these as root
(
set -euo pipefail
installer=$(mktemp)
[ -n "$installer" ]
trap 'rm -f "$installer"' EXIT
curl -fsSL https://labpod.ai/install.sh -o "$installer"
[ -s "$installer" ]
bash "$installer" --check
)

To install a specific release, replace <version> with a tag from the published releases before running this block. The placeholder cannot be run as-is.

Terminal window
(
set -euo pipefail
installer=$(mktemp)
[ -n "$installer" ]
trap 'rm -f "$installer"' EXIT
curl -fsSL https://labpod.ai/install.sh -o "$installer"
[ -s "$installer" ]
sudo bash "$installer" --version <version>
)
Terminal window
# Run these as root
(
set -euo pipefail
installer=$(mktemp)
[ -n "$installer" ]
trap 'rm -f "$installer"' EXIT
curl -fsSL https://labpod.ai/install.sh -o "$installer"
[ -s "$installer" ]
bash "$installer" --version <version>
)

To install only the host prerequisites:

Terminal window
(
set -euo pipefail
installer=$(mktemp)
[ -n "$installer" ]
trap 'rm -f "$installer"' EXIT
curl -fsSL https://labpod.ai/install.sh -o "$installer"
[ -s "$installer" ]
sudo bash "$installer" --skip-app
)
Terminal window
# Run these as root
(
set -euo pipefail
installer=$(mktemp)
[ -n "$installer" ]
trap 'rm -f "$installer"' EXIT
curl -fsSL https://labpod.ai/install.sh -o "$installer"
[ -s "$installer" ]
bash "$installer" --skip-app
)

On hosts with Podman older than 5.6, the installer generates an NVIDIA CDI spec that those versions can read and configures the toolkit’s automatic refresh to keep it compatible. This avoids unresolvable CDI devices with newer NVIDIA Container Toolkit releases. Toolkits older than 1.18 keep their default spec. Rerunning the installer after upgrading to Podman 5.6 or newer removes the compatibility refresh setting. Uninstall leaves that setting with the shared GPU spec; it does not remove the host’s NVIDIA configuration.

Useful install options:

OptionWhat it does
--checkDry run - report what would change, change nothing
--skip-socketSkip enabling the target user’s podman.socket
--skip-appInstall host prerequisites only; skip the labpod binary and service
--skip-backupOn an upgrade, skip the automatic pre-upgrade DB backup
--bin <path>Install a local labpod binary supplied for a support or recovery case
--admin-password-file <path>Bootstrap the root LabPod password non-interactively
--gpu-sharing-lib <path>Install an existing HAMi/libvgpu-compatible library; new installations default to /opt/labpod/lib/libvgpu.so, while existing installations retain their recorded destination
--with-hamiBuild and install the HAMi sharing library with Podman and enable fractional GPU (off by default), using the same destination rule; see GPU configuration
--uninstallRemove LabPod-managed binaries, units, and generated assets while keeping config, data, license, and user accounts
--uninstall --purgeAlso remove /etc/labpod and /var/lib/labpod data such as DB, backups, and license. It never removes researcher account-home or work data.
--uninstall --checkDry-run uninstall; report what would be removed

If your change-control process does not allow curl | bash, download the GitHub Release assets first, verify them, extract the tarball, then run the packaged installer. Resolve Latest once so all assets come from the same release:

Terminal window
(
set -euo pipefail
workdir=$(mktemp -d)
[ -n "$workdir" ]
[[ "$workdir" = /* ]] || workdir="$PWD/$workdir"
trap 'rm -rf -- "$workdir"' EXIT
(
cd "$workdir"
releases=https://github.com/LabPod/labpod/releases
asset=labpod-linux-x86_64.tar.gz
url=$(curl -fsSI -o /dev/null -w '%{redirect_url}' "$releases/latest/download/$asset")
[[ "$url" =~ ^"$releases"/download/v[0-9]+\.[0-9]+\.[0-9]+/"$asset"$ ]]
BASE="${url%/*}"
curl -fLO "${BASE}/labpod-linux-x86_64.tar.gz"
curl -fLO "${BASE}/labpod-linux-x86_64.tar.gz.sig"
curl -fLO "${BASE}/SHA256SUMS"
sha256sum -c SHA256SUMS
cat > labpod-artifact-pub.pem <<'EOF'
-----BEGIN PUBLIC KEY-----
MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEki5c/1B4iOqb16m6ljKHjnbbq5EP
D8mP4mNRCYrqniXLDAkDFbpGaMw6WqPBiCQUVqyvDzyL+pADdJTAdxcUSw==
-----END PUBLIC KEY-----
EOF
openssl dgst -sha256 \
-verify labpod-artifact-pub.pem \
-signature labpod-linux-x86_64.tar.gz.sig \
labpod-linux-x86_64.tar.gz
mkdir labpod-release
tar -xzf labpod-linux-x86_64.tar.gz -C labpod-release
)
sudo bash "$workdir/labpod-release/scripts/install.sh"
)
Terminal window
# Run these as root
(
set -euo pipefail
workdir=$(mktemp -d)
[ -n "$workdir" ]
[[ "$workdir" = /* ]] || workdir="$PWD/$workdir"
trap 'rm -rf -- "$workdir"' EXIT
(
cd "$workdir"
releases=https://github.com/LabPod/labpod/releases
asset=labpod-linux-x86_64.tar.gz
url=$(curl -fsSI -o /dev/null -w '%{redirect_url}' "$releases/latest/download/$asset")
[[ "$url" =~ ^"$releases"/download/v[0-9]+\.[0-9]+\.[0-9]+/"$asset"$ ]]
BASE="${url%/*}"
curl -fLO "${BASE}/labpod-linux-x86_64.tar.gz"
curl -fLO "${BASE}/labpod-linux-x86_64.tar.gz.sig"
curl -fLO "${BASE}/SHA256SUMS"
sha256sum -c SHA256SUMS
cat > labpod-artifact-pub.pem <<'EOF'
-----BEGIN PUBLIC KEY-----
MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEki5c/1B4iOqb16m6ljKHjnbbq5EP
D8mP4mNRCYrqniXLDAkDFbpGaMw6WqPBiCQUVqyvDzyL+pADdJTAdxcUSw==
-----END PUBLIC KEY-----
EOF
openssl dgst -sha256 \
-verify labpod-artifact-pub.pem \
-signature labpod-linux-x86_64.tar.gz.sig \
labpod-linux-x86_64.tar.gz
mkdir labpod-release
tar -xzf labpod-linux-x86_64.tar.gz -C labpod-release
)
bash "$workdir/labpod-release/scripts/install.sh"
)

To install a pinned version instead, replace the five release-resolution lines above with BASE="https://github.com/LabPod/labpod/releases/download/<version>", replacing <version> with a tag from the published releases. You can pass the same installer options after the script path, for example sudo bash "$workdir/labpod-release/scripts/install.sh" --check.

What the script does:

  1. Detects the OS (apt vs dnf).
  2. Installs podman and rootless dependencies (only if missing).
  3. Adds /etc/subuid and /etc/subgid entries for the target user (only if missing).
  4. Enables systemd linger for the user so rootless containers survive logout.
  5. Enables podman.socket for the user.
  6. Validates the environment: cgroup mode (v2 recommended; v1 runs degraded), user namespaces, etc.
  7. On NVIDIA hosts, installs the GPU stack (NVIDIA Container Toolkit + CDI). Fractional GPU sharing (HAMi/libvgpu) is off by default — pass --with-hami to build and enable it.
  8. Installs the labpod binary to /usr/local/bin/labpod, seeds /etc/labpod/labpod.env, and registers labpod.service.
  9. Installs the workspace helper tree under /opt/labpod/inject (tmux, labpod-monitor, terminfo, and home skeleton files).
  10. Fills in any missing default env keys. Each researcher pulls or builds workspace images in their own rootless Podman store; the installer does not configure a root image cache.
  11. Installs labpod-backup.timer / labpod-backup.service for a daily SQLite snapshot in /var/lib/labpod/backups/.

The install script already initializes the database, sets the root admin password, and starts the service for you - you don’t need to run these by hand. During the real install (not --check), it prompts on the terminal for the root LabPod admin password (or reads one non-interactively from --admin-password-file <path>), then runs the schema migration, writes the password, and does systemctl enable --now labpod.

If you ever need to redo one of these steps manually - for example after --skip-app, or to recover from a stuck install - put --db after admin:

Terminal window
(
set -euo pipefail
# Apply the database schema
sudo labpod admin --db /var/lib/labpod/labpod.db migrate
# Set (or reset) the root LabPod admin password
sudo labpod admin --db /var/lib/labpod/labpod.db set-password root
# Enable and start the service
sudo systemctl enable --now labpod
)
Terminal window
# Run these as root
(
set -euo pipefail
# Apply the database schema
labpod admin --db /var/lib/labpod/labpod.db migrate
# Set (or reset) the root LabPod admin password
labpod admin --db /var/lib/labpod/labpod.db set-password root
# Enable and start the service
systemctl enable --now labpod
)

The installed /etc/labpod/labpod.env stays short on purpose - only the database path and JWT secret are set. LabPod detects NVIDIA/MIG capability and everything else on its own, so a CPU-only host and a GPU host boot from the same minimal file. To see what your host is actually running:

Terminal window
sudo labpod env # this host's explicit overrides, plus what auto-detection resolved to
Terminal window
# Run these as root
labpod env # this host's explicit overrides, plus what auto-detection resolved to
Terminal window
sudo labpod env --all # every setting, including unset ones at their default, and legacy compatibility keys
Terminal window
# Run these as root
labpod env --all # every setting, including unset ones at their default, and legacy compatibility keys

See Environment variables for the full reference.

Every researcher runs Podman rootless and therefore has a separate image, container-layer, and volume store. Podman normally puts that store under <passwd-home>/.local/share/containers/storage. This is independent of LabPod user data and LABPOD_WORK_BASE.

To make another local disk the default for all rootless users, edit the existing [storage] table in /etc/containers/storage.conf and add rootless_storage_path:

[storage]
rootless_storage_path = "/data/labpod-podman/$USER/storage"

If /etc/containers/storage.conf does not exist, copy the complete distribution file first, commonly from /usr/share/containers/storage.conf, and then edit the copy. Storage configuration files replace lower-precedence files instead of merging with them, so do not create a partial system file containing only this setting.

Keep the rest of the distribution-provided file intact. $USER is expanded by the Podman storage library, so every account still gets an isolated store. Never point multiple users at one writable graphroot. LabPod has no root-managed image store or shared image cache.

Use a local filesystem that supports OverlayFS metadata and extended attributes, such as a normal ext4 or XFS data disk. Rootless Podman storage is not supported on NFS, Lustre, GPFS, or similar distributed home filesystems. See Podman’s rootless storage documentation and the containers-storage.conf reference.

Create an owner-controlled parent for each LabPod user before that user first pulls an image:

Terminal window
(
set -euo pipefail
user=alice
group=$(id -gn "$user")
[ -n "$group" ]
sudo install -d -m 0711 /data/labpod-podman
sudo install -d -m 0700 -o "$user" -g "$group" "/data/labpod-podman/$user"
)
Terminal window
# Run these as root
(
set -euo pipefail
user=alice
group=$(id -gn "$user")
[ -n "$group" ]
install -d -m 0711 /data/labpod-podman
install -d -m 0700 -o "$user" -g "$group" "/data/labpod-podman/$user"
)

On an SELinux host, label the new tree for container storage, then apply the label:

Terminal window
(
set -euo pipefail
sudo semanage fcontext -a -t container_var_lib_t '/data/labpod-podman(/.*)?'
sudo restorecon -RFv /data/labpod-podman
)
Terminal window
# Run these as root
(
set -euo pipefail
semanage fcontext -a -t container_var_lib_t '/data/labpod-podman(/.*)?'
restorecon -RFv /data/labpod-podman
)

An account-level file at <passwd-home>/.config/containers/storage.conf overrides the system storage file instead of inheriting from it. Adopted accounts may already have one. Preserve its driver and options, and set that file’s [storage] graphroot to the intended per-user path if you want the account to follow the new layout.

Changing rootless_storage_path changes where Podman looks; it does not move existing images or containers. The simplest and safest time to configure it is before any researcher pulls an image. For an account that has already used Podman:

  1. Stop all of that account’s LabPod workspaces and any other rootless containers.
  2. Record the current graphroot.
  3. Stop labpod.service so monitoring or lifecycle calls cannot race the migration, then stop Podman’s pause process with podman system migrate.
  4. Copy the complete graphroot while preserving hard links, extended attributes, ACLs, and numeric subordinate-ID ownership.
  5. Change the system path template, or the account-level graphroot override described above.
  6. Apply SELinux labels, verify the effective path and inventory, then restart LabPod.

Repeat the following copy for every existing account before changing the system-wide setting:

Terminal window
(
set -euo pipefail
user=alice
home=$(getent passwd "$user" | cut -d: -f6)
uid=$(id -u "$user")
group=$(id -gn "$user")
case "$home" in /*) ;; *) exit 1 ;; esac
[ "$uid" -gt 0 ]
[ -n "$group" ]
sudo test -d "$home"
sudo test ! "$home" -ef /
runtime="/run/user/$uid"
old=$(sudo -u "$user" env HOME="$home" XDG_RUNTIME_DIR="$runtime" \
podman info --format '{{.Store.GraphRoot}}')
new="/data/labpod-podman/$user/storage"
for path in "$old" "$new"; do
case "$path" in /*) ;; *) exit 1 ;; esac
sudo test ! "$path" -ef /
done
sudo test -d "$old"
sudo test ! "$old" -ef "$new"
sudo systemctl stop labpod
sudo -u "$user" env HOME="$home" XDG_RUNTIME_DIR="$runtime" podman system migrate
sudo install -d -m 0711 /data/labpod-podman
sudo install -d -m 0700 -o "$user" -g "$group" "$new"
for path in "$old" "$new"; do
sudo test -d "$path"
sudo test ! "$path" -ef /
done
sudo test ! "$old" -ef "$new"
sudo rsync -aHAX --numeric-ids "$old/" "$new/"
)
Terminal window
# Run these as root
(
set -euo pipefail
user=alice
home=$(getent passwd "$user" | cut -d: -f6)
uid=$(id -u "$user")
group=$(id -gn "$user")
case "$home" in /*) ;; *) exit 1 ;; esac
[ "$uid" -gt 0 ]
[ -n "$group" ]
test -d "$home"
test ! "$home" -ef /
runtime="/run/user/$uid"
old=$(runuser -u "$user" -- env HOME="$home" XDG_RUNTIME_DIR="$runtime" \
podman info --format '{{.Store.GraphRoot}}')
new="/data/labpod-podman/$user/storage"
for path in "$old" "$new"; do
case "$path" in /*) ;; *) exit 1 ;; esac
test ! "$path" -ef /
done
test -d "$old"
test ! "$old" -ef "$new"
systemctl stop labpod
runuser -u "$user" -- env HOME="$home" XDG_RUNTIME_DIR="$runtime" podman system migrate
install -d -m 0711 /data/labpod-podman
install -d -m 0700 -o "$user" -g "$group" "$new"
for path in "$old" "$new"; do
test -d "$path"
test ! "$path" -ef /
done
test ! "$old" -ef "$new"
rsync -aHAX --numeric-ids "$old/" "$new/"
)

After configuring rootless_storage_path and SELinux, verify as the same Linux account:

Terminal window
(
set -euo pipefail
user=alice
home=$(getent passwd "$user" | cut -d: -f6)
uid=$(id -u "$user")
case "$home" in /*) ;; *) exit 1 ;; esac
[ "$uid" -gt 0 ]
sudo test -d "$home"
sudo test ! "$home" -ef /
runtime="/run/user/$uid"
actual=$(sudo -u "$user" env HOME="$home" XDG_RUNTIME_DIR="$runtime" \
podman info --format '{{.Store.GraphRoot}}')
case "$actual" in /*) ;; *) exit 1 ;; esac
sudo test -d "$actual"
sudo test "$actual" -ef "/data/labpod-podman/$user/storage"
sudo -u "$user" env HOME="$home" XDG_RUNTIME_DIR="$runtime" podman images
sudo -u "$user" env HOME="$home" XDG_RUNTIME_DIR="$runtime" podman ps -a
sudo systemctl start labpod
sudo labpod admin doctor
)
Terminal window
# Run these as root
(
set -euo pipefail
user=alice
home=$(getent passwd "$user" | cut -d: -f6)
uid=$(id -u "$user")
case "$home" in /*) ;; *) exit 1 ;; esac
[ "$uid" -gt 0 ]
test -d "$home"
test ! "$home" -ef /
runtime="/run/user/$uid"
actual=$(runuser -u "$user" -- env HOME="$home" XDG_RUNTIME_DIR="$runtime" \
podman info --format '{{.Store.GraphRoot}}')
case "$actual" in /*) ;; *) exit 1 ;; esac
test -d "$actual"
test "$actual" -ef "/data/labpod-podman/$user/storage"
runuser -u "$user" -- env HOME="$home" XDG_RUNTIME_DIR="$runtime" podman images
runuser -u "$user" -- env HOME="$home" XDG_RUNTIME_DIR="$runtime" podman ps -a
systemctl start labpod
labpod admin doctor
)

Keep the old store until the image and container lists match and a workspace starts successfully. Do not delete individual layer directories.

Terminal window
systemctl status labpod
curl -s http://127.0.0.1:24680/api/health
curl -s http://127.0.0.1:24680/api/version # version of the running binary
sudo labpod admin doctor # check host prerequisites, GPU sharing runtime, GPU inspector, …
Terminal window
# Run these as root
systemctl status labpod
curl -s http://127.0.0.1:24680/api/health
curl -s http://127.0.0.1:24680/api/version # version of the running binary
labpod admin doctor # check host prerequisites, GPU sharing runtime, GPU inspector, …

doctor is your friend whenever something looks off - it checks host prerequisites and reports what to fix. For the full workstation preflight, use the install script’s --check mode.

You can now open http://<host>:24680 in a browser and log in as root. LabPod also uses the adjacent port, 24681 by default, as the workspace-application gateway. Allow both ports through the LAN firewall or VPN. Researchers start from the platform URL only; LabPod redirects workspace apps to the gateway as needed. See Workspace gateway before putting LabPod behind a reverse proxy.

If you change LABPOD_PORT, keep both it and the next port outside the workspace port range (10000–19999 by default). The server refuses to start otherwise. The installer, including --check, rejects such a setting before it stops a running service and names the conflicting port, the range, and the default; labpod env lists the same conflict under configuration problems.