Install an NVIDIA graphics driver on a Linux VM

Restrictions and guidelines

Table-1 Driver version matching table (example)

Driver type

vGPU Software

vGPU Manager

VM driver (Linux)

VM driver (Windows)

Driver version

10.1

440.53

440.56

442.06

 

Procedure

  1. Execute the lspci command to view the vGPU loading state.

If the command output contains character string NVIDIA, the vGPU state is normal. If the command output does not contain character string NVIDIA, contact the technical support.

Figure-1 vGPU loading state

 

  1. Use FTP to upload the driver obtained from the NVIDIA website to the VM.

Figure-2 Uploading driver

 

  1. Install the driver on the VM:

Execute the following commands in sequence to finish the installation:

[root@localhost ~]# chmod +x NVIDIA-Linux-x86_64-440.56-grid.run

[root@localhost ~]# init 3

[root@localhost ~]# ./NVIDIA-Linux-x86_64-440.56-grid.run

Figure-3 Installation finished

 

If the following error occurs, perform the following tasks to finish the installation:

Figure-4 Installation error

 

  1. Execute the following commands:

[root@localhost ~]# sh NVIDIA-Linux-x86_64-440.56-grid.run -k $(uname -r)

Respond to the installer prompts as follows:

   Accept the EULA

   Say no to installing 32-bit binaries

   Say no to modifying the x.org file

  1. Verify that the result as shown in Figure-6 is returned.

Figure-5 Execution result

 

  1. After the installation, execute the nvidia-smi command to view vGPU information.

Then, the vGPUs can be used correctly.

Figure-6 Viewing vGPU information