Skip to main content

Prepare a TrueNAS SCALE Host

TrueNAS SCALE is an open-source Network-Attached Storage (NAS) operating system built on Debian Linux. TrueNAS SCALE 24+ incorporates the modern Linux kernel, native Docker containerisation, and unified cgroups v2, making it a fully supported platform with dedicated development appliances in our lab.

Supported Deployment Architecture​

The officially supported method for running Steam Headless on TrueNAS SCALE is via Docker Compose, managed through either DockHand or Portainer. Both management platforms can be installed directly from the TrueNAS SCALE Apps screen.

Official TrueNAS Community App Notice

A community-maintained "Steam Headless" application is available directly within the TrueNAS SCALE Apps catalogue. If you prefer a native, one-click installation through TrueNAS, you are warmly encouraged to try this template! Please be aware that because it is maintained independently by the TrueNAS community, the Steam Headless core development team cannot provide technical support or troubleshooting for that specific package. Our only officially supported deployment path is Docker Compose via DockHand or Portainer.


1. Storage Dataset Preparation​

Steam Headless requires dedicated directories for user profile data and your game library. ZFS datasets on your primary storage pool are ideal for these bind mounts, while Docker volumes store appliance state and journal logs.

Open the TrueNAS SCALE WebGUI and go to Datasets:

  1. Under your high-performance ZFS pool (preferably an SSD or NVMe pool), create a parent dataset named steam-headless:
    • Set Share Type to Generic.
  2. Beneath steam-headless, create two child datasets:
    • home: For user configurations, Proton prefixes, and save data (mounted to /home/steamheadless).
    • games: For downloaded Steam game libraries (mounted to /mnt/games).
  3. Set the filesystem permissions on these datasets so that UID 1000 (steamheadless) and GID 1000 have full read/write access.

2. Install DockHand or Portainer​

To deploy declarative Docker Compose stacks on TrueNAS SCALE, install a container management appliance such as DockHand or Portainer:

  1. In the TrueNAS WebGUI, open the Apps screen.
  2. In the search bar, search for DockHand.
  3. Click Install and accept the default network and storage configurations.
  4. Once the application status displays Running, click Web Portal to open the DockHand interface.

Option B: Portainer​

  1. In the TrueNAS WebGUI, open the Apps screen.
  2. Search for Portainer.
  3. Click Install and proceed through the initial setup wizard.
  4. Open the Portainer web interface to manage your local Docker environment.

3. Deploying Steam Headless with DockHand​

Using DockHand to deploy Steam Headless provides a clean, web-based Compose management interface:

  1. Open the DockHand web portal in your browser.
  2. Go to Stacks in the left navigation menu and click Create Stack.
  3. Give your stack a concise name, such as steam-headless.
  4. In the Compose editor, paste our production-ready Docker Compose template.
  5. Update your volume paths to match your TrueNAS ZFS dataset mount points:
    services:
    steam-headless:
    volumes:
    - steam-headless-state:/var/lib/steam-headless
    - steam-headless-journal:/var/log/journal
    - /mnt/tank/steam-headless/home:/home/steamheadless
    - /mnt/tank/steam-headless/games:/mnt/games

    volumes:
    steam-headless-state:
    steam-headless-journal:
  6. Enter the published Steam Headless image reference, then click Deploy Stack. DockHand will pull the image and launch the container.

4. Hardware GPU Acceleration​

TrueNAS SCALE provides access to host graphics devices through standard Linux device nodes:

  • Intel & AMD GPUs: Render nodes located at /dev/dri/renderD128 are passed directly into the container using the devices: block in your Compose file.
  • NVIDIA GPUs: Ensure the NVIDIA driver option is enabled in TrueNAS SCALE GPU configuration settings, and specify runtime: nvidia in your Docker Compose service definition.

Verify that your graphics nodes are visible in TrueNAS:

ls -l /dev/dri/renderD*

NVIDIA Character Device Initialisation (Post-Init Script)​

TrueNAS SCALE is a headless operating system without a local display server. As a result, the NVIDIA display engine node (/dev/nvidia-modeset) and unified memory node (/dev/nvidia-uvm) are not created at boot by default. Without these nodes, KWin Wayland, Vulkan WSI display swapchains, and 3D Proton games cannot initialise properly.

Configure TrueNAS SCALE to create these nodes automatically on every system boot:

  1. In the TrueNAS WebGUI, go to System Settings → Advanced → Init/Shutdown Scripts.
  2. Click Add:
    • Description: Initialise NVIDIA Device Nodes for Steam Headless
    • Type: Command
    • Command: /usr/bin/nvidia-modprobe -m -c 0 && /usr/bin/nvidia-modprobe -u -c 0
    • When: Post Init
    • Enabled: Checked
  3. Click Save.

This runs nvidia-modprobe to load the kernel modules and create /dev/nvidia-modeset, /dev/nvidia-uvm, and /dev/nvidia0 before your container stacks start. For details on what these arguments do, refer to the NVIDIA Troubleshooting Guide.

Understanding -c 0 on Multi-GPU Servers

The -c 0 parameter instructs nvidia-modprobe to create the character node for device minor 0 (/dev/nvidia0). On single-GPU systems, this corresponds to the only installed graphics card.

If your TrueNAS host has multiple NVIDIA GPUs (such as an auxiliary card for media transcoding or AI workloads and a secondary GPU dedicated to Steam Headless), check their device indices with nvidia-smi in the TrueNAS shell. Extend the command to pass each GPU minor index with additional -c <index> arguments (for example: /usr/bin/nvidia-modprobe -m -c 0 -c 1 && /usr/bin/nvidia-modprobe -u -c 0 to create both /dev/nvidia0 and /dev/nvidia1). The unified memory command (-u -c 0) creates the shared /dev/nvidia-uvm node and only needs to be run once across all GPUs.


5. Network Access & Ports​

If deploying with host networking, your Steam Headless instance will share the TrueNAS server's IP address. Ensure port 8483 (Steam Headless UI) and Sunshine streaming ports (47998-48010) are not occupied by other TrueNAS applications.

If you are running multiple gaming containers or want a dedicated LAN IP address, configure a macvlan network on your physical Ethernet interface (eth0 or eno1).


6. Check Kernel Resource Limits​

TrueNAS SCALE 25.10 already sets fs.inotify.max_user_instances to 1024 and vm.max_map_count to 1048576. These defaults are ready for up to three concurrent Steam Headless containers, so you should not need to add duplicate settings.

Verify the active values in the TrueNAS terminal:

sysctl fs.inotify.max_user_instances vm.max_map_count
  • Expected output:
    fs.inotify.max_user_instances = 1024
    vm.max_map_count = 1048576

If both values match and you plan to run no more than three containers, continue to the next step.

Larger setups or older TrueNAS releases​

If you plan to run four or more containers, choose a higher inotify value from the inotify sizing table. If either value is below the expected result above, configure only the setting that needs to be raised:

  1. In the TrueNAS WebGUI, go to System Settings → Advanced → Sysctl.
  2. Click Add and enter the required variable and value.
  3. Add a short description such as Steam Headless inotify capacity, then click Save.
  4. Apply the same value immediately from the TrueNAS terminal. For example, a host running four to eight containers uses:
    sudo sysctl -w fs.inotify.max_user_instances=3072

If vm.max_map_count was below 1048576, add that variable through the same screen and apply it immediately with sudo sysctl -w vm.max_map_count=1048576.


→ Next step: Deploy with Docker Compose.