Symptoms of the problem:
- RHEL 9
- You have installed the nvidia-driver packages and rebooted the machine.
nvidia-smi
returns the following error: https://forums.developer.nvidia.com/t/nvidia-smi-has-failed-because-it-couldn-t-communicate-with-the-nvidia-driver-after-updating-ubuntu-20-04/170985/2- sudo modprobe nvidia returns nothing
How to fix:sudo dkms remove nvidia/545.23.06 --all
- sudo dkms status to get the VERSION
- sudo dkms install nvidia/VERSION -k $(uname -r)
- sudo cp /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r).bak.$(date +%m-%d-%H%M%S).img
- sudo dracut -f -v
- sudo sync
- sudo reboot
nvidia-smi