[Plugin] LXC Plugin
Featured Replies
Ok so I got the debian bullseye container to work passing an nvidia gpu and using docker.... :-)
It's transcoding plex, frigate and possibly any other container
I've tried documenting my procedure in a readme.txt
I've also created a script (system_config.sh) to install all requirements.
I'm also sharing my container <<dockerhost>> config file.
I'm attaching all docs.
I'm by no means an expert, I got it working after several hours of
Nvidia HW acceleration in LXC
Recommended by ich777
In my case, there is no /dev/<device> that I can use, but I created one by adding a udev rule.
/etc/udev/rules.d/10-local.rules
ACTION=="add", ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="0131", SYMLINK+="scan0"
After re-plug or restarting the device, /dev/scan0 will appear which I can passtrough to the LXC container.
To make this persistent after a reboot, I had to create a user script that will be executed after starting the array.
/mnt/cac
Pass through Hotplug USB Devices with UDEV rules
Recommended by ich777
I'm very sorry, I had only tested 'file' before. I just tested 'char' and it does not work properly; only 'file' works correctly. rocminfo can correctly identify the GPU. finally, I added the following content for the iGPU of the 7840HS:
# For AMD GPU
lxc.cgroup2.devices.allow = c 226:0 rwm
lxc.cgroup2.devices.allow = c 226:128 rwm
lxc.cgroup2.devices.allow = c 242:0 rwm
lxc.mount.entry = /dev/dri/card0 dev/dri/card0 none bind,optional,create=file
lxc.mount.entry = /dev/dri/renderD128 dev/dri
Radeon HW Acceleration in LXC
Recommended by ich777
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.