Skip to main content

Prepare a Proxmox VE Host

Proxmox Virtual Environment (PVE) is a complete open-source enterprise virtualisation platform based on Debian Linux. While Proxmox VE supports full virtual machines (KVM), Linux Containers (LXC) provide near-bare-metal compute and graphics performance with minimal host overhead.

This guide supports the latest Proxmox VE release (version 9 or newer), with an LXC container running Ubuntu 24.04 LTS ready to host Steam Headless via Docker Compose. Proxmox already provides LXC; Docker runs inside the container.


Prepare the host GPU​

Intel and AMD GPUs use the drivers included with Proxmox; verify /dev/dri/ in the hardware checks below. For an NVIDIA GPU, complete these steps in the Proxmox host shell as root.

Older NVIDIA GPUs are outside this guide's support

Steam Headless does not officially support Maxwell, Pascal, or Volta GPUs with this Proxmox VE 9+ setup. NVIDIA's open kernel modules require Turing or newer GPUs. Older cards need a compatible proprietary driver branch; R580 is NVIDIA's last branch supporting these architectures.

NVIDIA's Debian 13 repository does not provide R580 packages. Finding suitable packages and maintaining compatibility with current Debian and Proxmox kernels requires a separate installation approach. You are welcome to experiment with older cards, but you must manage that setup yourself; the project does not provide support for it.

Install the NVIDIA driver​

Install headers matching the running Proxmox kernel and the tools needed to build the driver:

apt-get update
apt-get install -y proxmox-headers-$(uname -r) build-essential dkms wget ca-certificates

Add NVIDIA's official driver repository, using the Debian version reported by the Proxmox host:

. /etc/os-release
NVIDIA_DISTRO="debian${VERSION_ID}"
wget "https://developer.download.nvidia.com/compute/cuda/repos/${NVIDIA_DISTRO}/x86_64/cuda-keyring_1.1-1_all.deb"
dpkg -i cuda-keyring_1.1-1_all.deb
apt-get update

For Turing or newer GPUs (including GTX 16 and RTX cards), install the open kernel module driver:

apt-get install -y \
nvidia-driver \
nvidia-kernel-open-dkms

Reboot and check modesetting​

Reboot the Proxmox host when its VMs and containers can be interrupted:

reboot

After rebooting, verify the driver and device nodes:

nvidia-smi
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

Confirm that nvidia, nvidia_modeset, nvidia_drm, and nvidia_uvm are loaded, modesetting reports Y, and all three device paths exist. If modesetting already reports Y, leave it as it is; no additional configuration file is needed.

Only if modesetting reports N, persist the module option and reboot again:

printf '%s\n' 'options nvidia_drm modeset=1' > /etc/modprobe.d/steam-headless-nvidia.conf
update-initramfs -u
reboot

The .conf file persists the nvidia_drm module option at boot; its descriptive filename has no special meaning. Repeat the checks after rebooting. When they pass, no custom device initialisation script or service is needed. Resolve any missing modules or device nodes before continuing.

Install the NVIDIA Container Toolkit inside the LXC container, where Docker runs.

Supported Deployment Architecture​

Steam Headless delivers a complete gaming desktop managed by systemd as PID 1, requiring direct access to your graphics card, audio infrastructure, and virtual input injection. On Proxmox VE, the officially supported architecture is Docker-in-LXC:

Privileged container requirement

Steam Headless requires a privileged LXC container (unprivileged: 0).

Steam uses Pressure Vessel and bubblewrap to run games in nested user and mount namespaces (pivot_root). In addition, Sunshine creates virtual gamepad, keyboard, and pointer devices via /dev/uinput and /dev/uhid, and desktop graphics rely on /dev/dri/renderD128 and /dev/fuse. In an unprivileged LXC, nested user namespaces and device permission constraints prevent bubblewrap and Sunshine from operating reliably.

Proxmox MAC filtering and bridge firewall

When deploying Steam Headless with Macvlan networking, the Docker daemon inside the LXC container generates unique MAC addresses on top of the container's parent interface (eth0).

The Proxmox VE Firewall must be disabled on the LXC container's network interface (firewall=0). If the firewall is active, the Proxmox bridge (vmbr0) will filter and drop traffic from any MAC address that does not match the LXC container's assigned hardware address.


1. Proxmox Host Hardware and Module Verification​

Before configuring the LXC container, verify that your Proxmox host provides the required graphics and virtual input device nodes.

Log in to your Proxmox VE host terminal as root:

