Nvidia driver can't work after install PVE 7.4

jacks

New Member
May 1, 2023
3
1
3
Hi, Follow the such guide,I installed Nvidia driver with:

Code:
sudo apt update
sudo apt install nvidia-detect
sudo nvidia-detect

sudo apt install nvidia-driver

systemctl reboot

after that, my nvidia driver was worked, I can checked it with nvidia-smi

Pasted image 20230430230707.png

and then, I installed PVE with the guide,and PVE is running well,but after PVE is installed, Nvidia driver is gone, I check it also with nvidia-smi, but it raid

Code:
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.

截屏2023-05-01 23.53.24.png

And I also found my physical display also miss graph desktop,my pve version is :

Code:
jacks  (ssh) debian  ~  pveversion -v                                                                                                                                                                                                                                                                   9 ↵  23:52:08
proxmox-ve: 7.4-1 (running kernel: 5.15.107-1-pve)
pve-manager: 7.4-3 (running version: 7.4-3/9002ab8a)
pve-kernel-5.15: 7.4-2
pve-kernel-5.15.107-1-pve: 5.15.107-1
ceph-fuse: 16.2.11-pve1
corosync: 3.1.7-pve1
criu: 3.15-1+pve-1
glusterfs-client: 9.2-1
ifupdown: residual config
ifupdown2: 3.1.0-1+pmx3
libjs-extjs: 7.0.0-1
libknet1: 1.24-pve2
libproxmox-acme-perl: 1.4.4
libproxmox-backup-qemu0: 1.3.1-1
libproxmox-rs-perl: 0.2.1
libpve-access-control: 7.4-2
libpve-apiclient-perl: 3.2-1
libpve-common-perl: 7.3-4
libpve-guest-common-perl: 4.2-4
libpve-http-server-perl: 4.2-3
libpve-rs-perl: 0.7.5
libpve-storage-perl: 7.4-2
libspice-server1: 0.14.3-2.1
lvm2: 2.03.11-2.1
lxc-pve: 5.0.2-2
lxcfs: 5.0.3-pve1
novnc-pve: 1.4.0-1
proxmox-backup-client: 2.4.1-1
proxmox-backup-file-restore: 2.4.1-1
proxmox-kernel-helper: 7.4-1
proxmox-mail-forward: 0.1.1-1
proxmox-mini-journalreader: 1.3-1
proxmox-offline-mirror-helper: 0.5.1-1
proxmox-widget-toolkit: 3.6.5
pve-cluster: 7.3-3
pve-container: 4.4-3
pve-docs: 7.4-2
pve-edk2-firmware: 3.20230228-2
pve-firewall: 4.3-1
pve-firmware: 3.6-5
pve-ha-manager: 3.6.1
pve-i18n: 2.12-1
pve-qemu-kvm: 7.2.0-8
pve-xtermjs: 4.16.0-1
qemu-server: 7.4-3
smartmontools: 7.2-pve3
spiceterm: 3.2-2
swtpm: 0.8.0~bpo11+3
vncterm: 1.7-1
zfsutils-linux: 2.1.11-pve1
 
For understanding; so, your sequence was?:
  1. Install Debian with an desktop environment
  2. Install the Nvidia driver
  3. Install PVE
Did you install the: pve-headers before the actual PVE installation? (Because Proxmox products come with their own kernel and for the Nvidia driver, you need the matching kernel headers (from Proxmox in this case).)

What is the full output of: dkms status?

If I would need to get such a setup, I would start/try with another sequence:
  1. Install PVE from/with the recent official ISO: [1]
  2. Fully update the PVE-host, using a appropriate repository: [2]
  3. Reboot the PVE-host (to boot with the most recent PVE-kernel)
  4. Install the: pve-headers metapackage
  5. Install the: nvidia-driver (from, currently, Debian bullseye non-free: [3] or bullseye-backports non-free: [4]; whichever is more recent)
  6. Check: dkms status
  7. Reboot the PVE-host (to boot with the Nvidia driver)
  8. Check: nvidia-smi
  9. Install an (in Debian ootb available) desktop environment: [5]
  10. Reboot the PVE-host (to hopefully boot into your PVE workstation with an desktop environment and proper graphics support)

BTW: The official guide for installing PVE 7 on top of Debian 11/Bullseye is here: [6].

[1] https://proxmox.com/en/downloads/category/iso-images-pve
[2] https://pve.proxmox.com/wiki/Package_Repositories
[3] https://packages.debian.org/bullseye/nvidia-driver
[4] https://packages.debian.org/bullseye-backports/nvidia-driver
[5] https://wiki.debian.org/DesktopEnvironment
[6] https://pve.proxmox.com/wiki/Install_Proxmox_VE_on_Debian_11_Bullseye
 
For understanding; so, your sequence was?:
  1. Install Debian with an desktop environment
  2. Install the Nvidia driver
  3. Install PVE
Did you install the: pve-headers before the actual PVE installation? (Because Proxmox products come with their own kernel and for the Nvidia driver, you need the matching kernel headers (from Proxmox in this case).)

What is the full output of: dkms status?

If I would need to get such a setup, I would start/try with another sequence:
  1. Install PVE from/with the recent official ISO: [1]
  2. Fully update the PVE-host, using a appropriate repository: [2]
  3. Reboot the PVE-host (to boot with the most recent PVE-kernel)
  4. Install the: pve-headers metapackage
  5. Install the: nvidia-driver (from, currently, Debian bullseye non-free: [3] or bullseye-backports non-free: [4]; whichever is more recent)
  6. Check: dkms status
  7. Reboot the PVE-host (to boot with the Nvidia driver)
  8. Check: nvidia-smi
  9. Install an (in Debian ootb available) desktop environment: [5]
  10. Reboot the PVE-host (to hopefully boot into your PVE workstation with an desktop environment and proper graphics support)

BTW: The official guide for installing PVE 7 on top of Debian 11/Bullseye is here: [6].

[1] https://proxmox.com/en/downloads/category/iso-images-pve
[2] https://pve.proxmox.com/wiki/Package_Repositories
[3] https://packages.debian.org/bullseye/nvidia-driver
[4] https://packages.debian.org/bullseye-backports/nvidia-driver
[5] https://wiki.debian.org/DesktopEnvironment
[6] https://pve.proxmox.com/wiki/Install_Proxmox_VE_on_Debian_11_Bullseye
Thanks you so much for your replay, I didn't install pve-headers before the actual PVE installation.

And finally everything seems to be running well after run following code:

Code:
su
echo "blacklist nouveau" >> /etc/modprobe.d/blacklist.conf
apt install pve-headers
apt-get update 
apt-get install  nvidia-driver
reboot

截屏2023-05-02 14.42.12.png
 

Attachments

  • 截屏2023-05-02 12.31.39.png
    截屏2023-05-02 12.31.39.png
    140.7 KB · Views: 11
  • Like
Reactions: Neobin

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!