On Oracle Linux 9.2:
Installing the Nvidia driver. NVIDIA-Linux-x86_64-470.182.03.run
Resulting in this error:
ERROR: Unable to load the kernel module 'nvidia.ko'. This happens most frequently when this kernel module was built against the wrong or improperly configured kernel sources, with a version of gcc that differs from the one used to build the target kernel, or if another driver, such as nouveau, is present and prevents the NVIDIA kernel module from obtaining ownership of the NVIDIA GPU(s), or no NVIDIA GPU installed in this system is supported by this NVIDIA Linux graphics driver release.
Part of the problem is that these packages are a mismatch between the kernel.
# rpm -qa | grep -E "kernel-devel|kernel-headers"
kernel-headers-5.14.0-284.11.1.el9_2.x86_64
kernel-devel-5.14.0-284.11.1.el9_2.x86_64
kernel version:
Linux 5.15.0-101.103.2.1.el9uek.x86_64 #2 SMP Tue May 2 01:10:45 PDT 2023 x86_64 x86_64 x86_64 GNU/Linux
Where do I find the 5.15 version of the above? kernel-devel and kernel-headers?
The other part of the problem is that the nouveau driver is apparently still loaded into the kernel, despite me following the procedure described below and rebooting. If it's not disabled, how do I disable it?
# lspci -k | grep nouv
Kernel modules: nvidiafb, nouveau
Kernel modules: nvidiafb, nouveau
Kernel modules: nvidiafb, nouveau
Kernel modules: nvidiafb, nouveau
Would it be simpler to boot off the 5.14 kernel, making things in sync? But I would still like to get 5.15 drivers.