Compiling Nvidia kernel modules for 4.4

imrazor

Member
Nov 3, 2015
40
0
6
Please note that I'm not trying to install NVidia drivers in a guest OS, but rather the HOST OS. Somehow I got them working with kernel 4.2.8, but since upgrading to kernel 4.4/Proxmox 4.2 I've been unable to duplicate my previous success. I have a full install of Debian Jessie 8 with the Proxmox repos added to /etc/apt/sources.list, and Proxmox and Nvidia were working fine with kernel 4.2. I've tried following these instructions:

https://wiki.debian.org/NvidiaGraphicsDrivers

except that instead of installing linux-headers I installed pve-headers.

# aptitude -r install nvidia-kernel-dkms

doesn't seem to do anything useful. It runs without error, but very quickly without seeming to compile anything.

If I boot with kernel 4.2.8 using the advanced options on the boot menu, I get full video acceleration. (Is it safe to use Proxmox 4.2 with kernel 4.2.8, or is kernel 4.4 mandatory?) For the life of me, I can't remember what I did originally to get the drivers working under kernel 4.2. Can anyone enlighten me?
 
what does "dkms status" report?
 
"dkms status" reports:

nvidia-current, 340.96, 3.16.0-4-amd64, x86_64: installed
nvidia-current, 340.96, 4.2.8-1-pve, x86_64: installed

If it matters, I have an MSI GTX 670 2GB. I can try to install the kernel modules from the Nvidia website, but I'd rather stick with the Debian repos, if possible.
 
you can try to build and install the module for the currently booted kernel with "dkms build nvidia-current/340.96; dkms install nvidia-current/340.96". if this fails, it probably means that the kernel headers are missing (you need to install the matching pve-headers-xxx package) or that the module source in your version is not compatible with the 4.4 kernel
 
  • Like
Reactions: imrazor

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!