戴尔 Precision3240 centos8 安装nvidia显卡驱动
作者:互联网
1.机器详细配置
https://item.jd.com/10033480986333.html 戴尔(DELL)Precision3240 至强W-1250 6核 主频3.3GHz 64G内存 512G固态 P620显卡 2G独显 处理器 Intel(R) Xeon(R) W-1250 CPU @ 3.30GHz 3.31 GHz 机带 RAM 64.0 GB (63.7 GB 可用) Windows 10 专业版
2.安装CentOS strame 8系统 桌面版
由于CentOS 7 内核版本太低,机器CPU版本集显太高,无法安装CentOS 7或以前的系统,必须安装 CentOS strame 8/9;由于CentOS strame 9 文档、兼容等各方面还不够成熟,所以选择CentOS strame 8。
3.制作装系统U盘
参考:https://www.cnblogs.com/chenjw-note/p/16363513.html centos下载地址:https://www.centos.org/download/
4.确认内核版本和发行版本,确认显卡型号
[root@localhost:192.168.10.142 data]# uname -a Linux localhost.localdomain 4.18.0-394.el8.x86_64 #1 SMP Tue May 31 16:19:11 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux [root@localhost:192.168.10.142 data]# cat /etc/redhat-release CentOS Stream release 8 [root@localhost:192.168.10.142 data]# lspci | grep -i nvidia 01:00.0 VGA compatible controller: NVIDIA Corporation TU117GL [T600] (rev a1) 01:00.1 Audio device: NVIDIA Corporation Device 10fa (rev a1)
5.从NVIDIA官网下载对应版本驱动
https://www.nvidia.cn/Download/index.aspx?lang=cn
6.禁用nouveau驱动
# 检查是否开启nouveau,有信息输出说明是开启的 [root@localhost:192.168.10.142 data]# lsmod | grep nouveau nouveau 2215936 2 mxm_wmi 16384 1 nouveau i2c_algo_bit 16384 2 i915,nouveau drm_kms_helper 217088 2 i915,nouveau ttm 110592 1 nouveau drm 524288 15 drm_kms_helper,i915,ttm,nouveau wmi 32768 3 wmi_bmof,mxm_wmi,nouveau video 45056 3 thinkpad_acpi,i915,nouveau
配置禁用:
(1)在grub 启动中禁用nouveau vim /etc/default/grub "GRUB_CMDLINE_LINUX" 中添加 rd.driver.blacklist=nouveau nouveau.modeset=0 然后更新grub:grub2-mkconfig -o /boot/grub2/grub.cfg (2)在/usr/lib/modprobe.d/dist-blacklist.conf 或/etc/modprobe.d/blacklist.conf中末尾添加blacklist。如下是/usr/lib/modprobe.d/dist-blacklist.conf的原有内容 vim /usr/lib/modprobe.d/dist-blacklist.conf # # Listing a module here prevents the hotplug scripts from loading it. # Usually that'd be so that some other driver will bind it instead, # no matter which driver happens to get probed first. Sometimes user # mode tools can also control driver binding. # # Syntax: see modprobe.conf(5). # # watchdog drivers blacklist i8xx_tco # framebuffer drivers blacklist aty128fb blacklist atyfb blacklist radeonfb blacklist i810fb blacklist cirrusfb blacklist intelfb blacklist kyrofb blacklist i2c-matroxfb blacklist hgafb blacklist nvidiafb 在末尾添加: blacklist nouveau 保存 (3)备份 initramfs nouveau image镜像 mv /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r).img.bak (4)使用 dracut重新建立 initramfs dracut -v /boot/initramfs-$(uname -r).img $(uname -r) (5)reboot 重启,然后lsmod | grep nouveau 确认nouveau没有被加载
7.设置BIOS
关闭 Secure Boot 和 PTT
设置硬盘接口
开启虚拟化
保存启动
8.开始安装
# 添加文件执行权限 chmod 777 NVIDIA-Linux-x86_64-418.113.run # 以root 运行,进入命令行模式 init 3 ./NVIDIA-Linux-x86_64-515.48.07.run
验证
[root@localhost:192.168.10.142 ~]# nvidia-smi Mon Jun 13 11:59:01 2022 +-----------------------------------------------------------------------------+ | NVIDIA-SMI 515.48.07 Driver Version: 515.48.07 CUDA Version: 11.7 | |-------------------------------+----------------------+----------------------+ | 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 T600 Off | 00000000:01:00.0 On | N/A | | 38% 49C P8 N/A / 41W | 101MiB / 4096MiB | 11% Default | | | | N/A | +-------------------------------+----------------------+----------------------+ +-----------------------------------------------------------------------------+ | Processes: | | GPU GI CI PID Type Process name GPU Memory | | ID ID Usage | |=============================================================================| | 0 N/A N/A 7023 G /usr/libexec/Xorg 74MiB | | 0 N/A N/A 7220 G /usr/bin/gnome-shell 24MiB | +-----------------------------------------------------------------------------+
9.重启,修改BIOS为独显方式,不然使用AUTO或者集显无法显示的【后面即使改回集显,接回集显接口,也是无法显示了,因为它默认是以独显为显示方式了】
10.DP线接到独显的接口
11.启动验证
done
参考地址:https://blog.csdn.net/robator/article/details/120497644
标签:nouveau,CentOS,nvidia,blacklist,64,Precision3240,NVIDIA,显卡,root 来源: https://www.cnblogs.com/chenjw-note/p/16370408.html