ls -l /dev/uinput /dev/uhid /dev/fuse /dev/dri/

Verify that all four paths exist:

  • /dev/fuse: Character device (major 10, minor 229).
  • /dev/uinput: Character device (major 10, minor 223).
  • /dev/uhid: Character device (major 10, minor 239).
  • /dev/dri/: Contains your display card node (card*) and render node (renderD128 or similar) under major 226.

If an input or FUSE device node is missing, load its corresponding kernel module:

modprobe uinput
modprobe uhid
modprobe fuse

2. Command-Line Interface (CLI) Setup​

This section provides the complete step-by-step procedure to download the Ubuntu LTS template, create the privileged container, and configure hardware passthrough using the Proxmox command line.

Step 2.1: Download the Ubuntu 24.04 LTS Template​

On the Proxmox host shell, update the appliance catalogue and download the Ubuntu 24.04 standard template to your local template storage:

pveam update
pveam available | grep ubuntu-24.04
pveam download local ubuntu-24.04-standard_24.04-2_amd64.tar.zst

(Adjust the template filename if a newer release is listed by pveam available).

Step 2.2: Create the Privileged LXC Container​

Proxmox VM and Container ID selection

In Proxmox VE, Virtual Machines (VMs) and Containers (CTs) share the same numerical ID namespace. If you already have an existing VM or container using an ID (for example, VM 101 or 200), Proxmox will reject creating a new container with that same ID.

Check the inventory tree on the left side of your Proxmox WebGUI and choose an unused integer. This guide uses 500 as the default example; replace 500 with your chosen container ID throughout these commands.

Check your available storage pools that support container root filesystems (rootdir):

pvesm status -content rootdir

Depending on how Proxmox VE was installed, the default pool is typically local-lvm (on LVM-Thin installations) or local-zfs (on ZFS installations). Replace <STORAGE_POOL> with your target pool name:

pct create 500 local:vztmpl/ubuntu-24.04-standard_24.04-2_amd64.tar.zst \
--hostname steam-headless-lxc \
--memory "$(free -m | awk '/^Mem:/{print $2}')" \
--rootfs <STORAGE_POOL>:32 \
--net0 name=eth0,bridge=vmbr0,firewall=0,ip=dhcp \
--unprivileged 0 \
--features nesting=1,fuse=1,keyctl=1 \
--start 0

Command options explained​

Every option passed to pct create configures an essential boundary or capability for hosting Steam Headless:

Flag / OptionPurposeWhy it is required
500Container ID (VMID)Uniquely identifies the container instance in Proxmox VE. Replace with any unused integer.
local:vztmpl/...Template archiveThe base root filesystem template unpacked to create the container.
--hostname steam-headless-lxcNetwork hostnameIdentifies the container in Proxmox VE and on local DNS.
--memory $(...)Memory allocationDynamically allocates total host RAM in megabytes, letting Docker manage per-container limits.
--rootfs <STORAGE_POOL>:32Root storage volumeAutomatically creates a 32 GB rootfs volume on the chosen storage pool (local-lvm, local-zfs, etc.) for the LXC and Docker.
--net0 ...,firewall=0Primary network deviceAttaches to vmbr0 with firewall filtering disabled so Docker Macvlan can use distinct MAC addresses.
--unprivileged 0Privileged security modeRequired for Steam's bubblewrap nested namespaces, FUSE mounting, and device node passthrough.
--features nesting=1,fuse=1,keyctl=1Container featuresEnables nested Docker containerisation, FUSE filesystems, and security keyrings.
--start 0Initial power stateKeeps the container stopped until device passthrough is appended in /etc/pve/lxc/500.conf.

Step 2.3: Configure Device Passthrough and Storage Mounts​

Edit the container configuration file on the Proxmox host (replace 500 with your container ID):

nano /etc/pve/lxc/500.conf

Append the hardware passthrough rules to give the container access to the GPU, input devices, and FUSE:

/etc/pve/lxc/500.conf
# Steam Headless hardware device passthrough
lxc.cgroup2.devices.allow: c 226:* rwm
lxc.cgroup2.devices.allow: c 13:* rwm
lxc.cgroup2.devices.allow: c 10:223 rwm
lxc.cgroup2.devices.allow: c 10:239 rwm
lxc.cgroup2.devices.allow: c 10:229 rwm

lxc.mount.entry: /dev/dri dev/dri none bind,optional,create=dir
lxc.mount.entry: /dev/uinput dev/uinput none bind,optional,create=file
lxc.mount.entry: /dev/uhid dev/uhid none bind,optional,create=file
lxc.mount.entry: /dev/fuse dev/fuse none bind,optional,create=file

