Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

(NOTE: if you follow this procedure, you will introduce a dependency where the kernel and nvidia driver versions must match.  This means a centrally-managed system can no longer perform automatic kernel updates without breaking the nvidia driver.  Because the OS-provided nouveau driver is no longer in use, you will then become responsible for managing kernel updates on your host to satisfy cybersecurity requirements.)

NOTE: There is newer documentation here: nvidia-automatic-builds-via-dkms if one wants to have this just work without worrying about the drive/kernel match. That documentation, as the one below, are for local admins. It builds the kernel module on the installation of the newer kernel for you.

1. Append

 

1. append this to the kernel line in /etc/grub.conf

 

...

 blacklist=nouveau

...

make Make sure you are editing the correct kernel line. if  If you are not sure, you can add it to all the kernel lines.

 

2. Also, add the following to /etc/modprobe.d/blacklist.conf

 

...

 blacklist nouveau

   options nouveau modeset=0

...

 

3. rebuild Rebuild initial ram disk. eg For example, if you your kernel is 2.6.32-573.22.1.el6.x86_64, then do this:

 

  # dracut -f /boot/initramfs-2.6.32-573.22.1.el6.x86_64.img 2.6.32-573.22.1.el6.x86_64 -v

That will built build and put a new initial ram disk in /boot/.

Then reboot. You  You can do run "/sbin/lsmod | grep nouveau" to verify it worked.

This process worked for me on host tid-pc80031 on 8-Apr-2016.
Service now ticket INC0089358.

If you want to see all the hosts that have blacklist=nouveau appended to the running kernel (ie, /proc/cmdline), then you can look in system.info:

 

$ grep -l blacklist=nouveau /afs/slac/g/scs/systems/system.info/*/cmdline

Or if you want to see all the hosts that have the nouveau module loaded, you can look in system.info like this:

$ grep -l nouveau /afs/slac/g/scs/systems/system.info/*/lsmod

 

 

 

4. To install and activate the nvidia driver (stop X server, install driver, start X server):
Make sure no one is logged into onto the console or else you will kill their session. The directory referenced below has a readme file with a URL for downloads. Check the URL in case there is a more recent driver.

sudo init 3

cd ~ksa/afs/slac/package/nvidia_graphics/desktop/
sudo sh ./NVIDIA-Linux-x86_64-340.96.run
sudo init 5 5

 

5. Add taylor option linux_kernel=leavealone to your system

To prevent your system from automatically rebooting into new kernels, add the following line to the /etc/taylor.opts file

linux_kernel=leavealone

The new kernel packages will still be installed. You can change the default kernel yourself via /etc/grub.conf. You will have to rerun the NVIDIA installer any time you change the kernel version.

 

 

...

 

Note: it may be possible to use DKMS with the nvidia module so it gets built automatically.  SCS has not tested this.  See this README which suggests that DKMS could be used:

ftp://download.nvidia.com/XFree86/Linux-x86/381.09/README/installdriver.html

 

-- ksa - 2016-04-08

...

 

Info

Content by Label
showLabelsfalse
max5
spacesSCSPub
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel = "kb-how-to-article" and type = "page" and space = "SCSPub"
labelskb-how-to-article

...