材料
- ESXI8.0 后台
- SSH工具
前置操作
- 把Esxi进入维护模式
- 打开SSH选项
上传VGPU驱动文件到数据存储目录:
到这一步,就可以进行驱动安装,我们回来ssh这一步。
使用SSH工具连接
我这里选择的是
FinalShell
,它自带了scp,可以很方便用目录显示显卡驱动文件
我们切换到数据存储目录
cd /vmfs/volumes/
显示如下:
[root@localhost:/vmfs/volumes] ll
total 3588
drwxr-xr-x 1 root root 512 Aug 4 02:49 .
drwxr-xr-x 1 root root 512 Aug 3 02:47 ..
lrwxr-xr-x 1 root root 35 Aug 4 02:49 5_46_v1 -> 688c7a56-e6fc1059-890f-189ba582a3dc
drwxr-xr-t 1 root root 77824 Aug 3 09:41 688c7a56-e6fc1059-890f-189ba582a3dc
drwxr-xr-t 1 root root 77824 Aug 1 20:01 688d1c24-f69e74a9-3659-189ba582a3dc
drwxr-xr-t 1 root root 73728 Aug 3 10:13 688d1c25-57a63941-3b2b-189ba582a3dc
lrwxr-xr-x 1 root root 35 Aug 4 02:49 BOOTBANK1 -> c07a5279-23470657-7ba2-752e0ef3faad
lrwxr-xr-x 1 root root 35 Aug 4 02:49 BOOTBANK2 -> aeeabd2d-ff470bb3-5f9d-082e93732350
lrwxr-xr-x 1 root root 35 Aug 4 02:49 OSDATA-688d1c24-f69e74a9-3659-189ba582a3dc -> 688d1c24-f69e74a9-3659-189ba582a3dc
drwxr-xr-x 1 root root 8 Jan 1 1970 aeeabd2d-ff470bb3-5f9d-082e93732350
drwxr-xr-x 1 root root 8 Jan 1 1970 c07a5279-23470657-7ba2-752e0ef3faad
lrwxr-xr-x 1 root root 35 Aug 4 02:49 datastore1 -> 688d1c25-57a63941-3b2b-189ba582a3dc
[root@localhost:/vmfs/volumes]
那么我们知道,5_46_v1
是我们的数据存储盘,我们直接进入
# 进入数据存储目录
cd 5_46_v1/
# 接着进入NVIDIA_VGPU目录
cd NVIDIA_VGPU/
目录讲解
- Guest_Drivers 客户机驱动,里面的主机驱动
- Host_Drivers 宿主机驱动,也就是我们的Esxi驱动
接着我们切换到Host_Drivers
目录,进行安装
cd Host_Drivers/
# 请注意,按照正确的文件名进行安装,先安装 NVD-VGPU 开头的
esxcli software vib install -d /vmfs/volumes/5_46_v1/NVIDIA_VGPU/Host_Drivers/NVD-VGPU-800_570.172.07-1OEM.800.1.0.20613240.zip
# 然后安装 nvd-gpu-mgmt-daemon 开头的
esxcli software vib install -d /vmfs/volumes/5_46_v1/NVIDIA_VGPU/Host_Drivers/nvd-gpu-mgmt-daemon_570.133.10-0.0.0000_24654206.zip
安装完成之后,我们就可以reboot
重启机器
nvdia-smi
输出如下:
[root@localhost:~] nvidia-smi
Mon Aug 4 03:15:41 2025
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 570.172.07 Driver Version: 570.172.07 CUDA Version: N/A |
|-----------------------------------------+------------------------+----------------------+
| GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|=========================================+========================+======================|
| 0 NVIDIA RTX 6000 Ada Gene... On | 00000000:16:00.0 Off | Off |
| 30% 42C P8 27W / 300W | 0MiB / 49140MiB | 0% Default |
| | | N/A |
+-----------------------------------------+------------------------+----------------------+
| 1 NVIDIA RTX 6000 Ada Gene... On | 00000000:98:00.0 Off | Off |
| 30% 44C P8 32W / 300W | 0MiB / 49140MiB | 0% Default |
| | | N/A |
+-----------------------------------------+------------------------+----------------------+
+-----------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=========================================================================================|
| No running processes found |
+-----------------------------------------------------------------------------------------+
[root@localhost:~]
提示
- 有些esxi版本是经过魔改的,所以会出现显卡驱动装上了,但是显卡无法识别的情况
- 所以一定要使用官方的发布版本,如果不行,只能是切换esxi版本,继续安装驱动