Skip to main content

Deploy with the Unraid template

Unraid OS is a popular platform for home media and application servers. Steam Headless integrates smoothly with Unraid's Docker manager.

This guide walks you through configuring the Steam Headless container using the Unraid web interface.


Prerequisites​

Before deploying Steam Headless on Unraid, ensure your server meets the following requirements:

  1. Unraid OS 7.0 or newer (or Unraid 6.12+ with Docker 28+).
  2. Community Applications plugin installed.
  3. Hardware graphics driver:
    • Intel / AMD: In-kernel drivers work out of the box. Ensure the DRM render node (/dev/dri/renderD128) is present.
    • NVIDIA: Complete the NVIDIA steps in Unraid host preparation, including driver installation, nvidia_drm.modeset=1, and boot-time NVIDIA character-device initialisation.
  4. Network configuration:
    • For single-container setups, Host networking works immediately without extra network changes.
    • For multi-container setups, follow the Unraid network preparation before selecting your custom physical interface network (e.g. Custom : eth0) and assigning dedicated LAN IP addresses.

Unraid container template configuration​

In Unraid, open the Docker tab and click Add Container (or select Steam Headless from Community Applications). Fill in the form fields as outlined below:

1. Basic container settings​

Unraid FieldDefault Single-Container ValueExplanation
Namesteam-headlessThe container name in the Unraid Docker dashboard.
Repositoryjosh5/steam-headless:2Default Steam Headless image repository in the Unraid Community Applications template.
Network TypeHost (single container) or Custom : <interface> (multi-container)Host networking is the simplest default for a single container. For multiple containers, use macvlan on your physical interface (e.g. Custom : eth0).
Console shell commandbashDefault shell for terminal access.
PrivilegedOFFDo not enable privileged mode. Steam Headless runs securely using specific capability grants.

2. Extra Parameters (Crucial)​

The Steam Headless Community Applications template includes the required container capabilities, systemd security options, and tmpfs mounts pre-populated in the Extra Parameters field.

Toggle Advanced View in the top right corner of the Unraid template screen and verify that the Extra Parameters field contains the baseline parameters below (or restore them if they were modified):

Enabling Advanced View in the Unraid template

--hostname=steam-headless --security-opt writable-cgroups=true --security-opt seccomp=unconfined --security-opt systempaths=unconfined --cgroupns private --cap-add SYS_ADMIN --cap-add SYS_PTRACE --cap-add NET_ADMIN --cap-add DAC_READ_SEARCH --cap-add SYS_NICE --device-cgroup-rule 'c 13:* rwm' --stop-signal SIGRTMIN+3 --stop-timeout 30 --pids-limit 8192 --shm-size 2g -t --tmpfs /run --tmpfs /run/lock --tmpfs /tmp --tmpfs /dev/input:rw,dev,mode=0755
Configuring the container hostname

The --hostname flag in Extra Parameters sets the network hostname for the container. Steam Remote Play, Steam Link, Sunshine / Moonlight, and local network discovery use this hostname as the machine name advertised to remote clients on your local network. You can change --hostname=steam-headless to whatever name you want remote streaming clients to see (for example, --hostname=living-room-pc). If you run multiple Steam Headless containers on Unraid, each container must have a unique --hostname value.

NVIDIA runtime required

If you are using an NVIDIA graphics card, you must append --runtime=nvidia to the end of the Extra Parameters line.

While the baseline flags above are included in the template by default, --runtime=nvidia cannot be enabled automatically because not every Unraid system has an NVIDIA GPU installed. Without this flag, the container will be completely unable to communicate with the NVIDIA driver, hardware encoding will fail, and the desktop session will refuse to start.

The Advanced View uses the standard NVIDIA container options. On a host with multiple NVIDIA GPUs, select the specific device that should be available to this container.

The Unraid Nvidia Driver plugin can provide 64-bit driver libraries without the complete 32-bit set Steam and Proton require. On the first start for an NVIDIA driver version, Steam Headless may download the matching official NVIDIA installer and extract only the required 32-bit compatibility libraries into its persistent state. Allow several minutes and outbound HTTPS access for this one-time operation; later starts reuse the cached libraries.

Unraid NVIDIA Extra Parameters

