Hello, I am currently trying to set up Jellyfin on my Fedora 42 server machine. I would like to utilize my Nvidia GTX 1050TI for video transcoding, however I am hitting a very frustrating wall.
A Tl;Dr is available at the bottom of this post, as I am going to try to give as many details as possible here.
The machine that this is running on is a QEMU Virtual machine utilizing secureboot with PCI-E passthrough for the GTX 1050TI. The NVIDIA proprietary drivers have been installed from the RPMFusion non-free repo, following their instructions for both installing the NVIDIA drivers and for setting up secure boot. To be clear, I am saying that the VM itself has secure boot enabled. The host machine (which is also Fedora 42) also has secure boot enabled.
user@localhost:~$ nvidia-smi
Tue Aug 19 06:38:25 2025
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 575.64.05 Driver Version: 575.64.05 CUDA Version: 12.9 |
|-----------------------------------------+------------------------+----------------------+
| GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|=========================================+========================+======================|
| 0 NVIDIA GeForce GTX 1050 Ti On | 00000000:05:00.0 Off | N/A |
| 51% 27C P8 N/A / 75W | 3MiB / 4096MiB | 0% Default |
| | | N/A |
+-----------------------------------------+------------------------+----------------------+
+-----------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=========================================================================================|
| No running processes found |
The drivers appear to be installed fine. My problem starts at trying to pass through the GPU to docker. To do this, you have to utilize the nvidia-container-toolkit package. I first tried doing this with the official nvidia provided package, but got this error
user@localhost:~$ docker run --rm --runtime=nvidia --security-opt=label=disable ubuntu:latest nvidia-smi
docker: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: exec: "nvidia-smi": executable file not found in $PATH: unknown
Run 'docker run --help' for more information
The first thing I tried was putting SELinux in permissive mode, which was a shot in the dark because it didn’t complain about any errors but I wanted to be sure. No change in the error. I then stumbled upon this Reddit thread where a user says to use the official NVIDIA CUDA drivers, so I give that a shot. This did nothing and I still got the error. I then found this COPR repo that’s supposed to package the nvidia-container-toolkit for Fedora. So I uninstalled nvidia-container-toolkit, installed @ai-ml/nvidia-container-toolkit and nvidia-container-toolkit-selinux only to find it gave the same issue, and someone in the comments had a very similar issue with no solution ever documented. (Although the thread also got closed shortly after that user made the comment on that COPR thread.) Linked in that COPR repo though, is another package golang-github-nvidia-container-toolkit. So I uninstalled the COPR nvidia-container-toolkit and tried using THAT package, which in turn made me even more confused because the error I get from golang-github-nvidia-container-toolkit looks as if the package doesn’t include the docker nvidia runtime.
user@localhost:~$ docker run --rm --runtime=nvidia --security-opt=label=disable ubuntu:latest nvidia-smi
docker: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: unable to retrieve OCI runtime error (open /run/containerd/io.containerd.runtime.v2.task/moby/68421f2ef084e9def43045155b074a69fe4ad7709b318686313f1da5e1f3de7f/log.json: no such file or directory): exec: "nvidia-container-runtime": executable file not found in $PATH: unknown
I’ve also found this thread, which looks to almost be my issue verbatim, but they never got a solution either. (My entire workflow is based in docker and switching one or two containers to podman will throw me off when working on maintainence, really trying to stay on docker.)
I’m not sure if there’s a really easy step I missed somewhere along the way, and my search engine skills are failing me, but I am at a complete loss as to where to go from here.
So, Tl;Dr, I’m 99.999% positive I’ve installed nvidia drivers correctly, why are docker containers saying unable to start container process: error during container init: exec: "nvidia-smi": executable file not found in $PATH: unknown
?
Thanks in advance