Intel Nuc 10 GPU passthrough to LXC for Plex hardware transcoding

md127

New Member
Feb 10, 2022
21
2
1
124
Hi,
I've configured the container as follows:

Code:
arch: amd64
cores: 4
features: nesting=1
hostname: plex
memory: 4096
net0: name=eth0,bridge=vmbr0,hwaddr=36:E6:21:5B:00:CE,ip=dhcp,type=veth
onboot: 0
ostype: ubuntu
rootfs: local-lvm:vm-103-disk-0,size=8G
swap: 1024
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.mount.entry: /dev/fb0 dev/fb0 none bind,optional,create=file
lxc.mount.entry: /dev/dri dev/dri none bind,optional,create=dir
lxc.mount.entry: /dev/dri/renderD128 dev/renderD128 none bind,optional,create=file
lxc.mount.entry: /mnt/pve/Data mnt/Data none bind,create=dir 0 0

The driver seems to be available from within the container:
Code:
root@plex:~# ls -l /dev/dri
total 0
drw-rw---- 2 root root        80 Feb  7 16:49 by-path
crw-rw---- 1 root video 226,   0 Feb  9 22:04 card0
crw-rw---- 1 root video 226, 128 Feb  9 13:43 renderD128

Plex however can't find the GPU and not doing hardware transcoding. Anything I'm missing?
 
i915 driver found on host but not within container:

Code:
root@plex:~# modprobe i915
modprobe: FATAL: Module i915 not found in directory /lib/modules/5.13.19-3-pve
 
i don't know how plex determines if there is a gpu or what tools must be installed, but you cannot load a kernel module from the container, that has to be done on the host
(and i guess it is already loaded, else you would not get the /dev/dri paths)
 
Thanks. Running Plex on the host for now.
Are you still running it on the host? I'm about to do the same because I can't get the iGPU to get passed through a container. Do you have a reference on how to directly install it on the proxmox host?
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!