Information if using proxmox and upgrading to proxmox 7 (Debian 11/ 5.11 kernel)

Discussion topics related to mobile applications and ZoneMinder Event Server (including machine learning)
Post Reply
baudneo
Posts: 3
Joined: Thu Jul 01, 2021 5:17 am

Information if using proxmox and upgrading to proxmox 7 (Debian 11/ 5.11 kernel)

Post by baudneo »

If your passing through gpus to lxcs you will have noticed you need to change your cgroup configurations to cgroup2. This is not the only caveat, you also need to double check the cgroup ID's. Example: my old <lxcID>.conf has ->

Code: Select all

lxc.cgroup.devices.allow: c 195:* rwm
lxc.cgroup.devices.allow: c 235:* rwm
lxc.cgroup.devices.allow: c 180:* rwm
The #'s (ID's) changed after upgrading so now my conf looks like this ->

Code: Select all

lxc.cgroup2.devices.allow: c 195:* rwm
lxc.cgroup2.devices.allow: c 236:* rwm
lxc.cgroup2.devices.allow: c 510:* rwm

The error I was getting was 'ManagedPTR', exact error ->

Code: Select all

cv2.error: OpenCV(4.5.1) /opt/opencv-4.5.1/modules/dnn/src/cuda4dnn/csl/memory.hpp:54: error: (-217:Gpu API call) unknown error in function 'ManagedPtr'
All works as expected now, 1 bonus is 5.11 needs newer Nvidia drivers so I am now on 460.67, cuda 11.4, cudnn for cuda 11.4 and openCV 4.5.1
My old Nvidia drivers wouldn't work (450.82) with the newer 5.11 kernel (known issue at Nvidia).

Hope this helps someone in the future,
Post Reply