Closed weitheng closed 1 year ago
Is your proxmox container privileged or unprivileged? Did you edit the conf file for the container to mount the dev entries and set the cgroup2 settings for the gpu?
Is your proxmox container privileged or unprivileged? Did you edit the conf file for the container to mount the dev entries and set the cgroup2 settings for the gpu?
It's privileged. Sorry, forgot to include the lxc configuration file:-
arch: amd64
cores: 8
features: keyctl=1,nesting=1
hostname: portainer1
memory: 16384
net0: name=eth0,bridge=vmbr0,firewall=1,hwaddr=76:0C:0A:B3:5B:97,ip=dhcp,type=veth
onboot: 1
ostype: debian
rootfs: local-lvm:vm-101-disk-0,size=120G
swap: 4096
unprivileged: 0
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-uvm dev/nvidia-uvm 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-tools dev/nvidia-uvm-tools none bind,optional,create=file
lxc.mount.entry: /dev/bus/usb/001 dev/bus/usb/001 none bind,optional,create=dir 0,0
lxc.mount.entry: /dev/bus/usb/003 dev/bus/usb/003 none bind,optional,create=dir 0,0
lxc.mount.entry: /dev/bus/usb/004 dev/bus/usb/004 none bind,optional,create=dir 0,0
lxc.mount.entry: /dev/bus/usb/005 dev/bus/usb/005 none bind,optional,create=dir 0,0
lxc.cgroup2.devices.allow: c 189:* rwm
lxc.cgroup.devices.allow: c 195:* rwm
lxc.cgroup.devices.allow: c 243:* rwm
lxc.apparmor.profile: unconfined
lxc.cgroup2.devices.allow: a
lxc.cap.drop:
lxc.mount.auto: cgroup:rw
Anyone able to help? 🙏
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
How was this fixed? I see same issue with NVIDIA P40 - in my case just needed proper drivers
I'm also experiencing this with GrumpyMeow's Proxmox LXC install, which I believe was recently approved as an official installation method. This should probably be re-opened to investigate more.
I am still having the same issue!
Describe the problem you are having
Getting this
ERROR : [AVHWDeviceContext @ 0x55bf99883d00] cu->cuInit(0) failed -> CUDA_ERROR_UNKNOWN: unknown error
when trying to use my Nvidia Quadro P4000 GPU for ffmpeg hardware acceleration. I am running Frigate on Turnkeycore Debian 11 LXC Container, using Proxmox. I have installed the Nvidia kernel on Proxmox, and matched it with the proper drivers on the LXC container.The host and container seems to have access to
libnvcuvid1
. Got thislibnvcuvid.so.1 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libnvcuvid.so.1
when running thisdocker exec -it frigate ldconfig -p | grep cuvid
-- ContainerHost:
ldconfig -p | grep cuvid
libnvcuvid.so.1 (libc6,x86-64) => /lib/x86_64-linux-gnu/libnvcuvid.so.1
libnvcuvid.so (libc6,x86-64) => /lib/x86_64-linux-gnu/libnvcuvid.so
I should have all the right versions here:
Version
0.11.1-2EADA21
Frigate config file
docker-compose file or Docker CLI command
Relevant log output
FFprobe output from your camera
Operating system
Debian
Install method
Docker Compose
Network connection
Wired
Camera make and model
Dahua
Any other information that may be helpful
Have tried almost all proposed solutions from other similar error, but still can't resolve it.