Ensure the GPUs are Installed
Ensure that the lspci command is installed (which lists the PCI devices connected to the server):Nvidia, then the GPU is not properly
installed. Otherwise, you should see the make and model of the GPU devices that
are installed.
Disable Nouveau
Blacklist Nouveau in Modprobe
The nouveau driver is an alternative to the Nvidia drivers generally installed on the server. It does not work with CUDA and must be disabled. The first step is to edit the file at /etc/modprobe.d/blacklist-nouveau.conf. Something like:Update Grub to Blacklist Nouveau
Backup your grub config template:rd.driver.blacklist=grub.nouveau and rcutree.rcu_idle_gp_delay=1 to the
GRUB_CMDLINE_LINUX variable. For example, change:
Prerequisites
The following prerequisites should be installed before installing the Nvidia drivers:Close X Server
Before running the install, you should exit out of any X environment, such as Gnome, KDE or XFCE. To exit the X session, switch to a TTY console using Ctrl-Alt-F1 and then determine whether you are running lightdm or gdm by running:Install Drivers Only
To accommodate GL-accelerated rendering, OpenGL and GL Vendor
Neutral Dispatch (GLVND) are now required and should be installed
with the Nvidia drivers. OpenGL is an installation option in the
*.run type of drivers. In other types of the
drivers, OpenGL is enabled by default in most modern versions
(dated 2016 and later). GLVND can be installed using the
installer menus or via the --glvnd-glx-client command line
flag.*.run executables
provided by Nvidia.
To download only the drivers, navigate to http://www.nvidia.com/object/unix.html
and click the Latest Long Lived Branch version under the appropriate
CPU architecture. On the ensuing page, click Download and then click
Agree and Download on the page that follows.
The Unix drivers found in the link above are also compatible with all
Nvidia Tesla models.
lspci command
should give you that information:
Troubleshoot the Nvidia Installer
One common issue with installing the Nvidia driver is that it will fail out because the Nvidia driver taints the kernel. The issue is that the driver is not signed and the default install does not attempt to sign it, but the kernel is expecting a signed driver. If you encounter this error, you should re-run the install in expert mode:Other Reference Material
Nvidia has a large readme online at:x86 for version 375.26, the readme is online at:
Test the Nvidia Installation
After the Nvidia drivers are installed, you can test the installation by running the command:Multiple Driver Failure
If an error is returned, stating:1 or the version of the
Nvidia driver that you installed, for example .375.21.