Skip to main content

Nvidia Driver Kurulumu

1. Overview

This document describes Nvidia driver installation steps for the Redhat / Centos / AWS Linux servers. Before you start, you need to check your Nvidia Hardware

Run the following command:

lshw -numeric -C display

The following output should be displayed.

WARNING: you should run this program as super-user.
*-display:0
description: VGA compatible controller
product: GD 5446 [1013:B8]
vendor: Cirrus Logic [1013]
physical id: 2
bus info: pci@0000:00:02.0
version: 00
width: 32 bits
clock: 33MHz
capabilities: vga_controller rom
configuration: driver=cirrus latency=0
resources: irq:0 memory:90000000-91ffffff memory:96004000-96004fff
*-display:1
description: VGA compatible controller
product: GM204GL [Tesla M60] [10DE:13F2]
vendor: NVIDIA Corporation [10DE]
physical id: 1e
bus info: pci@0000:00:1e.0
version: a1
width: 64 bits
clock: 33MHz
capabilities: vga_controller bus_master cap_list
configuration: driver=nouveau latency=0
resources: irq:79 memory:94000000-94ffffff memory:80000000-8fffffff memory:92000000-93ffffff ioport:c100(size=128)
WARNING: output may be incomplete or inaccurate, you should run this program as super-user.

You should see the product (the product may be different) and the driver. Then install the NVIDIA driver and disable the Nouveau driver. Your Nvidia GPU card may differ from Tesla M60, like Tesla P100, V100 etc.

product: GM204GL [Tesla M60] [10DE:13F2]configuration: driver=nouveau latency=0

Nvidia Driver Download the Nvidia driver package from nvidia.com using search criteria based on your Nvidia card model and Linux operating system.

https://www.nvidia.com/en-us/drivers/

2. Pre-installation Requirements

yum groupinstall "Development Tools"
yum install kernel-devel epel-release
yum install dkms

Restart Server

Restart the server for kernel changes. Disable Nouveau Driver Edit [ /etc/default/grub ] file with your favourite editor and add the following line:

GRUB_CMDLINE_LINUX="nouveau.modeset=0"

Run the following command to update the grub boot conf:

Your kernel version can be different.

The output should look like the following.

grub2-mkconfig -o /boot/grub2/grub.cfg

Run the following command to update the grub boot conf:

Generating grub configuration file ...
Found linux image: /boot/vmlinuz-3.10.0-1160.66.1.el7.x86_64
Found initrd image: /boot/initramfs-3.10.0-1160.66.1.el7.x86_64.img
Found linux image: /boot/vmlinuz-3.10.0-1160.59.1.el7.x86_64
Found initrd image: /boot/initramfs-3.10.0-1160.59.1.el7.x86_64.img
Found linux image: /boot/vmlinuz-3.10.0-1160.45.1.el7.x86_64
Found initrd image: /boot/initramfs-3.10.0-1160.45.1.el7.x86_64.img
Found linux image: /boot/vmlinuz-0-rescue-754f8a1ad2654504b10cacfb2e9d5eb0
Found initrd image: /boot/initramfs-0-rescue-754f8a1ad2654504b10cacfb2e9d5eb0.img
Found linux image: /boot/vmlinuz-0-rescue-b53ff59321fedc6a481aabc5ff65ced0
Found initrd image: /boot/initramfs-0-rescue-b53ff59321fedc6a481aabc5ff65ced0.img
done

3. Restart Server

Restart server for grub changes Check your Driver Configuration again with lshw command nouveau driver should be gone

lshw -numeric -C display
*-display:0
description: VGA compatible controller
product: GD 5446 [1013:B8]
vendor: Cirrus Logic [1013]
physical id: 2
bus info: pci@0000:00:02.0
version: 00
width: 32 bits
clock: 33MHz
capabilities: vga_controller rom
configuration: driver=cirrus latency=0
resources: irq:0 memory:90000000-91ffffff memory:96004000-96004fff
*-display:1 UNCLAIMED
description: VGA compatible controller
product: GM204GL [Tesla M60] [10DE:13F2]
vendor: NVIDIA Corporation [10DE]
physical id: 1e
bus info: pci@0000:00:1e.0
version: a1
width: 64 bits
clock: 33MHz
capabilities: vga_controller cap_list
configuration: latency=0
resources: memory:94000000-94ffffff memory:80000000-8fffffff memory:92000000-93ffffff ioport:c100(size=128)

4. Check the Installation

Check Installation with the command below

nvidia-smi -q | head

Also lshw -numeric -C display should be shown the Nvidia driver