![]() |
Container startup issues with NVidia - Printable Version +- Jellyfin Forum (https://forum.jellyfin.org) +-- Forum: Support (https://forum.jellyfin.org/f-support) +--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting) +--- Thread: Container startup issues with NVidia (/t-container-startup-issues-with-nvidia) |
Container startup issues with NVidia - Terence-D - 2024-04-16 Hi there, not sure where to post, so thought I'd start here... I have Jellyfin running great, along with hw transcoding through my GPU, no issues until I reboot. The container will not restart after reboot until I first run this command by hand, then I can restart the container successfully: sudo nvidia-container-cli --load-kmods info I'll be honest I don't know what magic that does, I assume it loads kernel modules? I did check the following file and load-kmods=true is set: cat /etc/nvidia-container-runtime/config.toml | grep mod load-kmods = true I'm looking for some way to either fix whatever this is, OR just run that command on startup somehow.. this might be a better question to ask for the docker or linux guys, but as its Jellyfin I thought I'd start here. Any help is appreciated, thank you. I've been running like this for awhile and its finally annoyed me enough to start investigating. I've tried searching on Google to no avail. Relevant system info
Dockercompose: Code: version: "3" RE: Container startup issues with NVidia - TheDreadPirate - 2024-04-16 You could a service that systemd runs on startup. As long as the priority is higher than docker it should run before it. https://askubuntu.com/questions/919054/how-do-i-run-a-single-command-at-startup-using-systemd RE: Container startup issues with NVidia - Terence-D - 2024-04-17 Thanks for the link DreadPirate, that got me on the right path. In case anyone ever finds this post in the future, here's the service I created under /etc/systemd/system. Tested on a reboot everything came up properly: Code: [Unit] Enabled with: Code: sudo systemctl enable nvidiamods.service |