[SOLVED] Proxmox VE 7.0 CUDA Problemlösung

Sub7

Well-Known Member
Jan 13, 2018
30
4
48
49
Es soll ja bekannt sein dass CUDA mit Debian Kernell 5.9/Proxmox VE 7.0 inkompatibel ist.
Wie viele andere hätte ich beim ausführen von "pve6to7" eine Warnung gewünscht.

Lösung (LXC):

HOST & LXC Uninstallieren NVIDIA Treiber
Code:
sudo apt-get remove --purge '^nvidia-.*'
or/and
sudo /usr/bin/nvidia-uninstall
HOST
Code:
wget https://us.download.nvidia.com/XFree86/Linux-x86_64/460.73.01/NVIDIA-Linux-x86_64-460.73.01.run
chmod +x NVIDIA-Linux-x86_64-460.73.01.run
./NVIDIA-Linux-x86_64-460.73.01.run
LXC/GAST
Code:
wget https://us.download.nvidia.com/XFree86/Linux-x86_64/460.73.01/NVIDIA-Linux-x86_64-460.73.01.run
chmod +x NVIDIA-Linux-x86_64-460.73.01.run
./NVIDIA-Linux-x86_64-460.73.01.run --no-kernel-module

...mein Projekt wo ich CUDA nutze -> https://github.com/Sub-7/FFmpegUI
 
Last edited:
So you were able to fix by removing the nvidia drivers first, then installing afterwards?

No changes to your configuration file for cgroups to the new cgroups2?
 
From version 7 onwards, changing the group (/etc/pve/nodes/PVE/lxc/100.conf) is mandatory, otherwise pass-through does not work.
Change:
"lxc.cgroup.devices.allow: c 226: * rwm"
to
"lxc.cgroup2.devices.allow: c 226: * rwm"

Now reinstall the correct Nvidia driver and it will work (see above).
PS: Host and guest need the same driver version.
 
This is a bit off topic but I'm nervous about doing a distro-upgrade and not being able to be successful doing the LXC Nvidia passthrough. Is it possible to do a snapshot of rpool (zfs) and then do the upgrade. If the upgrade doesn't work out then rolling back to the snapshot taken?
 
My personal experience with upgrade:
2x Buckup HDDs were completely deleted, I only found empty folders.
... maybe I missed something.

My advice: make / copy a backup to an external HDD !!!


After the upgrade, all containers were there, groups changed, drivers renewed, and everything works again.
i used that => https://www.youtube.com/watch?v=RCSp6gT7LWs
 
  • Like
Reactions: bgv2020
My personal experience with upgrade:
2x Buckup HDDs were completely deleted, I only found empty folders.
... maybe I missed something.

My advice: make / copy a backup to an external HDD !!!


After the upgrade, all containers were there, groups changed, drivers renewed, and everything works again.
i used that => https://www.youtube.com/watch?v=RCSp6gT7LWs
Thank you so very much for your help. I will attempt this weekend!
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!