页面历史记录
本文解决TrueNAS 删除 显卡驱动 & 安装vGPU 驱动 & 安装指定版本Linux驱动
删除驱动
使用 dpkg -l | grep nvidia 查看需要删除的nvidia 显卡软件, 使用 dpkg --purge 来删除
Update:
TrueNAS-SCALE-24.10.* 之后,TrueNas不在包含Nvidia 驱动,而是通过网络的形式自动安装
最终 只保留以下软件:
代码块 | ||
---|---|---|
| ||
dpkg -l | grep nvidia root@XIMCloudNAS[~]# dpkg -l | grep nvidia ii libnvidia-container-tools 1.13.4-1 amd64 NVIDIA container runtime library (command-line tools) ii libnvidia-container1:amd64 1.13.4-1 amd64 NVIDIA container runtime library ii nvidia-container-runtime 3.13.0-1 all NVIDIA container runtime ii nvidia-container-toolkit 1.13.4-1 amd64 NVIDIA Container toolkit ii nvidia-container-toolkit-base 1.13.4-1 amd64 NVIDIA Container Toolkit Base |
配置 apt 代理
在 TrueNAS-SCALE-24.* 之前 使用:配置apt代理用于加速下载
代码块 | ||
---|---|---|
| ||
chmod +x /usr/bin/apt apt-get apt-key
vim /etc/apt/apt.conf.d/proxy.conf
Acquire::http::Proxy "http://192.168.5.1:1088/";
Acquire::https::Proxy "http://192.168.5.1:1088/"; |
在 TrueNAS-SCALE-24.* 之前打开:
代码块 |
---|
chmod +x /usr/bin/apt apt-get apt-key |
在 TrueNAS-SCALE-24.10.* 之后 及之后 使用:
代码块 | ||
---|---|---|
| ||
install-dev-tools |
安装vGPU 驱动
下载地址:Nvidia vGPU 驱动
代码块 | ||
---|---|---|
| ||
./NVIDIA-Linux-x86_64-535.161.07-grid.run --tmpdir /tmp |
安装完毕通过命令 nvidia-smi 确认
配置gridd服务
代码块 | ||
---|---|---|
| ||
cp /etc/nvidia/gridd.conf.template /etc/nvidia/gridd.conf vim /etc/nvidia/gridd.conf |
代码块 | ||
---|---|---|
| ||
# /etc/nvidia/gridd.conf.template - Configuration file for vGPU Licensing Daemon # This is a template for the configuration file for vGPU Licensing Daemon. # For details on the file format, please refer to the nvidia-gridd(1) # man page. # Description: Set License Server Address # Data type: string # Format: "<address>" ServerAddress=nvidia-dls address # Description: Set License Server port number # Data type: integer # Format: <port>, default is 7070 ServerPort=443 |
重启 host 并通过 nvidia-smi -q 确认 license,有过期时间即可