Illustrated title card for the guide: Docker & Proxmox GPU Passthrough for Tdarr and FileFlows
GPU passthrough

Docker & Proxmox GPU Passthrough for Tdarr and FileFlows

Pass a GPU into a Proxmox VM or Linux Docker container, then verify NVIDIA NVENC or Intel Quick Sync encoding in a Tdarr Node or FileFlows Agent.

On Proxmox, pass the GPU through to the Linux VM that runs Docker. Then give the Tdarr Node or FileFlows Agent container access through the NVIDIA runtime or the Intel /dev/dri device. On bare-metal Linux, start with the Docker step. Proxmox PCI passthrough · Tdarr Docker configuration · FileFlows Docker configuration

Choose where to configure the GPU

Start with Docker Compose on Linux, a compatible GPU driver for that Linux system, and a running Tdarr or FileFlows server. The checklist covers whole-device passthrough to a Proxmox VM and rootful Docker on Linux.

SetupWhere to configure access
Docker on bare-metal LinuxUse the physical Linux system for the GPU driver and Docker device settings.
Docker inside a Proxmox VMAssign the PCI device on the Proxmox host. Set up the GPU driver and Docker device access inside the guest.

With whole-device passthrough, the Proxmox host and other VMs lose access to the assigned GPU. Pick a device the host can spare. Proxmox PCI passthrough · NVIDIA Toolkit installation · FileFlows Docker configuration

Assign the GPU on the Proxmox host

Enable IOMMU in BIOS or UEFI using the motherboard manual. On Intel x86 hosts with kernels older than 6.8, add intel_iommu=on to the kernel command line using the instructions for your bootloader. Proxmox PCI passthrough · Proxmox bootloader configuration

Check that vfio, vfio_iommu_type1, and vfio_pci are loaded with lsmod | grep vfio. To configure the modules, list them one per line in /etc/modules-load.d/vfio.conf, run update-initramfs -u -k all, and reboot. Schedule the host reboot around running workloads. Proxmox PCI passthrough

Run these checks on the Proxmox host. Replace {nodename} with the Proxmox node name.

dmesg | grep -e DMAR -e IOMMU -e AMD-Vi
lspci
pvesh get /nodes/{nodename}/hardware/pci --pci-class-blacklist ""

Look for a message confirming IOMMU, Directed I/O, or interrupt remapping. Find the GPU’s PCI address and its IOMMU group. The GPU must be in a separate IOMMU group before passthrough. The group can include the GPU’s own functions, such as HDMI audio, or its root port or bridge. If it includes an unrelated device, try another PCIe slot where possible. Proxmox PCI passthrough

Add the device to the VM configuration. Replace VMID and 00:02.0 with the VM ID and GPU address. Choose a free hostpci slot if hostpci0 is in use.

qm set VMID -hostpci0 00:02.0

For a GPU with multiple functions, the shortened address 00:02 selects all functions at that address. If your device and guest combination requires PCIe, use a q35 VM with pcie=on. After booting, check that the guest sees the GPU. Proxmox PCI passthrough · Proxmox qm reference

Check GPU access on the Linux Docker host

NVIDIA. On a Linux Docker host using systemd, configure the runtime after installing the GPU driver and NVIDIA Container Toolkit. Restarting the Docker daemon can interrupt running containers. NVIDIA Toolkit installation · Docker live restore

sudo nvidia-ctk runtime configure --runtime=docker
sudo systemctl restart docker
sudo docker run --rm --runtime=nvidia --gpus all ubuntu nvidia-smi

The sample container should list the GPU. This checks Docker visibility. Verify encoding with the application checks below. NVIDIA sample workload · Tdarr hardware transcoding checks

Intel Quick Sync. For Intel Arc, run ls -l /dev/dri on the Linux Docker host and check for a render device. Map /dev/dri into the container, then run an encode to check access. In Tdarr’s non-root container setup, add the /dev/dri device groups with group_add for hardware transcoding. Intel render-device check · Tdarr Docker configuration

