[SOLVED] Nvidia drivers installation issues

Issues related to applications and software problems and general support
Post Reply
mmc
Posts: 7
Joined: 2020/09/13 06:23:36

[SOLVED] Nvidia drivers installation issues

Post by mmc » 2020/09/13 06:46:28

I had issues for days of not being able to start up the system after installing the drivers.

On the login screen I would get the "Oh no! Something has gone wrong." error.

I tried the packages from elrepo, RPM Fusion and the Nvidia cuda toolkit (cuda-rhel8-x86_64 repository). I got the same error with all three.

Anyway after searching around to see if others had the same problem I remember someone said the issue could be SELinux related.

I used the same workaround they did.
On the startup failure I switched to tty2. I set the SELinux policy to permissive (I don't know if this even worked).

Code: Select all

setenforce permissive
After that I manually launched the X server

Code: Select all

startx
Now the system started properly and I could login. After logging in I got a SELinux Troubleshooter alert and it seemed to be related to the Nvidia drivers.
I did the recommended action and sent the bug report.

So is there a bug with the SELinux policy regarding the Nvidia drivers on CentOS 8? Did I do the installation correctly?

Right now I'm using the drivers from the cuda toolkit
Last edited by mmc on 2020/09/13 17:49:48, edited 1 time in total.

User avatar
TrevorH
Forum Moderator
Posts: 29491
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Nvidia drivers installation issues

Post by TrevorH » 2020/09/13 16:42:15

Yes. Run setsebool -P domain_can_mmap_files 1

It's a known bug and is pending a fix from RH.
CentOS 6 will die in November 2020 - migrate sooner rather than later!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

mmc
Posts: 7
Joined: 2020/09/13 06:23:36

Re: Nvidia drivers installation issues

Post by mmc » 2020/09/13 17:43:22

TrevorH wrote:
2020/09/13 16:42:15
Yes. Run setsebool -P domain_can_mmap_files 1

It's a known bug and is pending a fix from RH.
Thanks for the clarification.

Mike_Rochefort
Posts: 160
Joined: 2016/03/16 02:34:19

Re: [SOLVED] Nvidia drivers installation issues

Post by Mike_Rochefort » 2020/09/14 16:41:45

This bug is fixed in the latest SELinux package in 8.2 as of last week.

https://access.redhat.com/errata/RHBA-2020:3655

selinux-policy-3.14.3-41.el8_2.6.noarch.rpm

CentOS has el8_2.5 rolled out, I would expect 2.6 coming soon.

Cheers,
Mike

mmc
Posts: 7
Joined: 2020/09/13 06:23:36

Re: [SOLVED] Nvidia drivers installation issues

Post by mmc » 2020/09/15 05:20:55

Mike_Rochefort wrote:
2020/09/14 16:41:45
This bug is fixed in the latest SELinux package in 8.2 as of last week.

https://access.redhat.com/errata/RHBA-2020:3655

selinux-policy-3.14.3-41.el8_2.6.noarch.rpm

CentOS has el8_2.5 rolled out, I would expect 2.6 coming soon.

Cheers,
Mike
Thanks.

If the update is available for CentOS will I need to revert the SELinux workaround change that I previously applied?

I don't actually remember whether the suggested fix by the SELinux Troubleshooter was the same as the one TrevorH mentioned.

I'll see whether I can reproduce the issue again by reinstalling CentOS and the Nvidia drivers on a temporary drive when I have time.

User avatar
TrevorH
Forum Moderator
Posts: 29491
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: [SOLVED] Nvidia drivers installation issues

Post by TrevorH » 2020/09/15 06:45:51

You can undo the change you made by setting it to 0 again.
CentOS 6 will die in November 2020 - migrate sooner rather than later!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

Post Reply

Return to “CentOS 8 - General Support”