PowerEdge: Red Hat Enterprise Linux에서 NVIDIA 드라이버를 설치하는 방법
Summary: 이 문서에서는 "보안 부팅"이 비활성화된 Red Hat Enterprise Linux에서 DKMS(Dynamic Kernel Module Support)를 사용하여 NVIDIA 드라이버를 컴파일하고 설치하는 방법에 대해 설명합니다.
This article applies to
This article does not apply to
This article is not tied to any specific product.
Not all product versions are identified in this article.
Instructions
이 문서에서는 "보안 부팅"이 비활성화된 Red Hat Enterprise Linux에서 DKMS를 사용하여 NVIDIA 드라이버를 컴파일하고 설치하는 방법에 대해 설명합니다.
시작하기 전에 BIOS에서 보안 부팅 옵션이 비활성화되어 있는지 확인하십시오. 이는 이 설치 옵션이 DKMS를 사용하여 현재 실행 중인 커널의 소스 코드에서 NVIDIA 드라이버를 컴파일하기 때문입니다. 컴파일된 드라이버에 대한 공급업체 서명은 없습니다. 보안 부팅을 사용하도록 설정하면 자체 컴파일된 드라이버가 로드되지 않고 오류가 발생합니다 Required key not available. 명령으로 현재 상태 확인 mokutil --sb-state Red Hat Enterprise Linux에서 서버 POST 중에 F2 키를 눌러 BIOS에서 변경합니다.
보안 부팅이 필요하거나 미리 컴파일된 드라이버를 선호하는 경우 설치하려면 다음 문서를 참조하세요. 보안 부팅이 활성화된 상태에서 Red Hat Enterprise Linux에서 NVIDIA 드라이버를 온라인으로 설치하는 방법
- NVIDIA 사이트에서 필요한 드라이버를 다운로드합니다.
- 올바른 버전의 Red Hat Enterprise Linux(예: Red Hat Enterprise Linux 8)를 선택합니다.
- 설치하려는 CUDA 툴킷에 필요한 올바른 CUDA(Compute Unified Device Architecture) 버전(예: 12.2)을 선택합니다.
- 다운로드 패키지는 RPM입니다(예: nvidia-driver-local-repo-rhel8-535.54.03-1.0-1.x86_64.rpm).
- RPM을 설치합니다. 그러면 로컬 리포지토리가 생성됩니다.
[root@rhel87 ~]# ls anaconda-ks.cfg nvidia-driver-local-repo-rhel8-535.54.03-1.0-1.x86_64.rpm [root@rhel87 ~]# yum localinstall ./nvidia-driver-local-repo-rhel8-535.54.03-1.0-1.x86_64.rpm ...output skipped... [root@rhel87 ~]# yum repolist Updating Subscription Management repositories. Unable to read consumer identity This system is not registered with an entitlement server. You can use subscription-manager to register. repo id repo name my-rhel-87-AppStream-iso my RHEL 87 AppStream iso my-rhel-87-BaseOS-iso my RHEL 87 BaseOS iso my-rhel-extra-rpms my RHEL extra rpms nvidia-driver-local-rhel8-535.54.03 nvidia-driver-local-rhel8-535.54.03 [root@rhel87 ~]#
- 설치하다 DKMS입니다. DKMS는 Red Hat Enterprise Linux에 없습니다. EPEL(Extra Packages for Enterprise Linux)
에서 사용할 수 있습니다. DKMS에 대한 자세한 내용은 Red Hat 문서 Red Hat Enterprise Linux에서 DKMS가 제공됩니까?를 참조하십시오.
[root@rhel87 ~]# yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm [root@rhel87 ~]# yum install dkms
- 필요한 경우 EPEL을 비활성화 하거나 제거할 수 있습니다.
# to disable epel, edit the following configuration and change to "enabled=0" [root@rhel87 ~]# vi /etc/yum.repos.d/epel.repo # to remove the epel [root@rhel87 ~]# yum remove epel-release
- 컴파일 도구 및 커널 헤더를 설치합니다. Red Hat 서브스크립션이 연결되어 있는지 확인합니다.
[root@rhel87 ~]# yum groupinstall "Development Tools" [root@rhel87 ~]# yum install kernel-devel-$(uname -r)
- cuda-driver를 설치합니다.
[root@rhel87 ~]# yum install cuda-driver
- 드라이버가 성공적으로 설치되었는지 확인합니다.
[root@rhel87 ~]# dkms status
nvidia/535.54.03, 4.18.0-425.3.1.el8.x86_64, x86_64: installed
[root@rhel87 ~]#
- 위에서 지정한 상태가 설치되지 않고 대신 추가됨인 경우 빌드할 수 있습니다.
[root@rhel87 ~]# dkms build nvidia/535.54.03
- 지정된 상태가 구축된 경우 설치할 수 있습니다.
[root@rhel87 ~]# dkms install nvidia/535.54.03
- 빌드 또는 설치 중 상태가 실패한 경우 다음 경로에서 로그를 검토합니다.
[root@rhel87 ~]# ls /var/lib/dkms/nvidia/535.54.03/4.18.0-425.3.1.el8.x86_64/x86_64/log/make.log [root@rhel87 ~]#
- NVIDIA 드라이버를 설치한 후 서버를 재부팅합니다.
[root@rhel87 ~]# systemctl reboot
- 드라이버가 가동되어 실행 중인지 확인합니다.
[root@rhel87 ~]# lsmod | grep nvidia nvidia_drm 73728 0 nvidia_modeset 1306624 1 nvidia_drm nvidia_uvm 1523712 0 nvidia 56426496 2 nvidia_uvm,nvidia_modeset drm_kms_helper 176128 4 qxl,nvidia_drm drm 565248 7 drm_kms_helper,qxl,nvidia,drm_ttm_helper,nvidia_drm,ttm [root@rhel87 ~]# nvidia-smi Tue Jul 25 12:00:29 2023 +---------------------------------------------------------------------------------------+ | NVIDIA-SMI 535.54.03 Driver Version: 535.54.03 CUDA Version: 12.2 | |-----------------------------------------+----------------------+----------------------+ | 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 Tesla P100-PCIE-12GB Off | 00000000:07:00.0 Off | 0 | | N/A 33C P0 29W / 250W | 0MiB / 12288MiB | 2% Default | | | | N/A | +-----------------------------------------+----------------------+----------------------+ +---------------------------------------------------------------------------------------+ | Processes: | | GPU GI CI PID Type Process name GPU Memory | | ID ID Usage | |=======================================================================================| | No running processes found | +---------------------------------------------------------------------------------------+ [root@rhel87 ~]# modinfo nvidia filename: /lib/modules/4.18.0-425.3.1.el8.x86_64/extra/nvidia.ko.xz firmware: nvidia/535.54.03/gsp_tu10x.bin firmware: nvidia/535.54.03/gsp_ga10x.bin alias: char-major-195-* version: 535.54.03 supported: external license: NVIDIA rhelversion: 8.7 srcversion: EA9C7EF32617E104C8240C4
문제가 있는 경우 다음 로그를 수집하고 Dell 지원에 문의하십시오.
sosreport- 위에서 언급 한 로그 파일은 빌드되거나 드라이버 빌드가 실패한 경우 만듭니다.
- 모두
/var/log/nvidia-installer.log또는 설치하는 동안 출력에 언급된 로그
알아야 할 기타 정보:
- Red Hat Enterprise Linux를 설치하고 graphical.target으로 부팅한 경우 재부팅 후 검은색 화면이 표시될 수 있습니다. 해결 방법은 X11 폴더에서 /etc/X11/xorg.conf.d/10-nvidia.conf 를 이동하고 서버를 재부팅하는 것입니다.
- graphical.target을 사용하여 KVM에서 VM으로 GPU를 패스스루하려는 경우 실패합니다. 해결책은 하이퍼바이저 Red Hat Enterprise Linux를 multi-user.target으로 부팅하는 것입니다. graphical.target은 VM으로 전달하기 전에 NVIDIA 드라이버가 언로드되지 않도록 하기 때문입니다.
Affected Products
Red Hat Enterprise Linux Version 7, Red Hat Enterprise Linux Version 9, Red Hat Enterprise Linux Version 8Products
DSS 8440, Poweredge C4140, PowerEdge C6525, PowerEdge R640, PowerEdge R650, PowerEdge R6515, PowerEdge R6525, PowerEdge R740, PowerEdge R740XD, PowerEdge R7425, PowerEdge R750, PowerEdge R750XA, PowerEdge R7515, PowerEdge R7525, PowerEdge R840
, PowerEdge R940xa, PowerEdge T550, PowerEdge T640, PowerEdge XE2420, PowerEdge XE7420, PowerEdge XE9680
...
Article Properties
Article Number: 000216077
Article Type: How To
Last Modified: 06 Dec 2024
Version: 5
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.