Shut down the LXC
Shell into the host and edit the LXC config
nano /etc/pve/lxc/112.conf
Add lines below
lxc.cgroup2.devices.allow: c 195:0 rw lxc.cgroup2.devices.allow: c 195:1 rw lxc.cgroup2.devices.allow: c 195:255 rw lxc.cgroup2.devices.allow: c 510:0 rw lxc.cgroup2.devices.allow: c 510:1 rw lxc.cgroup2.devices.allow: c 10:122 rw lxc.cgroup2.devices.allow: c 10:144 rw
lxc.mount.entry: /dev/nvidia0 dev/nvidia0 none bind,optional,create=file lxc.mount.entry: /dev/nvidia1 dev/nvidia1 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
Save file and boot up LXC
Console into LXC and download driver
wget https://us.download.nvidia.com/XFree86/Linux-x86_64/550.76/NVIDIA-Linux-x86_64-550.76.run
Set execute permissions
chmod +x ./NVIDIA-Linux-x86_64-550.76.run
Install w/o kernel
./NVIDIA-Linux-x86_64-550.76.run --no-kernel-module
reboot