Information if using proxmox and upgrading to proxmox 7 (Debian 11/ 5.11 kernel)
Posted: Fri Jul 09, 2021 3:45 pm
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 ->
The #'s (ID's) changed after upgrading so now my conf looks like this ->
The error I was getting was 'ManagedPTR', exact error ->
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,
Code: Select all
lxc.cgroup.devices.allow: c 195:* rwm
lxc.cgroup.devices.allow: c 235:* rwm
lxc.cgroup.devices.allow: c 180:* rwm
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'
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,