# Nvidia driver install Rocky 8 - how to?

**URL:** <https://forums.rockylinux.org/t/nvidia-driver-install-rocky-8-how-to/10407>\
**Category:** Rocky Linux Help & Support\
**Created:** [June 23, 2023, 8:29am UTC](https://forums.rockylinux.org/t/nvidia-driver-install-rocky-8-how-to/10407 "2023-06-23T08:29:32Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![catbears](https://avatars.discourse-cdn.com/v4/letter/c/58956e/32.png) [@catbears](https://forums.rockylinux.org/u/catbears)\
**Post date:** [June 23, 2023, 8:29am UTC](https://forums.rockylinux.org/t/nvidia-driver-install-rocky-8-how-to/10407/1 "2023-06-23T08:29:32Z")

</div>

Hi  
I followed the Nvidia tutorial here  
[https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html](https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html)

Then removed everything again after it did not work. Then I did this:

```auto
sudo dnf config-manager --add-repo https://developer.download.nvidia.com/compute/cuda/repos/rhel8/x86_64/cuda-rhel8.repo
sudo dnf install kernel-devel-$(uname -r) kernel-headers-$(uname -r)
sudo dnf install nvidia-driver nvidia-settings
sudo dnf install cuda-driver
# Reboot

```

But `nvidia-smi` shows this error:

```auto
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.

```

How can I fix this?

---

<div class="post-metadata">

**Author:** ![jmaurelli](https://avatars.discourse-cdn.com/v4/letter/j/5f9b8f/32.png) [@jmaurelli](https://forums.rockylinux.org/u/jmaurelli)\
**Post date:** [June 23, 2023, 9:57am UTC](https://forums.rockylinux.org/t/nvidia-driver-install-rocky-8-how-to/10407/2 "2023-06-23T09:57:38Z")

</div>

Hello @catbears , take a peak here and let us know if it helps.

> [@Rocky Linux Resources and You](https://forums.rockylinux.org/t/start-here-rocky-linux-resources-and-you/7007):
>
> Hello and welcome to the Rocky Linux general forums! This post is to hopefully serve as a starting point for resources and other information to make it easier for you to get your questions answered (such as frequently requested information), to help solve an issue you may be facing, or perhaps lead you to guides to help you on your Rocky Linux journey. Rocky Linux General Information General information about Rocky Linux can be found at [our wiki pages](https://wiki.rockylinux.org/rocky/). These pages answer some of the more genera…

"nvidia drivers

It is highly recommended to avoid using nvidia’s “official” driver and use either rpmfusion 12 or elrepo 32. This is due to how they package the driver and make it near impossible to run a newer kernel without waiting for a new package.

Note that elrepo only supports the nvidia driver for EL8."

---

<div class="post-metadata">

**Author:** ![catbears](https://avatars.discourse-cdn.com/v4/letter/c/58956e/32.png) [@catbears](https://forums.rockylinux.org/u/catbears)\
**Post date:** [June 23, 2023, 10:32am UTC](https://forums.rockylinux.org/t/nvidia-driver-install-rocky-8-how-to/10407/3 "2023-06-23T10:32:58Z")

</div>

> [@jmaurelli](#):
>
> rpmfusion 12

Ok great. I went [here](https://rpmfusion.org/Howto/CUDA) and they say to do this

````sudo
sudo dnf clean all
sudo dnf module disable nvidia-driver
sudo dnf -y install cuda```

The system fails then at installing cuda
```$ sudo dnf -y install cuda
Error: 
 Problem: package cuda-12-1-12.1.1-1.x86_64 requires cuda-runtime-12-1 >= 12.1.1, but none of the providers can be installed
  - package cuda-12.1.1-1.x86_64 requires cuda-12-1 >= 12.1.1, but none of the providers can be installed
  - package cuda-runtime-12-1-12.1.1-1.x86_64 requires cuda-drivers >= 530.30.02, but none of the providers can be installed
  - cannot install the best candidate for the job
  - package cuda-drivers-530.30.02-1.x86_64 is filtered out by modular filtering
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

````

Looking at this site: [ELRepo | kmod-nvidia](https://elrepo.org/tiki/kmod-nvidia) it’s from 2015 and does not work or I cannot get it to work. And then there is the issue, that I won’t use the Tesla K80 for X but rather to calculate. Is there any other documentation out there?

---

<div class="post-metadata">

**Author:** ![jmaurelli](https://avatars.discourse-cdn.com/v4/letter/j/5f9b8f/32.png) [@jmaurelli](https://forums.rockylinux.org/u/jmaurelli)\
**Post date:** [June 23, 2023, 10:36am UTC](https://forums.rockylinux.org/t/nvidia-driver-install-rocky-8-how-to/10407/4 "2023-06-23T10:36:58Z")

</div>

Can you share the details of the video card, model and version.

---

<div class="post-metadata">

**Author:** ![catbears](https://avatars.discourse-cdn.com/v4/letter/c/58956e/32.png) [@catbears](https://forums.rockylinux.org/u/catbears)\
**Post date:** [June 23, 2023, 10:40am UTC](https://forums.rockylinux.org/t/nvidia-driver-install-rocky-8-how-to/10407/5 "2023-06-23T10:40:29Z")

</div>

```auto
$ lspci | grep K80
86:00.0 3D controller: NVIDIA Corporation GK210GL [Tesla K80] (rev a1)
87:00.0 3D controller: NVIDIA Corporation GK210GL [Tesla K80] (rev a1)

```

---

<div class="post-metadata">

**Author:** ![jmaurelli](https://avatars.discourse-cdn.com/v4/letter/j/5f9b8f/32.png) [@jmaurelli](https://forums.rockylinux.org/u/jmaurelli)\
**Post date:** [June 23, 2023, 10:43am UTC](https://forums.rockylinux.org/t/nvidia-driver-install-rocky-8-how-to/10407/6 "2023-06-23T10:43:32Z")

</div>

> **[ChatGPT](https://chat.openai.com/share/c202a513-ad6d-4c16-8fb3-ca84367b9deb)**
>
> A conversational AI system that listens, learns, and challenges

---

<div class="post-metadata">

**Author:** ![Yani](https://avatars.discourse-cdn.com/v4/letter/y/e9c0ed/32.png) [@Yani](https://forums.rockylinux.org/u/Yani)\
**Post date:** [June 24, 2023, 2:27am UTC](https://forums.rockylinux.org/t/nvidia-driver-install-rocky-8-how-to/10407/7 "2023-06-24T02:27:39Z")

</div>

Not so out of place with ChatGPT

“Well, this is where ShellGPT steps into the picture. It brings the power of ChatGPT right to your Linux Terminal. ShellGPT provides answers, intelligent suggestions, and writes commands and code for you, helping you navigate the command line efficiently. In this article, we will show you how to install the ShellGPT command line tool and use a ChatGPT-like AI bot in the Linux command line.”

> **[How to Set up and Use ChatGPT in Linux Terminal](https://beebom.com/how-use-chatgpt-linux-terminal/)**
>
> Want to converse with ChatGPT AI chatbot in Command Line on Linux? Learn the process to set up and use ChatGPT in Linux Terminal here.

---

<div class="post-metadata">

**Author:** ![jlehtone](https://avatars.discourse-cdn.com/v4/letter/j/e9a140/32.png) [@jlehtone](https://forums.rockylinux.org/u/jlehtone)\
**Post date:** [June 24, 2023, 8:36am UTC](https://forums.rockylinux.org/t/nvidia-driver-install-rocky-8-how-to/10407/8 "2023-06-24T08:36:05Z")

</div>

If you do go to NVidia’s page to search drivers, it will tell that Kepler generation Tesla’s are supported by driver version 460. That is by trivial search. Bit more and 470 hopefully does support the K80 too. The “latest” driver on NVidia’s search seems to be 535, but in their repo 530.

One way to check that is to see what ELRepo says with:

```bash
dnf install elrepo-release
dnf install nvidia-detect
nvidia-detect

```

The last command shows which driver version from ELRepo ought to support the card. The result is more likely `kmod-nvidia-470xx` than `kmod-nvidia`.

* * *

The CUDA does require NVidia’s graphics drivers for talking with the card. The CUDA runtime used to be very strict about the versions, but has lately given more leeway. Nevertheless, it is probably better to use NVidia’s packages than ELRepo version. So, if we do not need the ELRepo repository, then at least disable or remove definition:

```bash
dnf config-manager --disable elrepo # just disable, hide, repo -- dnf will not use that repo
dnf remove elrepo-release # totally remove the definition -- dnf does not know about ELrepo

```

* * *

The question is, which versions does the NVidia’s repo offer?

```auto
dnf module list nvidia-driver

```

(I don’t have el8 to test on.)

---

<div class="post-metadata">

**Author:** ![Cphusion](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/cphusion/32/3235_2.png) [@Cphusion](https://forums.rockylinux.org/u/Cphusion)\
**Post date:** [June 24, 2023, 9:26am UTC](https://forums.rockylinux.org/t/nvidia-driver-install-rocky-8-how-to/10407/9 "2023-06-24T09:26:37Z")

</div>

![Screenshot from 2023-06-24 11-25-57](https://us1.discourse-cdn.com/flex020/uploads/rockylinux/original/2X/0/0897179c833cb7bdaa75a6bd9e428ae6b9c1a239.png)

---

<div class="post-metadata">

**Author:** ![catbears](https://avatars.discourse-cdn.com/v4/letter/c/58956e/32.png) [@catbears](https://forums.rockylinux.org/u/catbears)\
**Post date:** [June 25, 2023, 4:16pm UTC](https://forums.rockylinux.org/t/nvidia-driver-install-rocky-8-how-to/10407/10 "2023-06-25T16:16:22Z")

</div>

Funny thing, I was taking over the ChatGPT conversation. Like the modern ‘let me google that for you’ 😄

`dnf module list nvidia-driver` gives back this list

```auto
cuda-rhel8-x86_64
Name Stream Profiles Summary                                         
nvidia-driver latest default [d], fm, ks, src Nvidia driver for latest branch                 
nvidia-driver latest-dkms [d] default [d], fm, ks Nvidia driver for latest-dkms branch            
nvidia-driver open-dkms default [d], fm, ks, src Nvidia driver for open-dkms branch              
nvidia-driver 418 default [d], fm, ks, src Nvidia driver for 418 branch                    
nvidia-driver 418-dkms default [d], fm, ks Nvidia driver for 418-dkms branch               
nvidia-driver 440 default [d], fm, ks, src Nvidia driver for 440 branch                    
nvidia-driver 440-dkms default [d], fm, ks Nvidia driver for 440-dkms branch               
nvidia-driver 450 default [d], fm, ks, src Nvidia driver for 450 branch                    
nvidia-driver 450-dkms default [d], fm, ks Nvidia driver for 450-dkms branch               
nvidia-driver 455 default [d], fm, ks, src Nvidia driver for 455 branch                    
nvidia-driver 455-dkms default [d], fm, ks Nvidia driver for 455-dkms branch               
nvidia-driver 460 default [d], fm, ks, src Nvidia driver for 460 branch                    
nvidia-driver 460-dkms default [d], fm, ks Nvidia driver for 460-dkms branch               
nvidia-driver 465 default [d], fm, ks, src Nvidia driver for 465 branch                    
nvidia-driver 465-dkms default [d], fm, ks Nvidia driver for 465-dkms branch               
nvidia-driver 470 default [d], fm, ks, src Nvidia driver for 470 branch                    
nvidia-driver 470-dkms default [d], fm, ks Nvidia driver for 470-dkms branch               
nvidia-driver 495 default [d], fm, ks, src Nvidia driver for 495 branch                    
nvidia-driver 495-dkms default [d], fm, ks Nvidia driver for 495-dkms branch               
nvidia-driver 510 default [d], fm, ks, src Nvidia driver for 510 branch                    
nvidia-driver 510-dkms default [d], fm, ks Nvidia driver for 510-dkms branch               
nvidia-driver 515 default [d], fm, ks, src Nvidia driver for 515 branch                    
nvidia-driver 515-dkms default [d], fm, ks Nvidia driver for 515-dkms branch               
nvidia-driver 515-open default [d], fm, ks, src Nvidia driver for 515-open branch               
nvidia-driver 520 default [d], fm, ks, src Nvidia driver for 520 branch                    
nvidia-driver 520-dkms default [d], fm, ks Nvidia driver for 520-dkms branch               
nvidia-driver 520-open default [d], fm, ks, src Nvidia driver for 520-open branch               
nvidia-driver 525 default [d], fm, ks, src Nvidia driver for 525 branch                    
nvidia-driver 525-dkms default [d], fm, ks Nvidia driver for 525-dkms branch               
nvidia-driver 525-open default [d], fm, ks, src Nvidia driver for 525-open branch               
nvidia-driver 530 [e] default [d] [i], fm, ks, src Nvidia driver for 530 branch                    
nvidia-driver 530-dkms default [d], fm, ks Nvidia driver for 530-dkms branch               
nvidia-driver 530-open default [d], fm, ks, src Nvidia driver for 530-open branch               

Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled

```

It seems, that the 530 is installed from my efforts, but then there is

```auto
$ 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.

```

Edit:

```auto
$ nvidia-detect
kmod-nvidia-470xx
WARNING: Xorg log file /var/log/Xorg.0.log does not exist
WARNING: Unable to determine Xorg ABI compatibility
WARNING: The driver for this device does not support the current Xorg version

```

So I don’t know. Should I change the installed/enabled to 460, should I take it from the website with the ChatGPT solution with the version Cphusion shows?

---

<div class="post-metadata">

**Author:** ![Cphusion](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/cphusion/32/3235_2.png) [@Cphusion](https://forums.rockylinux.org/u/Cphusion)\
**Post date:** [June 25, 2023, 5:59pm UTC](https://forums.rockylinux.org/t/nvidia-driver-install-rocky-8-how-to/10407/11 "2023-06-25T17:59:56Z")

</div>

It doesn’t look like you enabled the 460 driver. Can you try resetting the driver and then enabling it.

```auto
dnf module reset nvidia-driver
dnf module enable nvidia-driver:460
dnf module install nvidia-driver:460

```

Then reboot and run nvidia-smi again?

---

<div class="post-metadata">

**Author:** ![jlehtone](https://avatars.discourse-cdn.com/v4/letter/j/e9a140/32.png) [@jlehtone](https://forums.rockylinux.org/u/jlehtone)\
**Post date:** [June 25, 2023, 6:03pm UTC](https://forums.rockylinux.org/t/nvidia-driver-install-rocky-8-how-to/10407/12 "2023-06-25T18:03:44Z")

</div>

> [@catbears](#):
>
> ```auto
> $ nvidia-detect
> kmod-nvidia-470xx
> 
> ```

The ELRepo’s utility thinks that their 470 legacy driver supports your card.

It is clear that the “latest” 530 does not. Yes, you can install the packages, but the kernel module fails to load due to “unknown” card.  
You probably can `modprobe nvidia` and peek `dmesg -T` and see error messages.  
Furthermore, you get nothing with `lsmod | grep nvidia`

* * *

I would:

```auto
dnf module reset nvidia-driver
dnf module install nvidia-driver:470
dnf distro-sync

```

That should downgrade the driver packages to version 470. You should read RHEL docs about _switch stream_, for what I wrote above might not be the “pure” way to do it.

* * *

If the 470 version of kernel module fails with similar error messages as the 530, then switch to the 460 stream.

* * *

You can’t use the latest CUDA version either, because it does not support your card any more. Pick something older. (I trust you know CUDA better.)

---

<div class="post-metadata">

**Author:** ![brian](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/brian/32/5777_2.png) [@brian](https://forums.rockylinux.org/u/brian)\
**Post date:** [August 25, 2023, 2:59am UTC](https://forums.rockylinux.org/t/nvidia-driver-install-rocky-8-how-to/10407/13 "2023-08-25T02:59:46Z")

</div>


