NVIDIA
Get NVIDIA GPU support
!!! Warning this step should be done after machine setup step, works only on LXC machines due to device sharing limitations !!!
- On master copy, this section to the LXC config
lxc.cgroup2.devices.allow: c 195:0 rw
lxc.cgroup2.devices.allow: c 195:255 rw
lxc.cgroup2.devices.allow: c 236:0 rw
lxc.cgroup2.devices.allow: c 236:1 rw
lxc.cgroup2.devices.allow: c 10:144 rw
lxc.cgroup2.devices.allow: c 239:1 rw
lxc.cgroup2.devices.allow: c 239:2 rw
lxc.mount.entry: /dev/nvidia0 dev/nvidia0 none bind,optional,create=file
lxc.mount.entry: /dev/nvidiactl dev/nvidiactl none bind,optional,create=file
lxc.mount.entry: /dev/nvidia-modeset dev/nvidia-modeset none bind,optional,create=file
lxc.mount.entry: /dev/nvidia-uvm dev/nvidia-uvm none bind,optional,create=file
lxc.mount.entry: /dev/nvidia-uvm-tools dev/nvidia-uvm-tools none bind,optional,create=file
lxc.mount.entry: /dev/nvram dev/nvram none bind,optional,create=file
- On LXC run this
wget http://172.16.0.1:2002/nvidia.run
sudo chmod +x nvidia.run
sudo ./nvidia.run --no-kernel-module
For 32-bit libs compatability, follow this instructions before installing drivers
sudo dpkg --add-architecture i386
sudo apt update
sudo apt install build-essential libglvnd-dev pkg-config libc6:i386
Note It works almost for evrything
- GPU Decoding
- GPU Encoding
- GPU Compute
- GPU Graphics tasks
If you need something special, wolf guide for gpu usage can be more suitable