Set up and verify a Tdarr Node

Use both services from Tdarr’s Compose example. The tdarr-node service uses network_mode: service:tdarr, so keep the tdarr service in the same project. If you only want the external Node to process jobs, set internalNode=false in tdarr. Tdarr Docker configuration

Set serverURL to the reachable Tdarr Server URL. With authentication enabled, create a key under Tools → API Keys and set the Node’s apiKey. For a mapped Node, mount the same media and transcode cache as the Server. Use pathTranslators if the Node and Server see different paths. Tdarr Docker configuration · Tdarr variables · Tdarr authentication

Edit the GPU settings in both tdarr and tdarr-node. The example includes both an NVIDIA reservation and a /dev/dri mapping in each service. Keep the existing environment list when editing its GPU entries. Tdarr Compose examples

NVIDIA only. Keep the deploy block with the NVIDIA GPU reservation. Keep NVIDIA_DRIVER_CAPABILITIES=all and NVIDIA_VISIBLE_DEVICES=all in each existing environment list. If /dev/dri is unavailable, remove the devices block that maps /dev/dri:/dev/dri.

Intel only. Keep the devices block with /dev/dri:/dev/dri. Remove the example’s deploy block, which only reserves NVIDIA GPUs, and delete NVIDIA_DRIVER_CAPABILITIES=all and NVIDIA_VISIBLE_DEVICES=all from each environment list.

From the Compose project directory, run docker compose up -d. For NVENC, run the following command on the Docker host to check encoding in a separate container. The check passes when FFmpeg finishes the hevc_nvenc transcode successfully. Docker Compose quickstart · Tdarr hardware transcoding checks

NVIDIA

docker run \
  -e "NVIDIA_DRIVER_CAPABILITIES=all" \
  -e "NVIDIA_VISIBLE_DEVICES=all" \
  --gpus=all \
  ghcr.io/haveagitgat/tdarr_node:latest \
  /bin/bash -e \
  -c 'curl \
        -o /tmp/sample.mkv \
        -l https://samples.tdarr.io/api/v1/samples/sample__1080__libx264__aac__30s__video.mkv; \
      ffmpeg \
        -i /tmp/sample.mkv \
        -c:v:0 hevc_nvenc \
        /tmp/sample-out.mkv'

For Intel Quick Sync, run the command below in the running Node service. It uses a generated clip and discards the output. Docker Compose quickstart · Tdarr hardware transcoding checks

Intel

docker compose exec tdarr-node ffmpeg \
  -hwaccel qsv -f lavfi -i color=c=black:s=256x256:d=1:r=30 \
  -c:v:0 hevc_qsv -f null /dev/null

For a Tdarr job check, use a copy of a video. Enable a Transcode GPU worker. In an existing FFmpeg flow, place Set Video Encoder after the flow initializes its FFmpeg command. In Set Video Encoder, choose hevc for Output Codec, enable Hardware Encoding, and set Hardware Type to nvenc or qsv. Turn on Force Encoding if the sample already uses the target codec. Tdarr workers · Set Video Encoder · Plugin hardware options

Use a test library configured to run that flow. Turn on Process Library in the library settings and run the check within the library’s processing schedule. Put the copied video in the library folder and scan the library to add the file to the transcode queue. Tdarr workers

While the sample is processing, confirm that the worker handling it is on the target Node in Nodes. Open the report from that worker. After the job finishes, check the encoder and transcode result in the Report column of Status. Count a successful transcode with the selected encoder only if the target Node ran the sample. If the relevant FFmpeg output is missing, enable Log full FFmpeg/HandBrake output in Staging before running the check again. Tdarr job reports

Set up and verify a FileFlows Agent

In the FileFlows Docker configurator, use these settings for an external Agent.

SettingWhat to choose
TypeAgent. Set Agent Name to a stable name.
Server URLThe reachable FileFlows server URL.
Access TokenGet the Agent’s token from Config → Agents.
GPUEnable NVIDIA for the runtime and environment settings, or Intel QSV for the QSV device, usually at /dev/dri.
Temp Path and Additional VolumesUse a scratch directory for temporary files and mount the folders used by the flow.

