Proxmox and Plex Quicksync

For Mac mini with i5-3210M:

ls -l /dev/dri

Output:

crw-rw---- 1 root video  226,   0 Nov 21 00:37 card0
crw-rw---- 1 root render 226, 128 Nov 21 00:37 renderD128

The container must be privileged. Edit the container configuration:

nano /etc/pve/lxc/#####.conf

where ##### is the container ID, and add:

lxc.cgroup2.devices.allow: c 226:0 rwm
lxc.cgroup2.devices.allow: c 226:128 rwm
lxc.mount.entry: /dev/dri dev/dri none bind,optional,create=dir

Boot the container, if you run “ls -l /dev/dri” from the container you should now see the two devices.

For Lenovo H50 with i7-4790 CPU:

ls -l /dev/dri

Output:

drwxr-xr-x 2 root root         80 Nov 15 18:23 by-path
crw-rw---- 1 root video  226,   0 Nov 15 18:23 card0
crw-rw---- 1 root render 226, 128 Nov 15 18:23 renderD128

The container must be privileged. Edit the container configuration:

nano /etc/pve/lxc/#####.conf

where ##### is the container ID, and add:

lxc.cgroup2.devices.allow: c 226:0 rwm
lxc.cgroup2.devices.allow: c 226:128 rwm
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

Change 226 and 128 if needed so the numbers are the same as in the output of the “ls” in the host.

Boot the container, if you run “ls -l /dev/dri” from the container you should now see the two devices.

Change the group and mode of /dev/dri:

/bin/chgrp video /dev/dri
/bin/chmod 755 /dev/dri
/bin/chmod 660 /dev/dri/*

Verify that the user “plex” was added to the group of the graphics and add it to the group of the transcoder devices if needed (in this case ssl-cert):

cat /etc/group | grep plex
usermod -a -G ssl-cert plex

You can check if the Intel transcoder is working with:

sudo intel_gpu_top

Posted

in

by

Tags:

WordPress Appliance - Powered by TurnKey Linux