Why these Extra Parameters are essential:​

  • --hostname=steam-headless: Sets the container's network identity. Sunshine, Steam Remote Play, and Steam Link use this hostname as the machine name advertised to Moonlight and Steam clients on your local network.
  • --security-opt writable-cgroups=true --cgroupns private: Grants systemd a private, writable cgroup v2 hierarchy to manage services safely without compromising host security.
  • --security-opt seccomp=unconfined --security-opt systempaths=unconfined: Allows Steam's pressure-vessel runtime and Flatpak's bubblewrap to initialise unprivileged sandboxes.
  • --cap-add SYS_ADMIN,SYS_PTRACE,NET_ADMIN,DAC_READ_SEARCH,SYS_NICE: Gives systemd internal mount capabilities, enables RealtimeKit audio scheduling, and permits shinputd to discover virtual controller event devices.
  • --device-cgroup-rule 'c 13:* rwm': Allows access to dynamic input event devices (major 13) created when controllers connect.
  • --pids-limit 8192: Overrides lower host defaults that are designed for small service containers. A gaming desktop needs room for the processes and threads created by Plasma, launchers, browsers, Steam, Proton, and games.
  • --shm-size 2g: Prevents Wayland compositor and web browser crashes caused by Docker's default 64 MB shared memory limit.
  • --tmpfs /dev/input:rw,dev,mode=0755: Creates an isolated, in-memory input tree preventing input leakage between multiple sessions.

3. Path mappings (Storage)​

The template pre-populates the following storage path mappings. In the default template view, the primary persistent application data paths and game library path are visible. Toggling Advanced View exposes system paths such as Local Time and Input Discovery:

Config TypeNameContainer PathHost PathAccess ModeTemplate View
PathUser Profile/home/steamheadless/mnt/cache/appdata/steam-headless/homeRead/WriteDefault
PathSteam Headless State/var/lib/steam-headless/mnt/cache/appdata/steam-headless/stateRead/WriteDefault
PathSystem Journal/var/log/journal/mnt/cache/appdata/steam-headless/journalRead/WriteDefault
PathGame Library/mnt/games/mnt/disk1/Games (or /mnt/disks/GameDisk)Read/WriteDefault
PathLocal Time/run/host-localtime/etc/localtimeRead OnlyAdvanced
PathInput Discovery/sys/devices/virtual/input/sys/devices/virtual/inputRead OnlyAdvanced
DO NOT Mount Game Libraries From the Parity Array (/mnt/user/...)

Do not use an Unraid merged user-share path beginning with /mnt/user/ for Steam Headless State, System Journal, User Profile, or Game Library. In particular, do not point /mnt/games to a merged user share such as /mnt/user/Games.

The template defaults for state, journal, and profile use /mnt/cache/appdata/steam-headless/..., which accesses the cache pool directly. If your cache pool has another name, use its direct path, such as /mnt/fast-pool/appdata/steam-headless/.... Keep these locations on a pool that mover will not relocate to the array.

The user-share filesystem runs through Unraid's FUSE layer. It can prevent the ownership, access-control list (ACL), file-locking, and file-replacement behaviour that Steam Headless services expect from a native Linux filesystem. Modern PC games and Steam's Proton compatibility layer also perform extensive direct memory-mapped file I/O (mmap) and continuous random reads and writes. Running games from a user share array causes significant disk latency, extreme micro-stuttering, and frequent Proton disk write errors.

Instead, point the container directly to an unmerged disk:

  • Direct Array Disk: E.g. /mnt/disk1/Games or /mnt/disk2/Games. Direct disk access bypasses the FUSE layer entirely.
  • External USB / SATA Drive: Use the Unassigned Devices plugin to mount an external SSD or fast drive directly to /mnt/disks/GameDisk.

4. Device mappings (Hardware)​

The template pre-populates the required hardware device nodes. GPU Render Node is displayed in the default view; toggling Advanced View exposes the FUSE and virtual input devices:

Config TypeNameHost ValueContainer ValueTemplate View
DeviceGPU Render Node/dev/dri/renderD128/dev/dri/renderD128Default
DeviceFUSE Filesystem/dev/fuse/dev/fuseAdvanced
DeviceVirtual Input/dev/uinput/dev/uinputAdvanced
DeviceVirtual HID/dev/uhid/dev/uhidAdvanced
NVIDIA render node

On NVIDIA systems, map the correct /dev/dri/renderD* node and configure the NVIDIA Container Toolkit. Do not add a /dev/dri/card* primary node.


5. Environment variables (Configuration)​

The template pre-populates primary permission, session mode, Steam autostart, and GPU device variables. In the default template view, the permission variables PUID and PGID are visible. Toggling Advanced View reveals session mode, Steam autostart behaviour, and optional device overrides. Advanced configuration variables (such as initial display dimensions, custom virtual seats, or custom streaming bitrates) can be added manually to the template by consulting the Container options reference.

