AMD Radeon 8060S VAAPI fails in Jellyfin container with amdgpu_device_initialize failed on TrueNAS SCALE

Hardware

Framework Desktop
AMD Ryzen AI Max
Integrated Radeon 8060S

Problem

VAAPI hardware acceleration fails in a Jellyfin Docker container on TrueNAS SCALE. The container has access to both /dev/dri and /dev/kfd, but FFmpeg fails to initialize VAAPI on the AMD GPU.

I first ran the stock TrueNAS Jellyfin app with non-NVIDIA GPU passthrough and the container exposed /dev/dri, but not /dev/kfd. So, I moved Jellyfin to a custom Docker container and mapped both /dev/dri and /dev/kfd.

Inside the container I made sure

  • /dev/dri/renderD128 exists

  • /dev/kfd exists

  • FFmpeg lists VAAPI support

  • FFmpeg lists VAAPI encoders

Reproduction command:

/usr/lib/jellyfin-ffmpeg/ffmpeg -hide_banner -loglevel verbose -vaapi_device /dev/dri/renderD128 -f lavfi -i testsrc2=size=1280x720:rate=30 -t 5 -vf ‘format=nv12,hwupload’ -c:v h264_vaapi -f null -

Result

libva loads radeonsi_drv_video.so, then fails with

_amdgpu_device_initialize: amdgpu_query_gpu_info_init failed
amdgpu: amdgpu_device_initialize failed
Failed to initialise VAAPI connection: 2

Additional notes

  • The same failure occurs when running the command as root inside the container

  • sudo dmesg | grep -Ei ‘amdgpu|drm|kfd|firmware’ shows no obvious amdgpu or firmware errors

  • This appears to be a compatibility issue between TrueNAS SCALE and the Radeon 8060S graphics stack on this hardware, not a simple container permissions problem


If anyone has any suggestions on how I could get around this, please let me know. Otherwise, when 26.04 comes out (hopefully next month) it would be great to add support for AMD Radeon 8060S on Framework Desktop systems, specifically VAAPI initialization for container workloads such as Jellyfin.

26.04 became just 26. I think the release will be more towards the middle of the year? Details should be covered below