首先,Grid驱动是随宿主机驱动一起下载的。目前能供个人激活使用的Grid驱动版本止步于17.5,对应的驱动版本号为550。而Grid17的宿主机驱动不支持不同虚拟机不同显存大小(Nvidia把它叫做vGPU Heterogeneous Mode),Grid18才支持。那宿主机装Grid18,虚拟机用Grid17.5就好了
直接./NVIDIA-Linux-x86_64-550.144.03-grid.run即可。下面是遇到的问题和解决方案
ERROR: Unable to find the development tool `cc` in your path; please make sure that you have the package ‘gcc’ installed. If gcc is installed on your system, then please check that `cc` is in your PATH.
apt install build-essential
ERROR: Unable to find the kernel source tree for the currently running kernel. Please make sure you have installed the kernel source files for your kernel and that they are properly configured; on Red Hat Linux systems, for example, be sure you have the 'kernel-source' or 'kernel-devel' RPM installed. If you know the correct kernel source files are installed, you may specify the kernel source path with the '--kernel-source-path' command line option.
root@Wentao-Studio:~# uname -a
Linux Wentao-Studio 6.12.48+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.48-1 (2025-09-20) x86_64 GNU/Linux
root@Wentao-Studio:~# apt search linux-headers-6.12.48
linux-headers-6.12.48+deb13-amd64/stable-security 6.12.48-1 amd64
Header files for Linux 6.12.48+deb13-amd64
root@Wentao-Studio:~# apt install linux-headers-6.12.48+deb13-amd64
WARNING: nvidia-installer was forced to guess the X library path '/usr/lib' and X module path '/usr/lib/xorg/modules'; these paths were not queryable from the system. If X fails to find the NVIDIA X driver module, please install the `pkg-config` utility and the X.Org SDK/development package for your distribution and reinstall the driver.