Config TypeNameVariable NameDefault ValueDescriptionTemplate View
VariablePUIDPUID99Numeric host user ID for file permissions (Unraid nobody).Default
VariablePGIDPGID100Numeric host group ID for file permissions (Unraid users).Default
VariableSession ModeSTEAM_HEADLESS_SESSION_MODEdesktopInitial frontend mode: desktop (KDE Plasma) or gaming (Gamescope/Gamepad UI).Advanced
VariableDesktop Steam AutostartENABLE_STEAM_SYSTEMD_SERVICEtrueWhen set to true (default), the background systemd service starts Steam automatically with the desktop and restarts it after it closes. Set to false to disable the autostart service while leaving Steam installed for manual launch.Advanced
VariableCompositor Render DeviceCOMPOSITOR_RENDER_DEVICE(blank)DRM render device for KWin. Leave empty to automatically detect first render node.Advanced
VariableEncoder Render DeviceENCODER_RENDER_DEVICE(blank)DRM render device for video encoders. Leave empty to match compositor device.Advanced
VariableNVIDIA Visible DevicesNVIDIA_VISIBLE_DEVICESallTarget specific NVIDIA GPU ID or UUID on multi-GPU hosts (defaults to all).Advanced
VariableNVIDIA Driver CapabilitiesNVIDIA_DRIVER_CAPABILITIESallDriver capabilities: enables graphics, compute, and NVENC video libraries.Advanced

For complete details on supported environment options and behaviour, see the Container options reference.


6. Running Multiple Containers on Unraid​

The official Unraid template is configured out of the box for a single AMD or Intel container running in Host network mode. If you want to deploy multiple concurrent gaming containers on the same Unraid server:

  1. Prepare macvlan: Follow the Unraid network preparation, which requires stopping the array, setting Enable bridging to No, selecting macvlan as the Docker custom network type, and enabling host access to custom networks.
  2. First Container:
    • In the top right corner, toggle Advanced View to expose network and Extra Parameters settings: Enabling Advanced View in the Unraid template
    • Change Network Type from Host to your custom physical interface network (such as Custom : eth0) and assign a dedicated static IP address (such as 192.168.1.51).
    • In Extra Parameters, set a unique --hostname for the container (such as --hostname=steam-headless-a). Configuring Custom macvlan network, static IP, and unique hostname
    • Use default appdata paths (e.g. /mnt/cache/appdata/steam-headless/...).
  3. Second Container:
    • Add another container using the template, but change the Name to steam-headless-2 (or steam-headless-b).
    • Set Network Type to the same custom physical interface network (e.g. Custom : eth0) and assign a distinct static IP address (such as 192.168.1.52).
    • Change the appdata host paths to a separate directory (e.g. /mnt/cache/appdata/steam-headless-b/... for User Profile, Steam Headless State, and System Journal).
    • In Extra Parameters, ensure you set a distinct --hostname (for example, --hostname=steam-headless-b) so that Steam Link and Moonlight advertise separate machine names on your local network.
    • If targeting a second GPU, update the /dev/dri/ device paths (e.g. /dev/dri/renderD129).
Custom Network Interface Name (eth0 vs br0)

When configuring Unraid for macvlan networking, Enable bridging is set to No in Unraid's Network Settings to prevent macvlan call traces and host kernel crashes. Because bridging is disabled, the Docker custom network attaches directly to your physical host Ethernet interface rather than a virtual bridge such as br0.

In the template's Network Type dropdown, select your physical interface network (such as Custom : eth0). While eth0 is common on many servers, your specific interface name may differ depending on your motherboard and network configuration (such as eth1, eno1, or a bonded interface). Check Settings → Network Settings in Unraid to confirm the name of your primary active interface.


Verifying deployment and initial launch​

  1. Click Apply at the bottom of the Unraid template page. Unraid will pull the container image and launch the container.

  2. In the Unraid Docker tab, click the Steam Headless container icon and select Logs.

  3. Confirm that:

    • systemd reaches the multi-user target.
    • Compositor initialises with hardware graphics acceleration.
    • Hardware video encoders are probed successfully.
  4. Open your web browser and browse to:

    https://<CONTAINER_IP>:8483

    Accepting the self-signed TLS certificate warning

    (Accept the self-signed TLS certificate warning in your browser).

  5. You will see the Steam Headless enrolment screen. Follow the First run guide to set your administrative password and start playing.


Where to go next​