Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NVIDIA Driver installation fails #162

Closed
ThePooN opened this issue May 22, 2019 · 7 comments
Closed

NVIDIA Driver installation fails #162

ThePooN opened this issue May 22, 2019 · 7 comments
Labels

Comments

@ThePooN
Copy link

ThePooN commented May 22, 2019

The NVIDIA driver 430.14 installer fails to extract itself apparently. It simply says "Extraction failed" at line 1364 of the logs: https://pastebin.com/ULdET12T
I have 10GB free on my root partition.

Running Docker 18.09.6-ce on Arch Linux with NVIDIA drivers 430.14.

@mviereck mviereck added the bug label May 23, 2019
@mviereck
Copy link
Owner

Thank you for reporting this!

I can confirm the issue, I'll look into it.

Curiously, creating a base image does not fail, although the installation is not obviously different.

@ThePooN
Copy link
Author

ThePooN commented May 23, 2019

Ah, thanks. I'll look into that as a workaround!

@mviereck
Copy link
Owner

The issue is fixed now.

Per default x11docker sets docker option --security-opt=no-new-privileges.
Previously this was no issue for installing NVIDIA drivers. Maybe something has changed within docker, and this option forbids more than before. I am not sure.

Now x11docker does not set this option anymore if an NVIDIA driver has to be installed.
I am not lucky about this because it is a strong security feature otherwise.

Please try out the latest master version of x11docker.

@mviereck mviereck closed this as completed Jun 7, 2019
@mviereck
Copy link
Owner

x11docker release v6.0.0 includes the fix for this issue.

@mviereck
Copy link
Owner

@ThePooN Could you please run a test for me?

I recently did some code changes that affect the automated NVIDIA driver installation (compare #198 (comment)).
To my surprise I found that the issue of this ticket does not occur anymore.

To fix the issue I had to drop --security-opt=no-new-privileges although it worked before. Now it seems to work again. I've downgraded to Docker 18.09.6-ce, also no issue.
I assume it has been a bug somewhere in the docker dependencies that has been fixed meanwhile.

This command should fail if the issue is still present:

x11docker --gpu --init=systemd --newprivileges=no x11docker/check glxinfo | grep renderer

If the command succeeds, it should show the name of your graphics card.

@ThePooN
Copy link
Author

ThePooN commented Dec 10, 2019

Works successfully!

Thanks :)

@mviereck
Copy link
Owner

Thank you for the test!
Now the NVIDIA setup will run with much less privileges than before, great.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants