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
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
Please run these commands from a Unraid Terminal:
LXC_PATH=$(cat /boot/config/plugins/lxc/lxc.conf | grep "lxc.lxcpath=" | cut -d '=' -f2 | head -1)
rm -rf /var/cache/lxc ${LXC_PATH}/cache
mkdir -p ${LXC_PATH}/cache
ln -s ${LXC_PATH}/cache /var/cache/lxc
(this should fix your issue, just copy past everything into the terminal)
May I ask if this is a fresh install and on what Unraid version are you?
Which path do you use for LXC?
I've seen this issue now twice but I ca
Error after first installation: "mkdir: cannot create directory '/var/cache/lxc': Too many levels of symbolic links"
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
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.
Recommended Posts
Posted by juan11perez,
Nvidia HW acceleration in LXC
Recommended by ich777
4 reactions
Go to this post
Posted by Kulisch,
Pass through Hotplug USB Devices with UDEV rules
Recommended by ich777
1 reaction
Go to this post
Posted by ich777,
Error after first installation: "mkdir: cannot create directory '/var/cache/lxc': Too many levels of symbolic links"
Recommended by ich777
1 reaction
Go to this post
Posted by zh522130,
Radeon HW Acceleration in LXC
Recommended by ich777
1 reaction
Go to this post
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.