Hello everyone!
I have a requirement to install driver for NVIDIA Quadro P2000 in Real-time RHEL version 7.7 or above.
As per the Installation Guide for RHEL Real time 7, Section 2.4. “Post-Installation Instructions”, examples of third party drivers are provided (including Nvidia Graphics driver), which do not currently have a custom build for Red Hat Enterprise Linux for Real Time.
Link: Installation Guide Red Hat Enterprise Linux for Real Time 7 | Red Hat Customer Portal
Are Nvidia drivers supporting real-time RHEL available for any versions which can be installed directly?
If not, what is the procedure to build/deploy Nvidia driver to support for the said configuration?
Any support will be really helpful. Thank You.
I have not yet exhaustively tested it on multiple kernel updates, but here is what worked for me today:
Not certain if the first install below is needed, since PREEMPT_RT can’t use DKMS. I started a root shell, instead of using individual sudo commands.
# yum install dkms kernel-devel libglvnd-devel libva-utils libva-vdpau-driver vdpauinfo
# yum install kernel-rt-devel
Need to disable the nouveau driver.
vi /etc/modprobe.d/nouveau.conf
blacklist nouveau
options nouveau modeset=0
Add these parameters to the line GRUB_CMDLINE_LINUX=
vi /etc/default/grub
rd.driver.blacklist=nouveau modprobe.blacklist=nouveau nvidia-drm.modeset=1
Rebuild the grub.cfg file.
# grub2-mkconfig -o /boot/efi/EFI/redhat/grub.cfg
Prep the system, install the driver, and then restore graphical mode.
# systemctl isolate multi-user.target
# modprobe -r nvidia_drm
# modprobe -r nvidia
# IGNORE_PREEMPT_RT_PRESENCE=1 bash ./NVIDIA-Linux-x86_64-*.run -s --tmpdir /usr/local/src
# systemctl isolate graphical.target
If this is your initial switch to the NVIDIA driver, you need to rebuild initramfs:
# mv /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r)-nouveau.img
# dracut /boot/initramfs-$(uname -r).img $(uname -r)