- Joined
- Nov 22, 2017
- Messages
- 310
I updated the Plex pkg and noticed this note:
I thought this would be nice to setup so that once we are on FreeBSD 12 everything would just start working.
So I started investigating; the
I also had no issue installing the Intel VA support libraries in the Plex jail and adding the
However I have not been able to figure out how to create a custom devfs ruleset and get iocage to actually use it. I either get a message that the ruleset does not exist (if I try put the rulleset in
https://github.com/freenas/iocage/pull/22 implies that there is some way to tell iocage directly about custom devfs rulesets but I have not been able to find documentation anywhere.
So does anyone know how to get this working without switching to one of iocage's other built-in rulesets that unhide everything?
Code:
@@@ INTEL GPU OFFLOAD NOTES @@@ If you have a supported Intel GPU, you can leverage hardware accellerated encoding/decoding in Plex Media Server on FreeBSD 12.0+. The requirements are as follows: * Install multimedia/drm-kmod: e.g., pkg install drm-fbsd12.0-kmod * Enable loading of kernel module on boot: sysrc kld_list+="drm" ** If Plex will run in a jail, you must load the module outside the jail! * Load the kernel module now: kldload drm * Install the supporting Intel VA support library for your GPU ** multimedia/libva-intel-driver: [LEGACY] Intel GMA 4500 or newer ** multimedia/libva-intel-media-driver: Intel HD 5000 (Gen8) or newer *** This must be installed beside Plex. e.g., in the jail with Plex * Add plex user to the video group: pw groupmod -n video -m plex * For jails, make a devfs ruleset to expose /dev/dri/* devices. e.g., /dev/devfs.rules on the host: [plex_drm=10] add include $devfsrules_hide_all add include $devfsrules_unhide_basic add include $devfsrules_unhide_login add include $devfsrules_jail add path 'dri*' unhide add path 'dri/*' unhide add path 'drm*' unhide add path 'drm/*' unhide * Enable the devfs ruleset for your jail. e.g., devfs_ruleset=10 in your /etc/jail.conf or for iocage, iocage set devfs_ruleset="10" Please refer to documentation for all other FreeBSD jail management utilities. @@@ INTEL GPU OFFLOAD NOTES @@@
I thought this would be nice to setup so that once we are on FreeBSD 12 everything would just start working.
So I started investigating; the
drm
kernel module is in the base system but not loaded, so I set it up to load.I also had no issue installing the Intel VA support libraries in the Plex jail and adding the
plex
user to the video
group.However I have not been able to figure out how to create a custom devfs ruleset and get iocage to actually use it. I either get a message that the ruleset does not exist (if I try put the rulleset in
/etc/devfs.rules
) or the ruleset does not actually contain the rules I set if I try to script it directly (which leads to a dhcp failure).https://github.com/freenas/iocage/pull/22 implies that there is some way to tell iocage directly about custom devfs rulesets but I have not been able to find documentation anywhere.
So does anyone know how to get this working without switching to one of iocage's other built-in rulesets that unhide everything?