Illustrated title card for the guide: Pass renderD128 to Docker and Unprivileged Proxmox LXC
gpu-passthrough

Pass renderD128 to Docker and Unprivileged Proxmox LXC

Pass /dev/dri/renderD128 to Docker or an unprivileged Proxmox LXC. Check device type, permissions, group ID, and group membership in a Docker probe.

Pass /dev/dri/renderD128 into an unprivileged Proxmox LXC with pct set --dev0, or into Docker with --device. If the node grants group read and write access, use --group-add with the device’s numeric group ID (GID). If Docker runs inside the LXC, do both in that order and use the GID visible inside the LXC. Proxmox device options · Docker run reference · Jellyfin Intel guide

Check the render node on the host

Linux DRM creates a renderD node for a GPU whose driver supports render nodes. For workloads that use this interface, access to the node is controlled by file permissions. Start with the specific node your workload will use. Linux DRM render nodes

Run this on the Proxmox host for LXC passthrough, or on the Linux host running Docker for direct Docker passthrough. It prints the file type, octal permissions and numeric GID. Look for a character device. If the path is missing, check which render node the host driver exposes before continuing. GNU stat manual · Jellyfin Intel guide

stat -c '%F %a %g' /dev/dri/renderD128

Pass the device into an unprivileged LXC

Use a Proxmox VE release whose pct supports --dev[n]. Proxmox lists LXC device passthrough among the VE 8.2 features. Replace 101 with your container ID. On the Proxmox host, check for unprivileged: 1 and choose a free device slot, such as dev0. Proxmox VE 8.2 overview · Proxmox pct command reference · Jellyfin Intel guide

pct config 101
pct enter 101

In the LXC shell, look up the group that should own the device. This example uses the guest’s render group. If your workload runs directly in the LXC, id -G SERVICE_USER lists the groups of the account that needs access. Replace SERVICE_USER with that account and choose a GID from its list. Jellyfin Intel guide · GNU id manual

getent group render | cut -d: -f3

For Docker inside a Debian guest with no render group, you can create a dedicated group with groupadd --system gpu-render. Substitute gpu-render for render in the lookup. Debian groupadd manual · Jellyfin Intel guide

Back on the Proxmox host, schedule the shutdown around any services running in the LXC. If it’s running, shut it down with pct shutdown 101. Once it stops, set the device and start the LXC. Replace 104 with the chosen guest GID. Mode 0660 grants read and write access to the owner and group. Proxmox pct command reference · Proxmox device options · GNU chmod manual

pct set 101 --dev0 path=/dev/dri/renderD128,gid=104,mode=0660
pct start 101
pct enter 101

Repeat the stat command in the LXC shell. Check that it shows a character device, mode 660 and the GID you assigned. Proxmox device options · GNU stat manual

Pass the device into Docker

Check the device in the environment where the Docker daemon runs. For Docker inside LXC, use the LXC shell and its stat result. This example assumes a working rootful Docker daemon with user namespace remapping disabled. Proxmox documents keyctl=1 for Docker in an unprivileged LXC and nesting=1 to allow nesting. Enabling nesting exposes host procfs and sysfs contents to the guest. Docker run reference · Proxmox container options

For a node that grants group read and write access, give Docker that numeric GID with --group-add. Replace 104 with the GID reported by stat where the daemon runs. For a Docker container running without --privileged, the :rw suffix limits device permissions to reading and writing. This disposable container checks the group list and device metadata as a non-root user. Docker run reference · Jellyfin Intel guide · GNU id manual · GNU stat manual

docker run --rm --user 1000:1000 --group-add 104 \
  --device /dev/dri/renderD128:/dev/dri/renderD128:rw \
  ubuntu sh -c 'id -G && stat -c "%F %a %g" /dev/dri/renderD128'

Use the same --device and --group-add options when creating your application container. Keep the application’s own user and other options. Docker run reference

Apply the same mapping in Compose

Merge these entries into your existing service, here named jellyfin. Replace 104 with the GID from the Docker host or LXC as above. Docker Compose container specification · Jellyfin Intel guide

services:
  jellyfin:
    devices:
      - "/dev/dri/renderD128:/dev/dri/renderD128:rw"
    group_add:
      - "104"

Run the following Compose command with your service name. Compose stops and recreates the existing container when the service configuration changes. Docker Compose up reference

docker compose up -d jellyfin

Check where access fails

  • Device missing. Repeat stat on the host, then inside the LXC if applicable. If the node is present on the Proxmox host only, check the path in pct config 101. If the node is visible to the Docker daemon, check the source and destination in the Docker device mapping. Proxmox pct command reference · Docker run reference
  • Group mismatch. Compare the GID on the node with the application’s group list. In Docker, the id -G check should include the GID shown by stat for the device. In LXC, check the application’s account with id -G SERVICE_USER. GNU id manual · GNU stat manual · Docker Compose container specification
  • Application check fails. For an Intel GPU and the official Jellyfin image, run the check below against the running container named jellyfin. Use the output to check the VA-API profiles and entry points. Jellyfin Intel guide
docker exec -it jellyfin /usr/lib/jellyfin-ffmpeg/vainfo

Evidence and limits. The Proxmox VE 8.2 feature notes, Proxmox pct reference, Linux 6.12 DRM docs, and Docker and Jellyfin docs were used for this guide. The steps were not run.

Sources

  1. Linux 6.12 DRM userland interfaces
  2. Proxmox VE 8.2 feature overview
  3. Proxmox pct command reference
  4. Proxmox pct.conf options
  5. Docker run reference
  6. Docker Compose container specification
  7. Docker Compose up reference
  8. GNU stat manual in Debian Bookworm
  9. GNU id manual in Debian Bookworm
  10. GNU chmod manual in Debian Bookworm
  11. Debian Bookworm groupadd manual
  12. Jellyfin Intel hardware acceleration guide

Related