Fedora 24 Install Crashing: Needs nvidia-drm

Hey guys,

I’ve just tried (multiple times) to get the nvidia drivers up and running, but I’m constantly failing. Following are the stats (system is this one: http://www.aorus.com/Product/Spec/X7 , dual GTX 765M):

[tweichart@tweichart ~] cat /etc/redhat-release Fedora release 24 (Twenty Four) [tweichart@tweichart ~] uname -r
4.8.8-200.fc24.x86_64
[tweichart@tweichart ~]$ /sbin/lspci | grep -e VGA
01:00.0 VGA compatible controller: NVIDIA Corporation GK106M [GeForce GTX 765M] (rev a1)
I’ve tried to install the 375.10, 375.10, 367.57 and the 364.19 drivers from the official site. This works fine, blacklisting/uninstalling nouveau stuff and bootet to runlevel 3 (actually followed along this guide: https://www.if-not-true-then-false.co… ). There I execute the installer, which finally fails with the statement:

[…]
-> Driver file installation is complete.
-> Installing DKMS kernel module:
-> done.
ERROR: Unable to load the ‘nvidia-drm’ kernel module.
ERROR: Installation has failed. Please see the file ‘/var/log/nvidia-installer.log’ for details. You may find suggestions on fixing installation problems in the README available on the Linux driver download page at www.nvidia.com.

This causes the installer to stop, leaving me with nothing usefull to be installed. I did search a lot, though I can’t find any hint on what to do now. I’ve also tried to simply install it from the RPM Fusion Repo, though this just brought me to a black screen after booting (did not investigate further on that one).

Anybody got any ideas?

Thanks in advance.

nvidia-installer.log (for the installation of 367.57, others are the same):

nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Sun Nov 20 19:23:35 2016
installer version: 367.57

PATH: /usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin

nvidia-installer command line:
    ./nvidia-installer

Using: nvidia-installer ncurses v6 user interface
-> Detected 8 CPUs online; setting concurrency level to 8.
-> Tagging shared libraries with chcon -t textrel_shlib_t.
-> License accepted.
-> Installing NVIDIA driver version 367.57.
-> Would you like to register the kernel module sources with DKMS? This will allow DKMS to automatically build a new module, if you install a different kernel later. (Answer: Yes)
-> Installing both new and classic TLS OpenGL libraries.
-> Installing classic TLS 32bit OpenGL libraries.
-> Install NVIDIA's 32-bit compatibility libraries? (Answer: Yes)
-> Will install GLVND GLX client libraries.
Looking for install checker script at ./libglvnd_install_checker/check-libglvnd-install.sh
   executing: '/bin/sh ./libglvnd_install_checker/check-libglvnd-install.sh'...
   Checking for libglvnd installation.
   Checking libGLdispatch...
   Can't load library libGLdispatch.so.0: libGLdispatch.so.0: cannot open shared object file: No such file or directory
Will install libglvnd libraries.
-> Searching for conflicting files:
-> done.
-> Installing 'NVIDIA Accelerated Graphics Driver for Linux-x86_64' (367.57):
   executing: '/usr/bin/chcon -t textrel_shlib_t /usr/lib64/libnvidia-glcore.so.367.57'...
   executing: '/usr/bin/chcon -t textrel_shlib_t /usr/lib64/xorg/modules/extensions/libglx.so.367.57'...
   executing: '/usr/bin/chcon -t textrel_shlib_t /usr/lib64/libnvidia-tls.so.367.57'...
   executing: '/usr/bin/chcon -t textrel_shlib_t /usr/lib64/tls/libnvidia-tls.so.367.57'...
   executing: '/usr/bin/chcon -t textrel_shlib_t /usr/lib64/libGLX_nvidia.so.367.57'...
   executing: '/usr/bin/chcon -t textrel_shlib_t /usr/lib64/libOpenGL.so.0'...
   executing: '/usr/bin/chcon -t textrel_shlib_t /usr/lib64/libGLESv1_CM.so.1'...
   executing: '/usr/bin/chcon -t textrel_shlib_t /usr/lib64/libGLESv2.so.2'...
   executing: '/usr/bin/chcon -t textrel_shlib_t /usr/lib64/libGLdispatch.so.0'...
   executing: '/usr/bin/chcon -t textrel_shlib_t /usr/lib64/libGLX.so.0'...
   executing: '/usr/bin/chcon -t textrel_shlib_t /usr/lib64/libGL.so.1.0.0'...
   executing: '/usr/bin/chcon -t textrel_shlib_t /usr/lib64/libEGL.so.1'...
   executing: '/usr/bin/chcon -t textrel_shlib_t /usr/lib64/xorg/modules/drivers/nvidia_drv.so'...
   executing: '/usr/bin/chcon -t textrel_shlib_t /usr/lib64/xorg/modules/libnvidia-wfb.so.367.57'...
   executing: '/usr/bin/chcon -t textrel_shlib_t /usr/lib64/libnvidia-gtk2.so.367.57'...
   executing: '/usr/bin/chcon -t textrel_shlib_t /usr/lib64/libnvidia-gtk3.so.367.57'...
   executing: '/usr/bin/chcon -t textrel_shlib_t /usr/lib64/libnvidia-cfg.so.367.57'...
   executing: '/usr/bin/chcon -t textrel_shlib_t /usr/lib64/libnvidia-ml.so.367.57'...
   executing: '/usr/bin/chcon -t textrel_shlib_t /usr/lib64/vdpau/libvdpau_nvidia.so.367.57'...
   executing: '/usr/bin/chcon -t textrel_shlib_t /usr/lib64/libcuda.so.367.57'...
   executing: '/usr/bin/chcon -t textrel_shlib_t /usr/lib64/libnvidia-opencl.so.367.57'...
   executing: '/usr/bin/chcon -t textrel_shlib_t /usr/lib64/libOpenCL.so.1.0.0'...
   executing: '/usr/bin/chcon -t textrel_shlib_t /usr/lib64/libnvidia-fatbinaryloader.so.367.57'...
   executing: '/usr/bin/chcon -t textrel_shlib_t /usr/lib64/libnvidia-ptxjitcompiler.so.367.57'...
   executing: '/usr/bin/chcon -t textrel_shlib_t /usr/lib64/libnvcuvid.so.367.57'...
   executing: '/usr/bin/chcon -t textrel_shlib_t /usr/lib64/libnvidia-encode.so.367.57'...
   executing: '/usr/bin/chcon -t textrel_shlib_t /usr/lib64/libnvidia-ifr.so.367.57'...
   executing: '/usr/bin/chcon -t textrel_shlib_t /usr/lib64/libnvidia-fbc.so.367.57'...
   executing: '/usr/bin/chcon -t textrel_shlib_t /usr/lib64/libnvidia-compiler.so.367.57'...
   executing: '/usr/bin/chcon -t textrel_shlib_t /usr/lib64/libnvidia-eglcore.so.367.57'...
   executing: '/usr/bin/chcon -t textrel_shlib_t /usr/lib64/libnvidia-glsi.so.367.57'...
   executing: '/usr/bin/chcon -t textrel_shlib_t /usr/lib64/libEGL_nvidia.so.367.57'...
   executing: '/usr/bin/chcon -t textrel_shlib_t /usr/lib64/libGLESv2_nvidia.so.367.57'...
   executing: '/usr/bin/chcon -t textrel_shlib_t /usr/lib64/libGLESv1_CM_nvidia.so.367.57'...
   executing: '/usr/bin/chcon -t textrel_shlib_t /usr/lib64/libnvidia-egl-wayland.so.367.57'...
   executing: '/usr/bin/chcon -t textrel_shlib_t /usr/lib/libcuda.so.367.57'...
   executing: '/usr/bin/chcon -t textrel_shlib_t /usr/lib/libnvidia-fatbinaryloader.so.367.57'...
   executing: '/usr/bin/chcon -t textrel_shlib_t /usr/lib/libnvidia-ptxjitcompiler.so.367.57'...
   executing: '/usr/bin/chcon -t textrel_shlib_t /usr/lib/libnvidia-ml.so.367.57'...
   executing: '/usr/bin/chcon -t textrel_shlib_t /usr/lib/libOpenCL.so.1.0.0'...
   executing: '/usr/bin/chcon -t textrel_shlib_t /usr/lib/libnvidia-compiler.so.367.57'...
   executing: '/usr/bin/chcon -t textrel_shlib_t /usr/lib/libnvidia-opencl.so.367.57'...
   executing: '/usr/bin/chcon -t textrel_shlib_t /usr/lib/libOpenGL.so.0'...
   executing: '/usr/bin/chcon -t textrel_shlib_t /usr/lib/libGLdispatch.so.0'...
   executing: '/usr/bin/chcon -t textrel_shlib_t /usr/lib/libGLESv2.so.2'...
   executing: '/usr/bin/chcon -t textrel_shlib_t /usr/lib/libGLESv1_CM.so.1'...
   executing: '/usr/bin/chcon -t textrel_shlib_t /usr/lib/libGL.so.1.0.0'...
   executing: '/usr/bin/chcon -t textrel_shlib_t /usr/lib/libGLX_nvidia.so.367.57'...
   executing: '/usr/bin/chcon -t textrel_shlib_t /usr/lib/libGLX.so.0'...
   executing: '/usr/bin/chcon -t textrel_shlib_t /usr/lib/libnvidia-glcore.so.367.57'...
   executing: '/usr/bin/chcon -t textrel_shlib_t /usr/lib/libnvidia-tls.so.367.57'...
   executing: '/usr/bin/chcon -t textrel_shlib_t /usr/lib/vdpau/libvdpau_nvidia.so.367.57'...
   executing: '/usr/bin/chcon -t textrel_shlib_t /usr/lib/libnvcuvid.so.367.57'...
   executing: '/usr/bin/chcon -t textrel_shlib_t /usr/lib/libnvidia-encode.so.367.57'...
   executing: '/usr/bin/chcon -t textrel_shlib_t /usr/lib/libnvidia-eglcore.so.367.57'...
   executing: '/usr/bin/chcon -t textrel_shlib_t /usr/lib/libnvidia-glsi.so.367.57'...
   executing: '/usr/bin/chcon -t textrel_shlib_t /usr/lib/libEGL.so.1'...
   executing: '/usr/bin/chcon -t textrel_shlib_t /usr/lib/libEGL_nvidia.so.367.57'...
   executing: '/usr/bin/chcon -t textrel_shlib_t /usr/lib/libGLESv2_nvidia.so.367.57'...
   executing: '/usr/bin/chcon -t textrel_shlib_t /usr/lib/libGLESv1_CM_nvidia.so.367.57'...
   executing: '/usr/bin/chcon -t textrel_shlib_t /usr/lib/libnvidia-ifr.so.367.57'...
   executing: '/usr/bin/chcon -t textrel_shlib_t /usr/lib/libnvidia-fbc.so.367.57'...
   executing: '/usr/sbin/ldconfig'...
-> done.
-> Driver file installation is complete.
-> Installing DKMS kernel module:
-> done.
ERROR: Unable to load the 'nvidia-drm' kernel module.
ERROR: Installation has failed.  Please see the file '/var/log/nvidia-installer.log' for details.  You may find suggestions on fixing installation problems in the README available on the Linux driver download page at www.nvidia.com.

Hi,

I came across similar problems and managed to fix the NVIDIA driver install using the NVIDIA*.run file. But ended up not being worth it. Read on…

  1. Fresh install of Fedora 24 on a legacy Xeon 800 MHz system (HP xw 6200 workstation, 4GB Ram).

  2. Followed this to try and install legacy NVIDIA drivers for the Quadro NVS 285 card.

https://www.if-not-true-then-false.com/2015/fedora-nvidia-guide/

  1. NVIDIA installer crashed out saying could not load kernel. Headers weren’t matching kernel with uname -r etc. eg:

https://ask.fedoraproject.org/en/question/9667/path-to-kernel-header/

Found my loaded kernel was 4.8.7 even though dnf update had installed 4.8.8. Could not see 4.8.8. as a grub2 menu option.

  1. *** re-installed Fedora 24 *** and updated again until grub2 menu was showing 4.8.8 correctly

  2. Tried installing NVIDIA drivers from RPM:

http://rpmfusion.org/Howto/nVidia

Completed successfully but not successful. Can’t remember detail but I think the boot got stuck at a flashing text screen and did not progress.

  1. Rebooted and got back to runlevel 3 login.

  2. re-ran the NVIDIA*.run installer straight away (no OS re-install).

  3. Completed fine as in : https://www.if-not-true-then-false.com/2015/fedora-nvidia-guide/

  4. Rebooted and got success: NB. With nouveau driver, you get the nice graphical teardrop when system is booting up. With NVIDIA driver successfully installed, you get the ASCII graphic blue progress bar which makes you think you’re still stuck at runlevel 3. But when this completes, you get the correct graphical target login screen.

  5. HOWEVER! Login is fine. But as soon as I open any applications, graphical display freezes. System doesn’t freeze as I can ssh into it and file sharing etc. etc. works. Just the graphics.

My impression from all of this is that NVIDIA support for Linux is very adhoc and kind of unstable. For this project, I’m abandoning Fed 24 with NVIDIA - was just planning to use this old box to virtulise another OS, but will try with vSphere.

This is despite my loving Fedora and running it on my main machine (core i7 6700 with Asus Z170). However, that does NOT have an NVIDIA card inside - just using Intel HD graphics as not a big gamer. I don’t envy anybody trying to get NVIDIA card working with their main system - though people do seem to have some success (including gamers).

If you persist, my top tips would be :

i) Do not start trying install kernel-devel until your system is up to date and you have rebooted and got the updated kernel showing appropriately in the Grub2 menu (text screen which shows on first boot).

ii) Make a fresh install on a small partition (Fed 24 runs happily in 50GB). Update this optimally as in i) then back it up using Clonezilla. Returning to this avoids wondering if all the edits from a failed attempt at installing are trashing your next approach.

Hope this helps - or at least gives some hope.