I also saw dkms involved and trying to build modules, so I set forth on trying to figure out exactly what libraries it needed, since that didn’t seem correct. I was able to narrow it down using “–no-install-recommends” and find I just need two libraries in the container (libnvcuvid1 and libnvidia-encode1). It looks like that’s all I need to access the host gpu correctly. I should probably have just deleted that image in my earlier post.
I’ve also come across that blog and that is to activate intel drivers. The challenge has been with nvidia cards.
At this point, I don’t have a strong reason to believe the container including permissions is not set correctly since I can transcode freely, with encoding and decoding capabilities, to ios and I can see the gpu encode and decode correctly using webui when I transcode a video when it gets set to convert automatically:
That’s what I was using before, but this is even easier installing just the two library files. It didn’t have a positive effect on transcoding, if I remember correctly. I could try again if that would be helpful
A couple of thoughts here. I have a server with an nvidia GPU and spent some time playing with plex LXC containers on it. Here are my notes:
For privileged LXC containers, you want to make sure to use the same NVIDIA installer script on the host and container, but use the option “–dkms” on the host, and “–no-kernel-module” when run inside the container.
However, if you are using an unprivileged LXC container (which is generally recommended for security reasons), then you can use the nvidia-container-runtime to manage GPU passthrough.
When using the nvidia-container-runtime, in your lxc.conf instead of the cgroup2 allow commands and the device passthrough commands, add the following:
This is not an intel transcode issue. This is an nvidia, quadro in my case, issue. That for sure is a factor. It works fine and without issue with iOS. It breaks down with web transcoding. Maybe it’s a browser profile selection issue, but at least seems like a Plex logic issue when dealing with web transcoding