Optional: NVIDIA device passthrough​

For an NVIDIA GPU, also add these entries to /etc/pve/lxc/500.conf. Confirm that all listed devices exist on the Proxmox host first. Replace /dev/nvidia0 with the actual /dev/nvidiaN device for your GPU; the remaining entries are shared NVIDIA control and memory devices. If any devN indexes are already in use, choose unused indexes for these entries.

/etc/pve/lxc/500.conf
# NVIDIA GPU device passthrough
dev0: /dev/nvidia0,mode=0666
dev1: /dev/nvidiactl,mode=0666
dev2: /dev/nvidia-modeset,mode=0666
dev3: /dev/nvidia-uvm,mode=0666
dev4: /dev/nvidia-uvm-tools,mode=0666

Add a separate games volume​

Optionally create a Proxmox-managed storage volume for games, separate from the LXC root filesystem. This works with the same storage pools used earlier, including local-lvm (LVM-Thin) and local-zfs.

While the container is still stopped, check the available storage and its mount points:

pvesm status -content rootdir
pct config 500

Choose a pool with enough free space. The example below allocates a new 200 GiB volume on local-lvm and mounts it at /mnt/games inside this container. Replace local-lvm with your pool name and 200 with your desired capacity. If mp0 is already configured, use the next unused mount point, such as mp1, instead.

pct set 500 --mp0 local-lvm:200,mp=/mnt/games
pct config 500

Proxmox creates and manages the volume for this LXC container; no manual logical-volume or filesystem creation is needed.

Step 2.4: Boot the LXC Container​

Start the container from the host shell:

pct start 500

If you added NVIDIA devices, verify that they are visible inside the LXC container (adjust /dev/nvidia0 to match your GPU):

pct exec 500 -- ls -l /dev/nvidia0 /dev/nvidiactl /dev/nvidia-modeset /dev/nvidia-uvm /dev/nvidia-uvm-tools

If you added the games volume, give the Steam Headless session access to it. The default session IDs are PUID=1000 and PGID=1000; replace 1000:1000 if you choose different IDs in your Docker Compose configuration.

pct exec 500 -- chown 1000:1000 /mnt/games
pct exec 500 -- chmod 0755 /mnt/games
pct exec 500 -- df -h /mnt/games
pct exec 500 -- ls -ldn /mnt/games

Confirm the volume is mounted and owned by the intended user and group. When following Deploy with Docker and LXC, bind /mnt/games into the Steam Headless container as /mnt/games:/mnt/games.


3. Proxmox Web GUI Setup (Work in Progress)​

The steps below provide a placeholder reference for creating and configuring the container through the Proxmox VE WebGUI. Detailed screenshots and walkthroughs will be added in a future update.

Step 3.1: Download the Template via Proxmox Storage GUI​

  • Select your local template storage in the Proxmox sidebar.
  • Click CT Templates, then click Templates.
  • Search for ubuntu-24.04-standard and click Download.

Step 3.2: Create the CT Wizard​

  • Click Create CT in the upper right header.
  • General: Provide an unused container ID (e.g. 500) and hostname. Uncheck the Unprivileged container checkbox.
  • Template: Select the downloaded Ubuntu 24.04 template.
  • Disks: Allocate at least 32 GB of rootfs storage on your primary pool.
  • CPU: Allocate your desired cores, or all available host cores.
  • Memory: Allocate available host memory (or your desired ceiling) and at least 4096 MB Swap.
  • Network: Attach to vmbr0, use DHCP or static IP, and ensure the Firewall checkbox is unchecked.
  • Do not start the container immediately after creation.

Step 3.3: Configure Options and Container Features​

  • Open the container in the Proxmox tree and select Options.
  • Double-click Features.
  • Check Nesting, FUSE, and keyctl, then click OK.

Step 3.4: Add Hardware Passthrough via Shell​

  • Open the Proxmox host shell.
  • Edit /etc/pve/lxc/<VMID>.conf and append the device passthrough entries for /dev/dri, /dev/uinput, /dev/uhid, and /dev/fuse.

Step 3.5: Start Container​

  • Start the container from the WebGUI.

Next Steps​

Now that your Proxmox VE host and LXC container are prepared and running with hardware passthrough configured:

→ Continue to Deploy with Docker and LXC to install Docker and launch Steam Headless using Docker Compose.