installing nvidia drivers on centos 8 stream
I had some trouble getting the Official Drivers from Nvidia working on a GPU “Tesla T4” headless machine in a Datacenter running CentOS 8 Stream.
Here are my commands/notes on how I got it working, future me will be happy this is here.
First install “newer” release of the Nvidia drivers. 550 was the newest as of writing this, but look here for the newest ones.
wget https://us.download.nvidia.com/tesla/550.54.15/NVIDIA-Linux-x86_64-550.54.15.run
chmod +x NVIDIA-Linux-x86_64-550.54.15.run
Then install the main line kernel, because RHEL 8 removed some needed headers for nvidia.
rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
yum install https://www.elrepo.org/elrepo-release-8.el8.elrepo.noarch.rpm
yum --enablerepo=elrepo-kernel install kernel-ml
yum --enablerepo=elrepo-kernel install kernel-ml-devel
uname -r
reboot
Validate that you are running the newest kernal, then run the binary from Nvidia.
uname -r
./NVIDIA-Linux-x86_64-550.54.15.run
reboot
Reboot and run nvidia-smi
to make sure that the Nvidia drivers can see the GPU.
Install nvtop
so you can track usage of your GPU.
nvidia-smi
dnf install -y epel-release
dnf install nvtop