# Unable to install Nvidia driver on RL8.9: ERROR: Unable to load the kernel module 'nvidia.ko'

**URL:** <https://forums.rockylinux.org/t/unable-to-install-nvidia-driver-on-rl8-9-error-unable-to-load-the-kernel-module-nvidia-ko/13516>\
**Category:** Rocky Linux Help & Support\
**Created:** [April 8, 2024, 6:52pm UTC](https://forums.rockylinux.org/t/unable-to-install-nvidia-driver-on-rl8-9-error-unable-to-load-the-kernel-module-nvidia-ko/13516 "2024-04-08T18:52:04Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![dictum](https://avatars.discourse-cdn.com/v4/letter/d/7993a0/32.png) [@dictum](https://forums.rockylinux.org/u/dictum)\
**Post date:** [April 8, 2024, 6:52pm UTC](https://forums.rockylinux.org/t/unable-to-install-nvidia-driver-on-rl8-9-error-unable-to-load-the-kernel-module-nvidia-ko/13516/1 "2024-04-08T18:52:04Z")

</div>

RL 8.9

# lspci | grep -i nv

02:01.0 VGA compatible controller: NVIDIA Corporation GA102GL [A40] (rev a1)

# ./NVIDIA-Linux-x86\_64-535.129.03.run

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 device(s), or no NVIDIA device installed in this system is supported by this NVIDIA Linux graphics driver  
release.

```
     Please see the log entries 'Kernel module load error' and 'Kernel messages' at the end of the file
     '/var/log/nvidia-installer.log' for more information.

```

# cd /etc/modprobe.d

# cat nvidia.conf

blacklist nouveau

# cat disable-nouveau.conf

blacklist nouveau\noptions nouveau modeset=0

dracut -f initramfs-$(uname -r).img $(uname -r)

---

<div class="post-metadata">

**Author:** ![label](https://avatars.discourse-cdn.com/v4/letter/l/c5a1d2/32.png) [@label](https://forums.rockylinux.org/u/label)\
**Post date:** [April 8, 2024, 6:54pm UTC](https://forums.rockylinux.org/t/unable-to-install-nvidia-driver-on-rl8-9-error-unable-to-load-the-kernel-module-nvidia-ko/13516/2 "2024-04-08T18:54:01Z")

</div>

It is not recommended to use the `.run` installer. Please review the following topic: [Nvidia Drivers on Rocky Linux](https://forums.rockylinux.org/t/nvidia-drivers-on-rocky-linux/12366)

---

<div class="post-metadata">

**Author:** ![dictum](https://avatars.discourse-cdn.com/v4/letter/d/7993a0/32.png) [@dictum](https://forums.rockylinux.org/u/dictum)\
**Post date:** [April 8, 2024, 7:49pm UTC](https://forums.rockylinux.org/t/unable-to-install-nvidia-driver-on-rl8-9-error-unable-to-load-the-kernel-module-nvidia-ko/13516/3 "2024-04-08T19:49:37Z")

</div>

I followed the procedure here:

> [@Nvidia Drivers on Rocky Linux](https://forums.rockylinux.org/t/nvidia-drivers-on-rocky-linux/12366):
>
> Preface An nvidia gpu is one of the common chips in use on almost all operating system platforms. It is generally common for users to install Rocky Linux (or any other Enterprise Linux) or Fedora Linux and then want to install the drivers. There are many guides online and most are conflicting or have information that may not even be needed for the general user. The goal of this post is to provide the general recommendations and instructions for installing the nvidia driver on a Rocky Linux syst…

and am still getting this:

# 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.

Looks like nouveau is still loading? Which is a problem.

# lsmod | grep -i nouv

nouveau 2478080 0  
mxm\_wmi 16384 1 nouveau  
wmi 32768 2 mxm\_wmi,nouveau  
i2c\_algo\_bit 16384 1 nouveau  
drm\_display\_helper 155648 1 nouveau  
video 53248 1 nouveau  
drm\_ttm\_helper 16384 2 vmwgfx,nouveau  
ttm 81920 3 vmwgfx,drm\_ttm\_helper,nouveau  
drm\_kms\_helper 184320 5 vmwgfx,drm\_display\_helper,nouveau  
drm 602112 8 vmwgfx,drm\_kms\_helper,drm\_display\_helper,drm\_ttm\_helper,ttm,nouveau

# lsmod | grep -i Nvidia

#

---

<div class="post-metadata">

**Author:** ![dictum](https://avatars.discourse-cdn.com/v4/letter/d/7993a0/32.png) [@dictum](https://forums.rockylinux.org/u/dictum)\
**Post date:** [April 8, 2024, 7:57pm UTC](https://forums.rockylinux.org/t/unable-to-install-nvidia-driver-on-rl8-9-error-unable-to-load-the-kernel-module-nvidia-ko/13516/4 "2024-04-08T19:57:26Z")

</div>

This shows nothing loading.

# dkms status

#

---

<div class="post-metadata">

**Author:** ![dictum](https://avatars.discourse-cdn.com/v4/letter/d/7993a0/32.png) [@dictum](https://forums.rockylinux.org/u/dictum)\
**Post date:** [April 8, 2024, 7:59pm UTC](https://forums.rockylinux.org/t/unable-to-install-nvidia-driver-on-rl8-9-error-unable-to-load-the-kernel-module-nvidia-ko/13516/5 "2024-04-08T19:59:53Z")

</div>

lspci | grep NVID  
02:01.0 VGA compatible controller: NVIDIA Corporation GA102GL [A40] (rev a1)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/rockylinux/original/1X/91b7219eec10e30013422e4df76c1d898711a5d5.svg) [@system](https://forums.rockylinux.org/u/system)\
**Post date:** [June 7, 2024, 8:00pm UTC](https://forums.rockylinux.org/t/unable-to-install-nvidia-driver-on-rl8-9-error-unable-to-load-the-kernel-module-nvidia-ko/13516/6 "2024-06-07T20:00:00Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
