Open pbronneberg opened 1 year ago
Verified to work on AlmaLinux 9.1:
PLAY [Install NVidia driver] ****************************************************************************************************************************
TASK [Gathering Facts] **********************************************************************************************************************************[WARNING]: Platform linux on host client-pc is using the discovered Python interpreter at /usr/libexec/platform-python, but future installation of
another Python interpreter could change this. See https://docs.ansible.com/ansible/2.9/reference_appendices/interpreter_discovery.html for more
information.
ok: [client-pc]
TASK [nvidia.nvidia_driver : unload nouveau] ************************************************************************************************************changed: [client-pc]
TASK [nvidia.nvidia_driver : ubuntu install tasks (canonical repos)] ************************************************************************************skipping: [client-pc]
TASK [nvidia.nvidia_driver : ubuntu install tasks (CUDA repo)] ******************************************************************************************skipping: [client-pc]
TASK [nvidia.nvidia_driver : redhat family install tasks] ***********************************************************************************************included: /home/pbronneberg/.ansible/roles/nvidia.nvidia_driver/tasks/install-redhat.yml for client-pc
TASK [nvidia.nvidia_driver : attempt to install kernel support packages for current version] ************************************************************changed: [client-pc]
TASK [nvidia.nvidia_driver : add epel repo gpg key] *****************************************************************************************************changed: [client-pc]
TASK [nvidia.nvidia_driver : add epel repo] *************************************************************************************************************changed: [client-pc]
TASK [nvidia.nvidia_driver : install dependencies] ******************************************************************************************************changed: [client-pc]
TASK [nvidia.nvidia_driver : blacklist nouveau] *********************************************************************************************************changed: [client-pc]
TASK [nvidia.nvidia_driver : add repo] ******************************************************************************************************************changed: [client-pc]
TASK [nvidia.nvidia_driver : install driver packages RHEL/CentOS 7 and older] ***************************************************************************skipping: [client-pc]
TASK [nvidia.nvidia_driver : install driver packages RHEL/CentOS 8 and newer] ***************************************************************************
changed: [client-pc]
TASK [nvidia.nvidia_driver : Set install_driver.changed var for RHEL 7/8] *******************************************************************************changed: [client-pc] => {
"msg": "Driver installed for RHEL"
}
TASK [nvidia.nvidia_driver : create persistenced override dir] ******************************************************************************************ok: [client-pc]
TASK [nvidia.nvidia_driver : configure persistenced service to turn on persistence mode] ****************************************************************ok: [client-pc]
TASK [nvidia.nvidia_driver : remove persistenced service override] **************************************************************************************skipping: [client-pc]
TASK [nvidia.nvidia_driver : enable persistenced] *******************************************************************************************************changed: [client-pc]
TASK [nvidia.nvidia_driver : set module parameters] *****************************************************************************************************changed: [client-pc]
TASK [nvidia.nvidia_driver : reboot after driver install] ***********************************************************************************************changed: [client-pc]
PLAY RECAP **********************************************************************************************************************************************client-pc : ok=16 changed=12 unreachable=0 failed=0 skipped=4 rescued=0 ignored=0
client system details:
uname -r
> 5.14.0-162.6.1.el9_1.x86_64
cat /etc/os-release
cat /etc/os-release
NAME="AlmaLinux"
VERSION="9.1 (Lime Lynx)"
ID="almalinux"
ID_LIKE="rhel centos fedora"
VERSION_ID="9.1"
PLATFORM_ID="platform:el9"
PRETTY_NAME="AlmaLinux 9.1 (Lime Lynx)"
ANSI_COLOR="0;34"
LOGO="fedora-logo-icon"
CPE_NAME="cpe:/o:almalinux:almalinux:9::baseos"
HOME_URL="https://almalinux.org/"
DOCUMENTATION_URL="https://wiki.almalinux.org/"
BUG_REPORT_URL="https://bugs.almalinux.org/"
ALMALINUX_MANTISBT_PROJECT="AlmaLinux-9"
ALMALINUX_MANTISBT_PROJECT_VERSION="9.1"
REDHAT_SUPPORT_PRODUCT="AlmaLinux"
REDHAT_SUPPORT_PRODUCT_VERSION="9.1"
After installation, nvidia-smi
returns the following:
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 525.60.13 Driver Version: 525.60.13 CUDA Version: 12.0 |
|-------------------------------+----------------------+----------------------+
| 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 T1200 La... On | 00000000:01:00.0 Off | N/A |
| N/A 41C P8 4W / N/A | 1MiB / 4096MiB | 0% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| No running processes found |
+-----------------------------------------------------------------------------+
Addresses #69