Skip to main content

Prepare an Unraid Host

Unraid is a leading network-attached storage (NAS) and application server platform. Unraid 7.0+ features Linux kernel 6.6+ and unified cgroup v2, making it a fully supported platform with dedicated development and testing appliances in our lab.


1. Storage Architecture & Planning​

Unraid's storage architecture includes an un-striped parity-protected hard disk array, SSD cache pools, and unassigned direct disks. Proper storage placement is critical for gaming performance.

Do Not Run Games on the Parity-Protected Array

Never store your Steam game library on Unraid's user share array (/mnt/user/...).

Unraid's user share filesystem (SHFS) operates in user space via FUSE. Modern PC games and Steam's Proton compatibility layer perform extensive random read/write operations and memory-mapped file I/O (mmap). Running games across SHFS introduces significant I/O latency, micro-stutters, and frequent Proton disk write errors.

  • Container Profile, State, and Journal (/home/steamheadless, /var/lib/steam-headless, and /var/log/journal): We recommend placing container appdata on an SSD cache pool (for example, /mnt/cache/appdata/steam-headless). While not a strict requirement, an SSD guarantees fast desktop boot times and responsive launcher behaviour. Use a separate journal directory for each container so historical logs remain isolated.
  • Game Library (/mnt/games):
    Your game library does not need to be on an expensive SSD pool, but it must bypass the merged user share array. We strongly encourage mounting a direct disk share:
    • Dedicated Array Disk (Direct Mount): Point the container directly to a specific disk, such as /mnt/disk1/Games or /mnt/disk2/Games, instead of /mnt/user/Games. Direct disk access avoids FUSE overhead completely.
    • External Drives (Unassigned Devices): If you have an external SATA drive or portable SSD connected via USB 3.0+, install the Unassigned Devices plugin from Community Applications and mount the drive directly to /mnt/disks/GameDisk.

2. Kernel Device Nodes Are Built-in​

On modern Unraid releases, the kernel modules required for virtual input and user-space filesystems (uinput, uhid, and fuse) are included and loaded by default. You do not need to manually configure module loading in /boot/config/go.

If you ever encounter an issue with a missing device node, consult our Missing Device Nodes Troubleshooting Guide.


3. Kernel resource and container task limits​

Unraid runs multiple containerised services (media servers, file indexing, downloaders), all pulling from the host's per-UID inotify instance pool. Unraid's default limit of 128 instances will quickly be exhausted once desktop environments and Steam clients launch. Furthermore, Unraid defaults to 65,530 virtual memory mappings (vm.max_map_count = 65530), causing modern Steam and Proton games to crash silently during startup or shader compilation.

The steps below configure the standard 1,024-instance default, recommended for up to three concurrent Steam Headless containers. If you plan to run four or more containers, use the appropriate value from the inotify sizing table instead.

Step 3.1: Allow 8,192 container tasks​

Unraid applies a Docker PID limit to protect the host from fork bombs. Linux counts every process and thread as a task, so Unraid's default limit of 2048 can also cause systemd to derive much smaller limits for Steam, games, and desktop applications. The Steam Headless Unraid template overrides this with --pids-limit 8192, retaining a container boundary with enough room for a full gaming desktop.

After deploying the container, verify the effective value from the Unraid terminal:

docker inspect steam-headless --format 'pids_limit={{.HostConfig.PidsLimit}}'

The result should be pids_limit=8192. If the web interface reports PID limit reached, follow the container task and PID troubleshooting guide.

Step 3.2: Persist kernel tuning across reboots​

Unraid boots into a RAM filesystem on each restart. /boot/config/go is its persistent startup script. It starts Unraid's management service through /usr/local/sbin/emhttp, which can then start the array and Docker containers. Do not append Steam Headless commands after that line: place them before it so they complete first.

Open the Unraid WebGUI Terminal (the >_ icon in the top-right header), make a backup, then edit the existing file with Unraid's included nano editor:

cp -p /boot/config/go /boot/config/go.steam-headless-backup
nano /boot/config/go

Insert this block immediately before the existing /usr/local/sbin/emhttp line. Press Ctrl+O, then Enter, to save; press Ctrl+X to exit:

# Steam Headless kernel capacity (inotify and memory maps)
sysctl -w fs.inotify.max_user_instances=1024
sysctl -w vm.max_map_count=1048576

Step 3.3: Apply configuration immediately​

Apply both limits right away without restarting your server:

sysctl -w fs.inotify.max_user_instances=1024
sysctl -w vm.max_map_count=1048576

Verify the active limits:

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

4. Graphics Drivers & Hardware Setup​

Intel & AMD Radeon GPUs: Zero Setup Required​

In modern Unraid releases, Intel integrated/discrete GPUs (VA-API) and AMD Radeon GPUs (amdgpu) work out of the box with in-kernel drivers. You do not need to install additional kernel plugins or third-party monitoring tools; Steam Headless provides complete built-in hardware encoder monitoring.

Verify that the graphics render node is present in the Unraid terminal:

ls -l /dev/dri/renderD*

NVIDIA GeForce GPUs: Install the Driver Plugin​

