Plex LXC Container Hardware Transcode help

Dataninja

Member
Apr 24, 2023
37
5
8
I'm newer to Proxmox and have been spinning my wheels for a couple of days trying to get HW to work in Plex LXC container. I've scoured the forums and the web, but seem to be coming up short.

I've tried multiple setups including VM's but hitting can't seem to get it to work.

Here's my latest config on my Minisforum nab6 PC with 12650H CPU(VT-D enabled).
  • Plex in LXC container using the script from tteck.github.io
    • Advanced setup to use Ubuntu 20.04
    • 20 GB drive space
    • 8gb of ram
    • 4 Cores
    • Installed on a ZFS I created on an NVME (Storage) and not on local lvm (proxmox host install)
    • enabled SSH
Proxmox Host:

/etc/default/grub

Code:
GRUB_CMDLINE_LINUX_DEFAULT="quiet intel_iommu=on"

ls -l /dev/dri (same thing shows in the container):
Code:
drwxr-xr-x 2 root root         80 Apr 24 10:43 by-path
crw-rw---- 1 root video  226,   0 Apr 24 10:43 card0
crw-rw---- 1 root render 226, 128 Apr 24 10:43 renderD128

/etc/pve/lxc/<containerid>.conf
Code:
arch: amd64
cores: 4
features: nesting=1
hostname: plex
memory: 8192
net0: name=eth0,bridge=vmbr0,gw=192.168.254.1,hwaddr=B6:8C:9F:A5:D3:74,ip=192.168.254.21/24,type=veth
onboot: 1
ostype: ubuntu
rootfs: Storage:subvol-100-disk-0,size=20G
swap: 512
lxc.cgroup2.devices.allow: a
lxc.cap.drop:
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/dri/renderD128 none bind,optional,create=file

I'm not sure what else I'm missing
 
The problem is that you wont be able to use plex with hardware decoding running in a container.
You need to create a VM and go to the hardware tab to add the GPU.
 
The problem is that you wont be able to use plex with hardware decoding running in a container.
You need to create a VM and go to the hardware tab to add the GPU.
Not true. My Plex is running in an LXC and seems to be doing hardware acceleration ok.

1721952540407.png
 

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!