Linux虚拟机安装NVIDIA显卡驱动

说明

图-1 C类型Vgpu(示例)

 

表-1 驱动版本对应(示例)

驱动类型

vGPU Software

vGPU Manager

虚拟机驱动(Linux

虚拟机驱动(Windows

驱动版本

10.1

440.53

440.56

442.06

 

驱动程序安装步骤

  1. 查看vGPU加载情况,命令:lspci;查询结果中有NVIDIA字样为正常;否则为异常,请联系技术支持处理。

图-2 vGPU加载情况

 

  1. 将从NVIDIA官网获取的驱动程序通过ftp方式上传至虚拟机。

图-3 上传驱动程序

 

  1. 在虚拟机中安装驱动程序。

[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

图-4 安装完成

 

图-5 安装报错

 

  1. 执行如下命令。

[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. 返回执行结果,如下图所示。

图-6 执行结果

 

  1. 完成安装后,执行命令:nvidia-smi,查看vGPU的信息,此时vGPU即可正常使用。

图-7 查看信息