I am experiencing an issue with my NVIDIA GPU driver and would like your assistance.
1. Environment
OS: AlmaLinux 10.1
Kernel: 6.12.0-124.49.1.el10_1.x86_64
CPU: Ryzen 9 9950X
GPU: NVIDIA RTX PRO 4000 Blackwell
2. Problem Descriptionand Error Message
After installing the NVIDIA driver, I attempted to verify the GPU status, but I encountered the following error. The driver does not seem to be communicating with the hardware correctly.
Error Message
nvidia-smi
NVIDIA-SMI has failed because it couldnât communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.
I have completed the installation steps and attempted modprobe. The results are shown below. Please note that I would like to keep Secure Boot enabled.
Bash
# dnf install almalinux-release-nvidia-driver
# dnf install nvidia-open-kmod nvidia-driver-cuda
# modprobe nvidia
modprobe: ERROR: could not insert 'nvidia': Key was rejected by service
As requested, here is the modinfo output. It seems the module was signed by a local DKMS key instead of the AlmaLinux official key, which is likely causing the âKey rejectedâ error under Secure Boot.
One method would be to import the cert that DKMS does use:
mokutil --import /var/lib/dkms/mok.pub
reboot
and complete the import in âBIOS setupâ.
The other method would be to figure out why there kernel modules are signed by DKMS â as happens when one installs module package from NVidiaâs repo â and not by AlmaLinuxâs repo (which should also filter out the NVidiaâs package).
Thanks for the detailed explanation and the useful dnf tips. I decided to rebuild the entire environment (OS and drivers). This time, the driver was recognized correctly without disabling Secure Boot. It seems like the fresh setup handled the signing/MOK process better. I appreciate your support!