Jellyfin - GPU Passthrough Question - TrueNAS 24.10.2.1

Hi! I’m on version 24.10.2.1, and I’m trying to use part of my Nvidia Tesla P40 for Jellyfin to accelerate transcoding. I have the app installed and I don’t see any way to segment off a part of the GPU resource for this task.

Thanks

Did you install the Nvidia driver too?

you don’t have to segment it out, you can assign your one gpu to 5 apps at the same time, the driver does the rest.
The gpu can’t be isolated for vm use. If it is isolated for vms you can’t use it for apps.

How do I do that? I looked in Installed Applications > Settings, and there was no option to install the driver.

Okay, I just removed the GPU from isolation in System > Advanced Settings > GPU Isolation, but I still don’t see how I can “enable” it for Jellyfin.

I’m already on the 25.04 release candidate and haven’t used the build in apps system for a while so my memory is pretty vague, but on the apps page, top right corner should be an menu point for advanced options for the whole apps system and there should be a checkbox “enable gpu support”

Yes this is the Configuration dropdown. I navigate to Settings and there’s no option for this, but I could have sworn there was one there in a past version.

My memory went to the wrong version and menu option.
But there should be an option to install the nvidia driver, since EE did not include the driver by default.

You may need a reboot for the de-isolation to take effect.

https://www.truenas.com/docs/truenasapps/#installing-nvidia-drivers

The option isn’t present if a compatible GPU is not detected as available on the system, which might have been because it is still isolated.

I ended up running nvidia-smi in the TrueNAS shell to confirm the GPU was being seen by the OS, and then I ran midclt call -job docker.update ‘{“nvidia”: true}’ and rebooted the server and the option to install Nvidia drivers reappeared in Apps > Configuration > Settings, with a checkbox at the bottom of the menu that appeared.

I enabled NVENC in Jellyfin, but the GPU is still showing no usage. When playing a title that requires transcoding, I get the error “Playback failed due to a fatal error.”

I tried this, and it said that this variable already exists.


I did get a new box at the end of the Jellyfin “Edit” settings where it shows a box to enable my P40, but it doesn’t show the UUID next to it, and when I try to enable it, I immediately get an error that states it’s expecting a UUID, so I’m still stuck here.

Maybe this will help you:

2 Likes

You might want to check the iommu separation on your motherboard. If the separation is not complete one way is to use an ACS override patch which I think is a pretty challenging on truenas