Start the generated Compose configuration with docker compose up -d. Video Encode Optimized requires a valid FileFlows license. If your flow uses Video Encode Optimized and the Agent image supports DockerMods, open DockerMods → Repository in the FileFlows web console and download FFmpeg FileFlows Edition. Docker Compose quickstart · FileFlows DockerMods · FileFlows FFmpeg for Docker

The Agent’s Mappings feature requires a valid FileFlows license. In the Agent’s Mappings, translate paths used by flows or libraries to their local paths on the Agent. Check that the FFmpeg path resolves inside the Agent. FileFlows Agent mappings

With a copy of a video, use FFmpeg Builder: Start, Video Encode Advanced, then FFmpeg Builder: Executor. In the Encoder setting, select the hardware encoder for NVIDIA or Intel Quick Sync. An explicit hardware encoder fails if unavailable. Automatic can fall back to CPU encoding. FileFlows FFmpeg Builder · FileFlows Video Encode Advanced

In Agents, find the target Agent by the name set in Docker and enable it. Under Processing, set All Libraries to restrict access, then select the test library under Libraries. For every other Agent, including the built-in one, restrict its Libraries to exclude the test library or temporarily turn off Enabled. FileFlows Agent configuration · FileFlows Docker configuration

Put the copied video in the test library after setting those restrictions. After processing, open Files → Processed and double-click the file to inspect its log. A completed encode with the selected hardware encoder verifies the target Agent’s GPU access. If the encode fails, use Processing Failed to find its log. FileFlows Video Encode Advanced · FileFlows processing logs

Find the first check that fails

SymptomWhere to check
The GPU is missing from the VM’s PCI list.Recheck the Proxmox IOMMU group and hostpci address. PCI passthrough
The NVIDIA sample cannot list the GPU.Check the NVIDIA driver and Toolkit runtime on the Linux system running Docker. Toolkit setup · Sample workload
Intel’s render device is present on Linux, but the Tdarr encode fails.Check the /dev/dri mapping and the container user’s device groups if using Tdarr’s non-root container setup. Tdarr Docker configuration
Tdarr’s FFmpeg check passes, but the library job fails or does no encoding.Check the GPU worker, the flow’s encoder settings, and the job report. Workers · Encoder settings · Job reports
The FileFlows job succeeds with Encoder set to Automatic.Try an explicit hardware encoder on a copy and check that file’s processing log. Encoder selection · Processing logs

Evidence and limits. The Proxmox VE documentation repository, NVIDIA Container Toolkit 1.18.2 guide, and online Intel, Docker, Tdarr, and FileFlows documentation were checked on November 26, 2026. No hands-on testing was performed.

Sources

  1. Proxmox VE documentation: PCI(e) passthrough
  2. Proxmox VE documentation: system booting
  3. Proxmox VE documentation: qm command reference
  4. NVIDIA Container Toolkit 1.18.2: installation and Docker configuration
  5. NVIDIA Container Toolkit 1.18.2: sample workload
  6. Intel Linux GPU setup: checking the render device
  7. Docker documentation: live restore
  8. Docker Compose quickstart
  9. Tdarr: Docker run and Compose
  10. Tdarr: hardware transcoding checks
  11. Tdarr: configuration variables
  12. Tdarr: authentication and Node API keys
  13. Tdarr: workers
  14. Tdarr: Set Video Encoder
  15. Tdarr: Set Video Encoder hardware options in the plugin source
  16. Tdarr: job reports
  17. FileFlows: Docker installation and configuration
  18. FileFlows: installing DockerMods
  19. FileFlows: FFmpeg FileFlows Edition for Docker
  20. FileFlows: Agent configuration and mappings
  21. FileFlows: FFmpeg Builder
  22. FileFlows: Video Encode Advanced
  23. FileFlows: file processing logs

Related