Hi All
Back in '17 @ChuckPa made a small guide on how to get hw accelleration working on a LXC in Proxmox (PMS installation guide when using a Proxmox 5.1 LXC container).
It worked like a charm.
That was on PVE 5, and we’re long gone from that version.
I can see that pve has gone from cgroup to cgroup2, so I changed the container.conf to that:
lxc.cgroup2.devices.allow: c 226:0 rwm
lxc.cgroup2.devices.allow: c 226:128 rwm
lxc.cgroup2.devices.allow: c 29:0 rwm
lxc.autodev: 1
lxc.hook.autodev: /var/lib/lxc/106/mount_hook.sh
I found out that I could add the repo with the intel-media-va-driver-non-free with apt-add-repository 'deb [arch=amd64] https://repositories.intel.com/graphics/ubuntu focal main'
When I try to install the intel-media-va-driver-non-free it tells me that it can’t install it due to failed dependencies
libc6 >=2.29
libccc-s1 >=3.0
libigdgmm12 >22.17+i419~u20.04
Now I’m stuck :-o
I have no idea where to go from there…
My PVE host is an older Intel i5-6260U NUC, so it does support quicksync, and I had it working back then.
Plex doesn’t use external dependencies for Intel Compute anymore.
All that is now built in with PMS.
The quintessential thing you must do is guarantee the full passthrough.
I’ve seen a lot of folks get tripped up with the new ProxMox and, unfortunately, there’s nothing I can do about it.
FWIW: I have QuickSyncVideo in a regular LXC on Ubuntu working without issue.
Create the GPU with the proper GID for access inside the container
Ensure udev sets up correctly on the host.
I know how I added it using lxc config commands. I’ll share what I can.
Using the Wundertech article, I could add the PCI device to a VM, not an LXC, but I’m not sure what to do with the ‘display’ setting in the VM (I only have the one GPU), and if I keep that there so I can see the console, I get this message:
I tried setting the display to none, that removed the conflict, and I could start the ubuntu VM, but it still doesn’t show the i915 hardware when I install plex to it…
And that explained about my missing /dev/dri
So I reverted the changes made previously, removed the blacklist thing and the grub setting.
Now vainfo is happy:
which just mounts the hosts files into the lxc, and both versions works.
it shows
i915 Found
in the plex install now!
Why on earth didn’t it work when I just changed to cgroup2? I don’t know if a host reboot was necessary, but anyways, I’m happy again
Thankyou for the help @ChuckPa , you are a star!