How to Install NVIDIA Driver and CUDA on Rocky 9.1

The NVidia’s repo has “dnf modules” (aka “streams”).
See

dnf module list nvidia-driver

Perhaps all necessary packages were not included?
It is possible to install a set of packages (that make a stream) with:

dnf module install stream_spec

where stream_spec is something like nvidia-driver:latest-dkms


Another possibility is that the install did not generate the kernel module.


Third is SecureBoot. Check its status and modprobe messages with:

mokutil --sb
dmesg | grep nvidia

If you do have SecureBoot on and did not load dkms.mok signature to UEFI (with mokutil), then the untrusted kernel module fails to load.

1 Like