NVIDIA graphics cards require the official Nvidia Driver plugin:

  1. Open the Apps tab in the Unraid WebGUI.

  2. Search for Nvidia Driver (authored by ich777).

  3. Click Install.

    Unraid NVIDIA Driver Plugin

  4. Go to Settings → Nvidia Driver and select the branch that matches your graphics card:

    • GTX 900, GTX 10, or TITAN V, such as the GTX 950 or GTX 1050 Ti: select the v580.xx branch. NVIDIA 580 is the final branch that supports these cards.
    • GTX 16 series or any RTX series, such as the GTX 1650, RTX 2060, RTX 3090, or RTX 4090: select the latest production branch.
  5. Note your GPU UUID (e.g. GPU-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx), which can be used if you wish to pin a specific card.

Enable NVIDIA modesetting and character devices​

Steam Headless needs three parts of the NVIDIA graphics driver prepared before its container starts: the nvidia_drm.modeset=1 kernel setting, the NVIDIA modeset device, and the unified-memory device. The Nvidia Driver plugin loads the base driver, but it does not reliably create the latter two character devices on every boot.

  1. In the Unraid WebGUI, switch to the Main tab, click the Flash device under Boot Device, then open Boot Parameters. In the Add Custom Parameter: field, add nvidia_drm.modeset=1 and click the Add button. You should now see below a box Parameters to Apply with contents like:

    append initrd=/bzroot nvidia_drm.modeset=1

    Ensure that the toggle Apply is on for the Unraid OS boot entry, then scroll to the bottom of the page and click Apply.

    Unraid Boot Parameters showing the NVIDIA modeset parameter, the Add button, the Parameters to Apply preview, and the enabled Unraid OS boot entry

    Use the normal Unraid OS boot entry

    Steam Headless does not need Unraid's local GUI Mode. Use the normal Unraid OS boot entry unless you have a separate reason to run a local graphical desktop. GUI Mode is not a replacement for the NVIDIA initialisation steps below.

  2. Edit /boot/config/go using the backup-and-edit process in Step 3.2. Insert the following block immediately before the kernel-capacity block from that step, and therefore before /usr/local/sbin/emhttp. It initialises the modeset and unified-memory components and creates /dev/nvidia-modeset and /dev/nvidia-uvm on every boot:

    # Steam Headless NVIDIA character devices
    /usr/bin/nvidia-modprobe -m -c 0
    /usr/bin/nvidia-modprobe -u -c 0

    The resulting order must be NVIDIA initialisation, kernel-capacity tuning, then /usr/local/sbin/emhttp. Unraid installs plugins before it executes /boot/config/go, so the Nvidia Driver plugin has already made nvidia-modprobe available. Do not add a trailing & to emhttp.

    Understanding -c 0 on Multi-GPU Servers

    The -c 0 flag specifies the NVIDIA device instance (minor number) to initialise, creating the primary per-GPU character node /dev/nvidia0. On single-GPU systems, this is always 0.

    If your server contains multiple NVIDIA GPUs (or your designated gaming card is not the primary GPU), run nvidia-smi in the Unraid terminal to identify each GPU's device index. You must pass an additional -c <index> flag for each NVIDIA card you intend to pass through to containers (for example: /usr/bin/nvidia-modprobe -m -c 0 -c 1 for two GPUs). Note that /usr/bin/nvidia-modprobe -u -c 0 initialises host-wide Unified Memory (/dev/nvidia-uvm) and only needs to be executed once regardless of how many GPUs are installed.

  3. Restart the Unraid server.

  4. After rebooting, open the terminal and verify the loaded components, enabled mode, and required character devices:

    lsmod | grep -E '^nvidia(_modeset|_drm|_uvm)?'
    cat /sys/module/nvidia_drm/parameters/modeset
    ls -l /dev/nvidia-modeset /dev/nvidia-uvm

    All four NVIDIA modules must appear, the modeset command must print Y, and both paths must exist. If either check fails, run the two nvidia-modprobe commands above, correct the persistent configuration, and reboot again before creating a Steam Headless container.


5. Network Settings​

For one Steam Headless container, Host network mode is the easiest choice. For two or more containers, use Unraid's Docker macvlan custom network so every container has its own LAN address.

  1. Stop the Unraid array before changing its network or Docker settings. This stops Docker containers cleanly while you change the network type.

  2. Open Settings → Network Settings. Set Enable bridging to No, then apply the change.

    Unraid Network Settings with Enable bridging set to No

  3. Open Settings → Docker. Set Docker custom network type to macvlan and Host access to custom networks to Enabled, then apply the change.

    Unraid Docker Settings with Docker custom network type set to macvlan and Host access to custom networks enabled

  4. Start the array again. In the container form, select your custom physical network (such as Custom : eth0 or Custom : <interface>) and assign every Steam Headless container a different fixed LAN IP address outside your router's DHCP range.

Custom Network Interface Name

Because bridging is disabled in Unraid's Network Settings to prevent macvlan call traces and host kernel crashes, the Docker custom network attaches directly to your physical host Ethernet interface rather than a virtual bridge such as br0. The network option in Unraid's Docker form appears as Custom : <interface> (typically Custom : eth0, or Custom : eno1 / Custom : eth1 depending on your motherboard hardware). Check Settings → Network Settings in Unraid to confirm the name of your primary active interface.

Macvlan requires wired Ethernet because it gives each container its own MAC address. Do not use it over Wi-Fi.


→ Next step: Deploy with the Unraid template.