Prepare a Fedora Server host
Use Fedora Server 44 or newer (x86_64). Fedora Server 44 is the official development reference platform for Steam Headless. This guide walks you through preparing a fresh installation to host one or more concurrent Steam Headless gaming containers.
This guide also applies broadly to Enterprise Linux 10 derivatives, with distro-specific repository setup noted below. RHEL 10, Rocky Linux 10, AlmaLinux 10, and CentOS Stream 10 are compatible EL10 platforms sharing the same modern kernel, cgroup v2, and systemd foundations.
1. System Baseline Verification
Fedora Server 44 and Enterprise Linux 10 ship with modern kernel releases and unified cgroup v2 enabled by default.
Open a terminal on your host and verify your kernel and cgroup setup:
uname -r
stat -fc %T /sys/fs/cgroup
- Kernel: Must be ≥ 5.6 (Fedora Server 44 typically runs kernel 6.x or 7.x).
- cgroup: Output must report
cgroup2fs.
2. Install Docker Engine 28 or Higher
Steam Headless requires Docker Engine 28.0.0 or higher for the writable-cgroups=true option. Development uses Docker 28, and Docker 29 has also been tested. Install Docker Engine from Docker's official Fedora repository rather than using distribution-bundled container packages (such as Podman or Moby) as drop-in replacements.
Step 2.1: Configure the Official Docker Repository
Install DNF plugins and register the official Docker CE repository corresponding to your distribution:
On Fedora Server 44+ (dnf5):
sudo dnf config-manager addrepo --from-repofile=https://download.docker.com/linux/fedora/docker-ce.repo
On Red Hat Enterprise Linux 10:
sudo dnf config-manager addrepo --from-repofile=https://download.docker.com/linux/rhel/docker-ce.repo
On CentOS Stream 10:
sudo dnf config-manager addrepo --from-repofile=https://download.docker.com/linux/centos/docker-ce.repo
(For compatible derivatives like Rocky Linux 10 or AlmaLinux 10, adapt the repository configuration using the RHEL or CentOS Stream endpoints above).
Step 2.2: Install Docker Packages
Install Docker Engine, the command-line interface, containerd, and the Docker Compose plugin:
sudo dnf install -y docker-ce docker-ce-cli containerd.io docker-compose-plugin
Step 2.3: Enable and Verify Docker
Enable the Docker daemon to start on boot and launch it immediately:
sudo systemctl enable --now docker
Verify that Docker is running:
sudo docker ps
You should see a table of running containers without an error.
3. Check Virtual Input and FUSE Devices
Steam Headless needs three standard Linux devices for virtual controllers, keyboard and pointer input, and AppImage support. Check that they exist:
ls -l /dev/uinput /dev/uhid /dev/fuse
If any path is missing, load its module for the current boot:
sudo modprobe uinput
sudo modprobe uhid
sudo modprobe fuse
Run the ls command again. If that fixed the problem, make Fedora Server load the modules automatically after every restart:
printf '%s\n' uinput uhid fuse | sudo tee /etc/modules-load.d/steam-headless-devices.conf >/dev/null
Steam Headless includes its own input service. Do not install a separate host input helper, udev relay, CUSE device, or Steam Headless systemd service.
4. Kernel Resource Limits (Inotify & Memory Map Capacity)
Desktop applications, browser sessions, and game launchers watch hundreds of files. Because Docker containers share the host's per-UID inotify quotas, running multiple containers will exhaust the default limit of 128 instances. In addition, modern Steam and Proton games require an expanded virtual memory map ceiling (vm.max_map_count).
Modern Fedora Server releases (Fedora Server 39 and later) already configure vm.max_map_count = 1048576 out of the box. Setting it explicitly alongside inotify guarantees compatibility across minimal server installs and custom kernel profiles.
Step 4.1: Persist Kernel Tuning
Configure the standard ceiling of 1,024 inotify instances (recommended for up to three concurrent Steam Headless containers) and persist the 1,048,576 memory map limit. If you plan to run four or more containers, choose a higher value from the inotify sizing table.
cat <<'EOF' | sudo tee /etc/sysctl.d/90-steam-headless.conf >/dev/null
fs.inotify.max_user_instances = 1024
vm.max_map_count = 1048576
EOF
Step 4.2: Apply Configuration
Load the sysctl settings into the active kernel:
sudo sysctl --load=/etc/sysctl.d/90-steam-headless.conf
Verify the active ceilings:
sysctl fs.inotify.max_user_instances vm.max_map_count
- Expected output:
fs.inotify.max_user_instances = 1024vm.max_map_count = 1048576
5. SELinux: Supported in Enforcing Mode
Fedora Server runs SELinux in Enforcing mode by default.
SELinux works fine in Enforcing mode with Steam Headless. You do not need to disable SELinux. Unprivileged container isolation operates cleanly alongside Fedora Server's default targeted security policy.
Confirm that SELinux is active:
getenforce
- Expected output:
Enforcing.
When mounting persistent host directories (such as game libraries or configuration folders) into containers, Docker Compose applies the appropriate SELinux volume relabelling flags (:z or :Z) as demonstrated in our deployment templates. If you ever encounter permission denials on custom host paths, consult our SELinux Troubleshooting Guide.
6. GPU Driver Configuration
Steam Headless requires direct access to your GPU's Direct Rendering Manager (DRM) render node (/dev/dri/renderD*). You only need the host kernel driver and firmware; do not install desktop gaming packages, Mesa userspace, or Steam on the host.
Option A: Intel Graphics (VA-API)
Modern Intel integrated and discrete GPUs (HD Graphics, Iris Pro, UHD, and Intel Arc) are supported directly by in-kernel drivers (i915 or xe) and linux-firmware.
- Ensure firmware packages are up to date:
sudo dnf install -y linux-firmware
- Verify the DRM render node exists:
ls -l /dev/dri/renderD128
Option B: AMD Radeon Graphics
AMD Radeon GPUs (Polaris, Vega, RDNA 1/2/3/4) use the open-source in-kernel amdgpu driver:
- Ensure firmware packages are up to date:
sudo dnf install -y linux-firmware
- Verify the DRM render node exists:
ls -l /dev/dri/renderD*
Option C: NVIDIA GeForce Graphics
NVIDIA GPUs require a compatible NVIDIA driver stack, Direct Rendering Manager Kernel Mode Setting (nvidia_drm.modeset=1), and the NVIDIA Container Toolkit. Modern cards use NVIDIA's open GPU kernel modules, while older supported cards require the proprietary 580 kernel modules.
If your server runs multiple NVIDIA graphics cards from different generations (for example, an older GTX 1050 Ti alongside a newer RTX 4060):
- Proprietary driver required: The Linux kernel can only load one NVIDIA kernel module flavour. Because open GPU kernel modules do not support cards older than the GTX 16 series, mixed-generation systems cannot use open kernel modules and must use the proprietary driver.
- Select the newest driver supporting all cards: Install the newest driver branch that supports every installed card (the lowest common denominator). For systems combining a Maxwell or Pascal card (GTX 900, GTX 10, or TITAN V) with a newer RTX card, select the Legacy 580xx tab below. Both cards are supported by the 580xx proprietary driver.
1. Install the NVIDIA driver
Select your host distribution and graphics card family to reveal the exact installation commands:
- Fedora Server 44+
- Enterprise Linux 10 (RHEL / Rocky / Alma)
Enable the RPM Fusion repositories:
sudo dnf install -y \
https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm \
https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
Choose the driver branch that matches your graphics card:
- GTX 16 Series or Any RTX (Turing+ / Recommended)
- GTX 900, GTX 10, TITAN V (Maxwell & Pascal / 580xx)
Use the current RPM Fusion packages for Turing, Ampere, Ada Lovelace, and Blackwell cards (GTX 1650, GTX 1660, RTX 2060, RTX 3090, RTX 4090, and newer RTX models). RPM Fusion's akmod-nvidia package automatically builds NVIDIA's open GPU kernel modules on supported modern cards:
sudo dnf install -y \
akmod-nvidia \
xorg-x11-drv-nvidia-cuda
Use the proprietary 580xx kernel modules for Maxwell and Pascal cards (such as the GTX 750/750 Ti, GTX 950, GTX 970, GTX 1050 Ti, GTX 1060, GTX 1070, GTX 1080 Ti, and TITAN V). NVIDIA 580 is the final driver branch that supports these architectures:
sudo dnf install -y \
akmod-nvidia-580xx \
xorg-x11-drv-nvidia-580xx-cuda
Do not install both sets of packages. If you are unsure which graphics card you have, run lspci | grep -i nvidia before continuing.
Wait 3 to 5 minutes for akmods to build the kernel module in the background before rebooting.
Enable EPEL 10 and the official NVIDIA CUDA repository:
sudo dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-10.noarch.rpm
sudo dnf config-manager --add-repo https://developer.download.nvidia.com/compute/cuda/repos/rhel10/x86_64/cuda-rhel10.repo
sudo dnf clean expire-cache
Choose the driver branch that matches your graphics card:
- GTX 16 Series or Any RTX (Turing+ / Recommended)
- GTX 900, GTX 10, TITAN V (Maxwell & Pascal / 580xx)
Install the current driver with NVIDIA's open GPU kernel modules for Turing, Ampere, Ada Lovelace, and Blackwell cards:
sudo dnf install -y nvidia-open
Lock NVIDIA packages to the 580 branch before installing the driver for Maxwell and Pascal cards (including the GTX 750/750 Ti, GTX 900 series, GTX 10 series, and TITAN V):
sudo dnf install -y python3-dnf-plugin-versionlock
sudo dnf4 versionlock '*nvidia*580*'
sudo dnf install -y cuda-drivers
Do not install both sets of packages. If you are unsure which graphics card you have, run lspci | grep -i nvidia before continuing.
2. Enable Kernel Mode Setting (nvidia_drm.modeset=1)
KWin's virtual Wayland session uses the Generic Buffer Management (GBM) allocator (libnvidia-allocator.so). This strictly requires kernel mode setting:
sudo grubby --update-kernel=ALL --args="nvidia_drm.modeset=1"
Reboot your host to load the driver:
sudo reboot
After rebooting, verify that modesetting is active:
nvidia-smi
cat /sys/module/nvidia_drm/parameters/modeset
nvidia-smi must show your graphics card, and the modeset command must print Y. If nvidia-smi cannot communicate with the driver or the modeset file does not exist, follow the Fedora Server Secure Boot troubleshooting steps before continuing.
3. Initialise NVIDIA device nodes at boot
Loading the NVIDIA kernel modules does not necessarily create /dev/nvidia-modeset or the unified-memory device nodes on a headless server. Install this startup helper to detect every NVIDIA graphics card, use its actual device minor, and ask nvidia-modprobe to create the required nodes before Docker starts:
sudo dnf install -y /usr/bin/curl
sudo curl -fsSL https://steamheadless.com/scripts/steam-headless-nvidia-init \
-o /usr/local/sbin/steam-headless-nvidia-init
sudo chmod 0755 /usr/local/sbin/steam-headless-nvidia-init
Create and start the systemd service:
sudo tee /etc/systemd/system/steam-headless-nvidia-devices.service >/dev/null <<'EOF'
[Unit]
Description=Initialise NVIDIA device nodes for Steam Headless
After=systemd-modules-load.service
Before=docker.service containerd.service
[Service]
Type=oneshot
ExecCondition=/usr/local/sbin/steam-headless-nvidia-init --check
ExecStart=/usr/local/sbin/steam-headless-nvidia-init
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reload
sudo systemctl enable --now steam-headless-nvidia-devices.service
Confirm the service, modules, modeset setting, and device files before creating the container:
systemctl --no-pager status steam-headless-nvidia-devices.service
lsmod | grep -E '^nvidia(_modeset|_drm|_uvm)?'
cat /sys/module/nvidia_drm/parameters/modeset
ls -l /dev/nvidia-modeset /dev/nvidia-uvm /dev/nvidia-uvm-tools
The service must report active (exited), all four NVIDIA modules must appear, the modeset command must print Y, and all three device paths must exist.
4. Install the NVIDIA Container Toolkit
Configure the official NVIDIA repository and install the container runtime toolkit:
curl -s -L https://nvidia.github.io/libnvidia-container/stable/rpm/nvidia-container-toolkit.repo | \
sudo tee /etc/yum.repos.d/nvidia-container-toolkit.repo
sudo dnf install -y nvidia-container-toolkit
Configure Docker to use the NVIDIA runtime:
sudo nvidia-ctk runtime configure --runtime=docker
sudo systemctl restart docker
7. Verification Checklist
Execute this quick verification script to confirm that your Fedora Server host is prepared:
echo "=== 1. Docker Version ==="
sudo docker version --format 'Engine Version: {{.Server.Version}}'
echo "=== 2. cgroup v2 ==="
stat -fc 'cgroup filesystem: %T' /sys/fs/cgroup
echo "=== 3. DRM Render Node ==="
ls -l /dev/dri/renderD*
echo "=== 4. Virtual Input & FUSE Nodes ==="
ls -l /dev/uinput /dev/uhid /dev/fuse
echo "=== 5. Kernel Limits (Inotify & vm.max_map_count) ==="
sysctl fs.inotify.max_user_instances vm.max_map_count
echo "=== 6. SELinux Status ==="
getenforce
If all checks pass with expected values, your Fedora Server host is ready for deployment!
→ Next step: Choose a Deployment Method.