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 with provided instructions #2526

Open
loeken opened this Issue Dec 19, 2016 · 8 comments

Comments

Projects
None yet
5 participants
@loeken

loeken commented Dec 19, 2016

Qubes OS version (e.g., R3.2):

R3.2

Affected TemplateVMs (e.g., fedora-23, if applicable):

I tested on fedora-23 template ( work, app vm)


Expected behavior:

https://www.qubes-os.org/doc/install-nvidia-driver/

Actual behavior:

[user@work ~]$ cd /tmp/
[user@work tmp]$ yumdownloader --resolve xorg-x11-drv-nvidia

Yum-utils package has been deprecated, use dnf instead.
See 'man yum2dnf' for more information.


Loaded plugins: yum-qubes-hooks
fedora/23/x86_64/metalink                                                                     |  21 kB  00:00:00     
qubes-vm-r3.2-current                                                                         | 2.9 kB  00:00:00     
rpmfusion-free                                                                                | 3.0 kB  00:00:00     
rpmfusion-free-updates                                                                        | 3.7 kB  00:00:00     
rpmfusion-nonfree                                                                             | 3.0 kB  00:00:00     
rpmfusion-nonfree-updates                                                                     | 3.7 kB  00:00:00     
updates/23/x86_64/metalink                                                                    |  18 kB  00:00:00     
updates                                                                                       | 4.7 kB  00:00:00     
(1/10): qubes-vm-r3.2-current/23/primary_db                                                   |  93 kB  00:00:00     
(2/10): rpmfusion-nonfree-updates/23/x86_64/group_gz                                          |  952 B  00:00:00     
(3/10): rpmfusion-nonfree-updates/23/x86_64/primary_db                                        |  65 kB  00:00:00     
(4/10): rpmfusion-free/23/x86_64/primary_db                                                   | 349 kB  00:00:00     
updates/23/x86_64/updateinfo   FAILED                                              ] 551 kB/s | 610 kB  00:00:19 ETA 
http://ftp.uni-kl.de/pub/linux/fedora/linux/updates/23/x86_64/repodata/5cd9fd87de9266fa8cf68809d8f1a8742f402401becaf98b3accee2d4bf9f055-updateinfo.xml.xz: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
updates/23/x86_64/primary_db   FAILED                                          
http://ftp.uni-kl.de/pub/linux/fedora/linux/updates/23/x86_64/repodata/978b6ee4fa16f69e45e84bbc7f96213c261b47b0efd4eb8e4df6133dd05d7cde-primary.sqlite.xz: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
(5/10): updates/23/x86_64/group_gz                                                            | 246 kB  00:00:00     
rpmfusion-free-updates/23/x86_ FAILED                                          
http://rpmfusion.ip-connect.vn.ua/free/fedora/updates/23/x86_64/repodata/90fd795b1f19095c44ac5bac795b65dee67b54f04e8306d900f619e44bf310e8-comps-f23.xml.xz: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
updates/23/x86_64/updateinfo   FAILED                                          
http://mirror.euserv.net/linux/fedora/linux/updates/23/x86_64/repodata/5cd9fd87de9266fa8cf68809d8f1a8742f402401becaf98b3accee2d4bf9f055-updateinfo.xml.xz: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
(6/10): rpmfusion-free-updates/23/x86_64/group_gz                                             | 1.4 kB  00:00:00     
(7/10): rpmfusion-nonfree/23/x86_64/primary_db                                                | 105 kB  00:00:02     
(8/10): updates/23/x86_64/updateinfo                                                          | 1.2 MB  00:00:01     
(9/10): rpmfusion-free-updates/23/x86_64/primary_db                                           | 250 kB  00:00:03     
(10/10): updates/23/x86_64/primary_db                                                         | 9.0 MB  00:00:02     
--> Running transaction check
---> Package xorg-x11-drv-nvidia.x86_64 1:367.57-4.fc23 will be installed
--> Processing Dependency: xorg-x11-drv-nvidia-libs(x86-64) = 1:367.57-4.fc23 for package: 1:xorg-x11-drv-nvidia-367.57-4.fc23.x86_64
--> Processing Dependency: nvidia-kmod >= 1:367.57 for package: 1:xorg-x11-drv-nvidia-367.57-4.fc23.x86_64
--> Processing Dependency: libnvidia-tls.so.367.57()(64bit) for package: 1:xorg-x11-drv-nvidia-367.57-4.fc23.x86_64
--> Processing Dependency: libnvidia-glcore.so.367.57()(64bit) for package: 1:xorg-x11-drv-nvidia-367.57-4.fc23.x86_64
--> Running transaction check
---> Package kmod-nvidia.x86_64 1:367.57-1.fc23 will be installed
--> Processing Dependency: akmod-nvidia = 1:367.57-1.fc23 for package: 1:kmod-nvidia-367.57-1.fc23.x86_64
---> Package xorg-x11-drv-nvidia-libs.x86_64 1:367.57-4.fc23 will be installed
--> Processing Dependency: libglvnd(x86-64) for package: 1:xorg-x11-drv-nvidia-libs-367.57-4.fc23.x86_64
--> Processing Dependency: libglvnd(x86-64) for package: 1:xorg-x11-drv-nvidia-libs-367.57-4.fc23.x86_64
--> Running transaction check
---> Package akmod-nvidia.x86_64 1:367.57-1.fc23 will be installed
--> Processing Dependency: xorg-x11-drv-nvidia-kmodsrc >= 1:367.57 for package: 1:akmod-nvidia-367.57-1.fc23.x86_64
--> Processing Dependency: kmodtool for package: 1:akmod-nvidia-367.57-1.fc23.x86_64
--> Processing Dependency: akmods for package: 1:akmod-nvidia-367.57-1.fc23.x86_64
--> Processing Dependency: /usr/bin/kmodtool for package: 1:akmod-nvidia-367.57-1.fc23.x86_64
---> Package libglvnd.x86_64 0:0.2.999-2.git14f6283.fc23 will be installed
--> Running transaction check
---> Package akmods.noarch 0:0.5.6-1.fc23 will be installed
--> Processing Dependency: rpm-build for package: akmods-0.5.6-1.fc23.noarch
--> Processing Dependency: kernel-devel-uname-r for package: akmods-0.5.6-1.fc23.noarch
--> Processing Dependency: gcc for package: akmods-0.5.6-1.fc23.noarch
--> Processing Dependency: /usr/bin/rpmdev-vercmp for package: akmods-0.5.6-1.fc23.noarch
---> Package kmodtool.noarch 0:1-23.fc23 will be installed
---> Package xorg-x11-drv-nvidia-kmodsrc.x86_64 1:367.57-4.fc23 will be installed
--> Running transaction check
---> Package gcc.x86_64 0:5.3.1-6.fc23 will be installed
--> Processing Dependency: isl = 0.14 for package: gcc-5.3.1-6.fc23.x86_64
--> Processing Dependency: cpp = 5.3.1-6.fc23 for package: gcc-5.3.1-6.fc23.x86_64
--> Processing Dependency: glibc-devel >= 2.2.90-12 for package: gcc-5.3.1-6.fc23.x86_64
--> Processing Dependency: binutils >= 2.24 for package: gcc-5.3.1-6.fc23.x86_64
--> Processing Dependency: libmpc.so.3()(64bit) for package: gcc-5.3.1-6.fc23.x86_64
---> Package kernel-debug-devel.x86_64 0:4.8.13-100.fc23 will be installed
---> Package rpm-build.x86_64 0:4.13.0-0.rc1.13.fc23 will be installed
--> Processing Dependency: patch >= 2.5 for package: rpm-build-4.13.0-0.rc1.13.fc23.x86_64
--> Processing Dependency: system-rpm-config for package: rpm-build-4.13.0-0.rc1.13.fc23.x86_64
--> Processing Dependency: perl-generators for package: rpm-build-4.13.0-0.rc1.13.fc23.x86_64
---> Package rpmdevtools.noarch 0:8.9-1.fc23 will be installed
--> Processing Dependency: xemacs-filesystem for package: rpmdevtools-8.9-1.fc23.noarch
--> Running transaction check
---> Package binutils.x86_64 0:2.25-17.fc23 will be installed
---> Package cpp.x86_64 0:5.3.1-6.fc23 will be installed
---> Package glibc-devel.x86_64 0:2.22-18.fc23 will be installed
--> Processing Dependency: glibc-headers = 2.22-18.fc23 for package: glibc-devel-2.22-18.fc23.x86_64
--> Processing Dependency: glibc-headers for package: glibc-devel-2.22-18.fc23.x86_64
---> Package isl.x86_64 0:0.14-4.fc23 will be installed
---> Package libmpc.x86_64 0:1.0.2-4.fc23 will be installed
---> Package patch.x86_64 0:2.7.5-2.fc23 will be installed
---> Package perl-generators.noarch 0:1.06-2.fc23 will be installed
---> Package redhat-rpm-config.noarch 0:37-1.fc23.1 will be installed
--> Processing Dependency: dwz >= 0.4 for package: redhat-rpm-config-37-1.fc23.1.noarch
--> Processing Dependency: python-srpm-macros for package: redhat-rpm-config-37-1.fc23.1.noarch
--> Processing Dependency: perl-srpm-macros for package: redhat-rpm-config-37-1.fc23.1.noarch
--> Processing Dependency: ocaml-srpm-macros for package: redhat-rpm-config-37-1.fc23.1.noarch
--> Processing Dependency: go-srpm-macros for package: redhat-rpm-config-37-1.fc23.1.noarch
--> Processing Dependency: gnat-srpm-macros for package: redhat-rpm-config-37-1.fc23.1.noarch
--> Processing Dependency: ghc-srpm-macros for package: redhat-rpm-config-37-1.fc23.1.noarch
--> Processing Dependency: fpc-srpm-macros for package: redhat-rpm-config-37-1.fc23.1.noarch
---> Package xemacs-filesystem.noarch 0:21.5.34-14.20160603hga561e02bb626.fc23 will be installed
--> Running transaction check
---> Package dwz.x86_64 0:0.12-1.fc23 will be installed
---> Package fpc-srpm-macros.noarch 0:1.0-1.fc23 will be installed
---> Package ghc-srpm-macros.noarch 0:1.4.2-2.fc23 will be installed
---> Package glibc-headers.x86_64 0:2.22-18.fc23 will be installed
--> Processing Dependency: kernel-headers >= 2.2.1 for package: glibc-headers-2.22-18.fc23.x86_64
--> Processing Dependency: kernel-headers for package: glibc-headers-2.22-18.fc23.x86_64
---> Package gnat-srpm-macros.noarch 0:2-1.fc23 will be installed
---> Package go-srpm-macros.noarch 0:2-3.fc23 will be installed
---> Package ocaml-srpm-macros.noarch 0:2-3.fc23 will be installed
---> Package perl-srpm-macros.noarch 0:1-17.fc23 will be installed
---> Package python-srpm-macros.noarch 0:3-7.fc23 will be installed
--> Running transaction check
---> Package kernel-headers.x86_64 0:4.8.13-100.fc23 will be installed
--> Finished Dependency Resolution
akmods-0.5.6-1.fc23.noarch.rpm FAILED                                          
http://rpmfusion.ip-connect.vn.ua/free/fedora/updates/23/x86_64/a/akmods-0.5.6-1.fc23.noarch.rpm: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
(1/31): akmod-nvidia-367.57-1.fc23.x86_64.rpm                                                 |  71 kB  00:00:00     
(2/31): binutils-2.25-17.fc23.x86_64.rpm                                                      | 5.6 MB  00:00:01     
(3/31): akmods-0.5.6-1.fc23.noarch.rpm                                                        |  22 kB  00:00:00     
(4/31): dwz-0.12-1.fc23.x86_64.rpm                                                            | 106 kB  00:00:00     
(5/31): cpp-5.3.1-6.fc23.x86_64.rpm                                                           | 8.3 MB  00:00:02     
(6/31): fpc-srpm-macros-1.0-1.fc23.noarch.rpm                                                 | 7.8 kB  00:00:00     
(7/31): ghc-srpm-macros-1.4.2-2.fc23.noarch.rpm                                               | 8.2 kB  00:00:00     
(8/31): gcc-5.3.1-6.fc23.x86_64.rpm                                                           |  19 MB  00:00:06     
(9/31): glibc-devel-2.22-18.fc23.x86_64.rpm                                                   | 914 kB  00:00:00     
(10/31): glibc-headers-2.22-18.fc23.x86_64.rpm                                                | 497 kB  00:00:00     
(11/31): gnat-srpm-macros-2-1.fc23.noarch.rpm                                                 | 8.4 kB  00:00:00     
(12/31): go-srpm-macros-2-3.fc23.noarch.rpm                                                   | 8.0 kB  00:00:00     
(13/31): isl-0.14-4.fc23.x86_64.rpm                                                           | 490 kB  00:00:00     
(14/31): kernel-debug-devel-4.8.13-100.fc23.x86_64.rpm                                        |  11 MB  00:00:06     
(15/31): kmod-nvidia-367.57-1.fc23.x86_64.rpm                                                 |  48 kB  00:00:00     
(16/31): kernel-headers-4.8.13-100.fc23.x86_64.rpm                                            | 1.0 MB  00:00:00     
(17/31): libglvnd-0.2.999-2.git14f6283.fc23.x86_64.rpm                                        | 238 kB  00:00:00     
(18/31): libmpc-1.0.2-4.fc23.x86_64.rpm                                                       |  55 kB  00:00:00     
(19/31): ocaml-srpm-macros-2-3.fc23.noarch.rpm                                                | 8.1 kB  00:00:00     
(20/31): patch-2.7.5-2.fc23.x86_64.rpm                                                        | 123 kB  00:00:00     
(21/31): perl-srpm-macros-1-17.fc23.noarch.rpm                                                | 9.7 kB  00:00:00     
(22/31): perl-generators-1.06-2.fc23.noarch.rpm                                               |  15 kB  00:00:00     
(23/31): python-srpm-macros-3-7.fc23.noarch.rpm                                               | 8.1 kB  00:00:00     
(24/31): redhat-rpm-config-37-1.fc23.1.noarch.rpm                                             |  59 kB  00:00:00     
(25/31): rpm-build-4.13.0-0.rc1.13.fc23.x86_64.rpm                                            | 137 kB  00:00:00     
(26/31): rpmdevtools-8.9-1.fc23.noarch.rpm                                                    | 105 kB  00:00:00     
(27/31): xemacs-filesystem-21.5.34-14.20160603hga561e02bb626.fc23.noarch.rpm                  |  21 kB  00:00:00     
xorg-x11-drv-nvidia-libs-367.5 FAILED                                          
http://rpmfusion.ip-connect.vn.ua/nonfree/fedora/updates/23/x86_64/x/xorg-x11-drv-nvidia-libs-367.57-4.fc23.x86_64.rpm: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
(28/31): kmodtool-1-23.fc23.noarch.rpm                                                        |  17 kB  00:00:02     
(29/31): xorg-x11-drv-nvidia-367.57-4.fc23.x86_64.rpm                                         | 3.9 MB  00:00:07     
(30/31): xorg-x11-drv-nvidia-libs-367.57-4.fc23.x86_64.rpm                                    |  14 MB  00:00:35     
(31/31): xorg-x11-drv-nvidia-kmodsrc-367.57-4.fc23.x86_64.rpm                                 | 5.8 MB  00:01:30     
[user@work tmp]$ yumdownloader --source nvidia-kmod

Yum-utils package has been deprecated, use dnf instead.
See 'man yum2dnf' for more information.


Loaded plugins: yum-qubes-hooks
Enabling updates-source repository
Enabling rpmfusion-nonfree-updates-source repository
Enabling rpmfusion-nonfree-source repository
Enabling rpmfusion-free-updates-source repository
Enabling fedora-source repository
Enabling rpmfusion-free-source repository
fedora-source/23/x86_64/metalink                                                              |  19 kB  00:00:00     
fedora-source                                                                                 | 3.1 kB  00:00:00     
rpmfusion-free-source                                                                         | 3.0 kB  00:00:00     
rpmfusion-free-updates-source                                                                 | 3.0 kB  00:00:00     
rpmfusion-nonfree-source                                                                      | 3.0 kB  00:00:00     
rpmfusion-nonfree-updates-source                                                              | 3.0 kB  00:00:00     
updates-source/23/x86_64/metalink                                                             |  17 kB  00:00:00     
updates-source                                                                                | 3.5 kB  00:00:00     
(1/7): rpmfusion-nonfree-source/23/x86_64/primary_db                                          |  33 kB  00:00:00     
(2/7): rpmfusion-free-source/23/x86_64/primary_db                                             |  85 kB  00:00:00     
rpmfusion-free-updates-source/ FAILED                                              ]  0.0 B/s | 1.0 MB  --:--:-- ETA 
http://rpmfusion.ip-connect.vn.ua/free/fedora/updates/23/SRPMS/repodata/e5a71c4a19c21cda4315b3fea534b81293437cdd55b19637b4294c5fca1c9069-primary.sqlite.xz: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
(3/7): fedora-source/23/x86_64/primary_db                                                     | 5.1 MB  00:00:01     
(4/7): updates-source/23/x86_64/updateinfo                                                    | 1.2 MB  00:00:02     
(5/7): updates-source/23/x86_64/primary_db                                                    | 1.6 MB  00:00:01     
(6/7): rpmfusion-free-updates-source/23/x86_64/primary_db                                     |  65 kB  00:00:02     
(7/7): rpmfusion-nonfree-updates-source/23/x86_64/primary_db                                  |  19 kB  00:00:03     
nvidia-kmod-367.57-1.fc23.src. FAILED                                          
http://rpmfusion.ip-connect.vn.ua/nonfree/fedora/updates/23/SRPMS/n/nvidia-kmod-367.57-1.fc23.src.rpm: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
nvidia-kmod-367.57-1.fc23.src.rpm                                                             |  61 kB  00:00:00     

[user@work tmp]$ sudo yum install kernel-devel rpm-build kmodtool
Redirecting to '/usr/bin/dnf install kernel-devel rpm-build kmodtool' (see 'man yum2dnf')

Fedora 23 - x86_64 - Updates                                                         5.2 MB/s |  25 MB     00:04    
Last metadata expiration check: 0:00:11 ago on Mon Dec 19 16:32:27 2016.
Dependencies resolved.
=====================================================================================================================
 Package                    Arch           Version                               Repository                     Size
=====================================================================================================================
Installing:
 binutils                   x86_64         2.25-17.fc23                          updates                       5.6 M
 dwz                        x86_64         0.12-1.fc23                           fedora                        106 k
 fpc-srpm-macros            noarch         1.0-1.fc23                            updates                       7.8 k
 ghc-srpm-macros            noarch         1.4.2-2.fc23                          fedora                        8.2 k
 gnat-srpm-macros           noarch         2-1.fc23                              fedora                        8.4 k
 go-srpm-macros             noarch         2-3.fc23                              fedora                        8.0 k
 kernel-devel               x86_64         1000:4.4.31-11.pvops.qubes            qubes-vm-r3.2-current          10 M
 kmodtool                   noarch         1-23.fc23                             rpmfusion-free                 17 k
 ocaml-srpm-macros          noarch         2-3.fc23                              fedora                        8.1 k
 patch                      x86_64         2.7.5-2.fc23                          fedora                        123 k
 perl-Math-BigInt           noarch         1.9997-355.fc23                       updates                       188 k
 perl-generators            noarch         1.06-2.fc23                           updates                        15 k
 perl-srpm-macros           noarch         1-17.fc23                             fedora                        9.7 k
 python-srpm-macros         noarch         3-7.fc23                              updates                       8.1 k
 redhat-rpm-config          noarch         37-1.fc23.1                           updates                        59 k
 rpm-build                  x86_64         4.13.0-0.rc1.13.fc23                  updates                       137 k

Transaction Summary
=====================================================================================================================
Install  16 Packages

Total download size: 17 M
Installed size: 35 M
Is this ok [y/N]: y
Downloading Packages:
(1/16): kmodtool-1-23.fc23.noarch.rpm                                                 43 kB/s |  17 kB     00:00    
(2/16): patch-2.7.5-2.fc23.x86_64.rpm                                                361 kB/s | 123 kB     00:00    
(3/16): rpm-build-4.13.0-0.rc1.13.fc23.x86_64.rpm                                    144 kB/s | 137 kB     00:00    
(4/16): perl-generators-1.06-2.fc23.noarch.rpm                                       132 kB/s |  15 kB     00:00    
(5/16): redhat-rpm-config-37-1.fc23.1.noarch.rpm                                     414 kB/s |  59 kB     00:00    
(6/16): fpc-srpm-macros-1.0-1.fc23.noarch.rpm                                        159 kB/s | 7.8 kB     00:00    
(7/16): python-srpm-macros-3-7.fc23.noarch.rpm                                       243 kB/s | 8.1 kB     00:00    
(8/16): dwz-0.12-1.fc23.x86_64.rpm                                                   506 kB/s | 106 kB     00:00    
(9/16): ghc-srpm-macros-1.4.2-2.fc23.noarch.rpm                                      163 kB/s | 8.2 kB     00:00    
(10/16): gnat-srpm-macros-2-1.fc23.noarch.rpm                                        157 kB/s | 8.4 kB     00:00    
(11/16): go-srpm-macros-2-3.fc23.noarch.rpm                                          143 kB/s | 8.0 kB     00:00    
(12/16): ocaml-srpm-macros-2-3.fc23.noarch.rpm                                       167 kB/s | 8.1 kB     00:00    
(13/16): perl-srpm-macros-1-17.fc23.noarch.rpm                                       190 kB/s | 9.7 kB     00:00    
(14/16): perl-Math-BigInt-1.9997-355.fc23.noarch.rpm                                 628 kB/s | 188 kB     00:00    
(15/16): kernel-devel-4.4.31-11.pvops.qubes.x86_64.rpm                               3.9 MB/s |  10 MB     00:02    
(16/16): binutils-2.25-17.fc23.x86_64.rpm                                            1.4 MB/s | 5.6 MB     00:03    
---------------------------------------------------------------------------------------------------------------------
Total                                                                                2.3 MB/s |  17 MB     00:07     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Installing  : perl-Math-BigInt-1.9997-355.fc23.noarch                                                         1/16 
  Installing  : perl-srpm-macros-1-17.fc23.noarch                                                               2/16 
  Installing  : ocaml-srpm-macros-2-3.fc23.noarch                                                               3/16 
  Installing  : go-srpm-macros-2-3.fc23.noarch                                                                  4/16 
  Installing  : gnat-srpm-macros-2-1.fc23.noarch                                                                5/16 
  Installing  : ghc-srpm-macros-1.4.2-2.fc23.noarch                                                             6/16 
  Installing  : dwz-0.12-1.fc23.x86_64                                                                          7/16 
  Installing  : python-srpm-macros-3-7.fc23.noarch                                                              8/16 
  Installing  : fpc-srpm-macros-1.0-1.fc23.noarch                                                               9/16 
  Installing  : redhat-rpm-config-37-1.fc23.1.noarch                                                           10/16 
  Installing  : perl-generators-1.06-2.fc23.noarch                                                             11/16 
  Installing  : binutils-2.25-17.fc23.x86_64                                                                   12/16 
  Installing  : patch-2.7.5-2.fc23.x86_64                                                                      13/16 
  Installing  : rpm-build-4.13.0-0.rc1.13.fc23.x86_64                                                          14/16 
  Installing  : kernel-devel-1000:4.4.31-11.pvops.qubes.x86_64                                                 15/16 
  Installing  : kmodtool-1-23.fc23.noarch                                                                      16/16 
  Verifying   : kmodtool-1-23.fc23.noarch                                                                       1/16 
  Verifying   : kernel-devel-1000:4.4.31-11.pvops.qubes.x86_64                                                  2/16 
  Verifying   : rpm-build-4.13.0-0.rc1.13.fc23.x86_64                                                           3/16 
  Verifying   : patch-2.7.5-2.fc23.x86_64                                                                       4/16 
  Verifying   : binutils-2.25-17.fc23.x86_64                                                                    5/16 
  Verifying   : perl-generators-1.06-2.fc23.noarch                                                              6/16 
  Verifying   : redhat-rpm-config-37-1.fc23.1.noarch                                                            7/16 
  Verifying   : fpc-srpm-macros-1.0-1.fc23.noarch                                                               8/16 
  Verifying   : python-srpm-macros-3-7.fc23.noarch                                                              9/16 
  Verifying   : dwz-0.12-1.fc23.x86_64                                                                         10/16 
  Verifying   : ghc-srpm-macros-1.4.2-2.fc23.noarch                                                            11/16 
  Verifying   : gnat-srpm-macros-2-1.fc23.noarch                                                               12/16 
  Verifying   : go-srpm-macros-2-3.fc23.noarch                                                                 13/16 
  Verifying   : ocaml-srpm-macros-2-3.fc23.noarch                                                              14/16 
  Verifying   : perl-srpm-macros-1-17.fc23.noarch                                                              15/16 
  Verifying   : perl-Math-BigInt-1.9997-355.fc23.noarch                                                        16/16 

Installed:
  binutils.x86_64 2.25-17.fc23                                  dwz.x86_64 0.12-1.fc23                              
  fpc-srpm-macros.noarch 1.0-1.fc23                             ghc-srpm-macros.noarch 1.4.2-2.fc23                 
  gnat-srpm-macros.noarch 2-1.fc23                              go-srpm-macros.noarch 2-3.fc23                      
  kernel-devel.x86_64 1000:4.4.31-11.pvops.qubes                kmodtool.noarch 1-23.fc23                           
  ocaml-srpm-macros.noarch 2-3.fc23                             patch.x86_64 2.7.5-2.fc23                           
  perl-Math-BigInt.noarch 1.9997-355.fc23                       perl-generators.noarch 1.06-2.fc23                  
  perl-srpm-macros.noarch 1-17.fc23                             python-srpm-macros.noarch 3-7.fc23                  
  redhat-rpm-config.noarch 37-1.fc23.1                          rpm-build.x86_64 4.13.0-0.rc1.13.fc23               

Sending application list and icons to dom0
Complete!

[user@work tmp]$ sudo rpmbuild --nodeps -D "kernels `uname -r`" --rebuild nvidia-kmod-367.57-1.fc23.src.rpm 
Installing nvidia-kmod-367.57-1.fc23.src.rpm
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.RBswpc
+ umask 022
+ cd /root/rpmbuild/BUILD
+ kmodtool --target x86_64 --repo rpmfusion --kmodname nvidia-kmod --filterfile /root/rpmbuild/SOURCES/nvidia-kmodtool-excludekernel-filterfile --obsolete-name nvidia-newest --obsolete-version 367.57 --akmod --for-kernels 4.4.31-11.pvops.qubes.x86_64
%package       -n kmod-nvidia-4.4.31-11.pvops.qubes.x86_64
Summary:          nvidia kernel module(s) for 4.4.31-11.pvops.qubes.x86_64
Group:            System Environment/Kernel
Provides:         kernel-modules-for-kernel = 4.4.31-11.pvops.qubes.x86_64
Provides:         nvidia-kmod = %{?epoch:%{epoch}:}%{version}-%{release}
Requires:         nvidia-kmod-common >= %{?epoch:%{epoch}:}%{version}
Requires(post):   /usr/sbin/depmod
Requires(postun): /usr/sbin/depmod
Provides:        kmod-nvidia-newest-4.4.31-11.pvops.qubes.x86_64 = 367.57
Obsoletes:       kmod-nvidia-newest-4.4.31-11.pvops.qubes.x86_64 < 367.57
Requires:         kernel-uname-r = 4.4.31-11.pvops.qubes.x86_64
BuildRequires:	  kernel-devel-uname-r = 4.4.31-11.pvops.qubes.x86_64
%post          -n kmod-nvidia-4.4.31-11.pvops.qubes.x86_64
/usr/sbin/depmod -aeF /boot/System.map-4.4.31-11.pvops.qubes.x86_64 4.4.31-11.pvops.qubes.x86_64 > /dev/null || :
%postun        -n kmod-nvidia-4.4.31-11.pvops.qubes.x86_64
/usr/sbin/depmod  -aF /boot/System.map-4.4.31-11.pvops.qubes.x86_64 4.4.31-11.pvops.qubes.x86_64 &> /dev/null || :

%description  -n kmod-nvidia-4.4.31-11.pvops.qubes.x86_64
This package provides the nvidia kernel modules built for the Linux
kernel 4.4.31-11.pvops.qubes.x86_64 for the %{_target_cpu} family of processors.
%files        -n kmod-nvidia-4.4.31-11.pvops.qubes.x86_64
%defattr(644,root,root,755)
%dir /usr/lib/modules/4.4.31-11.pvops.qubes.x86_64/extra
/usr/lib/modules/4.4.31-11.pvops.qubes.x86_64/extra/nvidia/



%global kmodinstdir_prefix  /usr/lib/modules/
%global kmodinstdir_postfix /extra/nvidia/
%global kernel_versions     4.4.31-11.pvops.qubes.x86_64___%{_usrsrc}/kernels/4.4.31-11.pvops.qubes.x86_64

+ cd /root/rpmbuild/BUILD
+ rm -rf nvidia-kmod-367.57
+ /usr/bin/mkdir -p nvidia-kmod-367.57
+ cd nvidia-kmod-367.57
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ tar --use-compress-program xz -xf /usr/share/nvidia-kmod-367.57/nvidia-kmod-367.57-x86_64.tar.xz
tar (child): /usr/share/nvidia-kmod-367.57/nvidia-kmod-367.57-x86_64.tar.xz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
error: Bad exit status from /var/tmp/rpm-tmp.RBswpc (%prep)


RPM build errors:
    user mockbuild does not exist - using root
    group mockbuild does not exist - using root
    user mockbuild does not exist - using root
    group mockbuild does not exist - using root
    user mockbuild does not exist - using root
    group mockbuild does not exist - using root
    user mockbuild does not exist - using root
    group mockbuild does not exist - using root
    user mockbuild does not exist - using root
    group mockbuild does not exist - using root
    Bad exit status from /var/tmp/rpm-tmp.RBswpc (%prep)

Steps to reproduce the behavior:

following the installation instructions from https://www.qubes-os.org/doc/install-nvidia-driver/

General notes:

To me it looks like it fails at:

+ tar --use-compress-program xz -xf /usr/share/nvidia-kmod-367.57/nvidia-kmod-367.57-x86_64.tar.xz

when it tries to access the non-existing file /usr/share/nvidia-kmod-367.57/nvidia-kmod-367.57-x86_64.tar.xz

however there is a .rpm file with the same "name" inside the folder i executed the yumdownloader commands in.

[root@work tmp]# ls nvidia-kmod-367.57-1.fc23.src.rpm 
nvidia-kmod-367.57-1.fc23.src.rpm

rpm fusion is enabled:

# yum repolist
Redirecting to '/usr/bin/dnf repolist' (see 'man yum2dnf')

Last metadata expiration check: 0:08:27 ago on Mon Dec 19 16:32:27 2016.
repo id                   repo name                                    status
*fedora                   Fedora 23 - x86_64                           46,074
qubes-vm-r3.2-current     Qubes OS Repository for VM (updates)            186
rpmfusion-free            RPM Fusion for Fedora 23 - Free                 505
rpmfusion-free-updates    RPM Fusion for Fedora 23 - Free - Updates       380
rpmfusion-nonfree         RPM Fusion for Fedora 23 - Nonfree              194
rpmfusion-nonfree-updates RPM Fusion for Fedora 23 - Nonfree - Updates    106
*updates                  Fedora 23 - x86_64 - Updates                 21,523

Related issues:

I also failed on using the manual method. there are kernel 2.6. files, so i guess this process is maybe outdated and not working anymore?

@andrewdavidwong

This comment has been minimized.

Show comment
Hide comment
@andrewdavidwong

andrewdavidwong Dec 19, 2016

Member

I formatted your report to make it readable.

Member

andrewdavidwong commented Dec 19, 2016

I formatted your report to make it readable.

@andrewdavidwong

This comment has been minimized.

Show comment
Hide comment
@0spinboson

This comment has been minimized.

Show comment
Hide comment
@0spinboson

0spinboson Dec 21, 2016

I've not had much luck getting it to work either, though for different reasons / at a different stage.
full recipe as I tried it:

  1. dom0: qubes-dom0-update gcc kernel-devel kmod kernel-headers grub2-tools
  2. appvm: download NVIDIA-Linux-375.26-install.run (any appvm)
  3. dom0: qvm-run --pass-io 'cat /PATH/TO/NVIDIA.run' > NVIDIA.run; chmod +x NVIDIA.run;
  4. dom0: ./NVIDIA.run --ui=none --no-x-check --keep --extract-only
    5: dom0: cd NVIDIA-*/kernel/; make module IGNORE_XEN_PRESENCE=y CC="gcc -DNV_VMAP_4_PRESENT -DNV_SIGNAL_STRUCT_RLIM";
    6: dom0: sudo cp nvidia.ko /lib/modules/4.4.31-11.pvops.qubes.x86_64/extra/
    7: dom0: sudo depmod -a; modinfo nvidia (all working will show up fine)
    8: dom0: EDIT GRUB or EFI; add rd.driver.blacklist=nouveau to kernel options; sudo grub2-mkconfig -o /boot/grub2/grub.cfg
    9: dom0; reboot and enjoy nvidia support.

I've tried to install nv drivers (375.26, gtx 950) using the above method, but couldn't get them to load properly. xinit fails; startx actually hangs without allowing me to switch to a different tty.
Error message varied depending on how I try to init X, either:
"parse_vt_settings: Cannot open /dev/tty0 (No such file or directory)"

or something like:
(II) NVIDIA: Using ~16GB of virtual memory for indirect memory
(II) NVIDIA: access.
(EE) NVIDIA(GPU-0): Failed to initialize DMA.
(EE) *** Aborting ***
(EE)
Fatal server error:
(EE) AddScreen/ScreenInit failed for driver 0

or something about "iops" which I didn't write down. As such, I'm still/back on nouveau

0spinboson commented Dec 21, 2016

I've not had much luck getting it to work either, though for different reasons / at a different stage.
full recipe as I tried it:

  1. dom0: qubes-dom0-update gcc kernel-devel kmod kernel-headers grub2-tools
  2. appvm: download NVIDIA-Linux-375.26-install.run (any appvm)
  3. dom0: qvm-run --pass-io 'cat /PATH/TO/NVIDIA.run' > NVIDIA.run; chmod +x NVIDIA.run;
  4. dom0: ./NVIDIA.run --ui=none --no-x-check --keep --extract-only
    5: dom0: cd NVIDIA-*/kernel/; make module IGNORE_XEN_PRESENCE=y CC="gcc -DNV_VMAP_4_PRESENT -DNV_SIGNAL_STRUCT_RLIM";
    6: dom0: sudo cp nvidia.ko /lib/modules/4.4.31-11.pvops.qubes.x86_64/extra/
    7: dom0: sudo depmod -a; modinfo nvidia (all working will show up fine)
    8: dom0: EDIT GRUB or EFI; add rd.driver.blacklist=nouveau to kernel options; sudo grub2-mkconfig -o /boot/grub2/grub.cfg
    9: dom0; reboot and enjoy nvidia support.

I've tried to install nv drivers (375.26, gtx 950) using the above method, but couldn't get them to load properly. xinit fails; startx actually hangs without allowing me to switch to a different tty.
Error message varied depending on how I try to init X, either:
"parse_vt_settings: Cannot open /dev/tty0 (No such file or directory)"

or something like:
(II) NVIDIA: Using ~16GB of virtual memory for indirect memory
(II) NVIDIA: access.
(EE) NVIDIA(GPU-0): Failed to initialize DMA.
(EE) *** Aborting ***
(EE)
Fatal server error:
(EE) AddScreen/ScreenInit failed for driver 0

or something about "iops" which I didn't write down. As such, I'm still/back on nouveau

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

marmarek Dec 22, 2016

Member
Member

marmarek commented Dec 22, 2016

@0spinboson

This comment has been minimized.

Show comment
Hide comment
@0spinboson

0spinboson Dec 24, 2016

The only thing modinfo gives me is this, none of which seems xen-related to me. I didn't get the message you quoted consistently, though. More usually it was the 'cannot open /dev/tty0'. modinfo output attached.

modinfo nvidia.txt

Rechecking the nvidia driver manual installation guide a 4th time, the only deviation I see is that the /x64/ directory doesn't exist, which I didn't quite notice because the kernel module built without reporting any error. Could that be behind it? (I.e., /usr/src/kernels/2.6.34.1-12.xenlinux.qubes.x86_64/arch/x64/include/mach-xen should be present (if not - take it from kernel sources) ) If so, where can I find its contents?

The only thing modinfo gives me is this, none of which seems xen-related to me. I didn't get the message you quoted consistently, though. More usually it was the 'cannot open /dev/tty0'. modinfo output attached.

modinfo nvidia.txt

Rechecking the nvidia driver manual installation guide a 4th time, the only deviation I see is that the /x64/ directory doesn't exist, which I didn't quite notice because the kernel module built without reporting any error. Could that be behind it? (I.e., /usr/src/kernels/2.6.34.1-12.xenlinux.qubes.x86_64/arch/x64/include/mach-xen should be present (if not - take it from kernel sources) ) If so, where can I find its contents?

@loeken

This comment has been minimized.

Show comment
Hide comment
@loeken

loeken Dec 30, 2016

@andrewdavidwong thanks for formatting, sorry for my late response.
So I also tried the approach shown in that google groups post ( https://groups.google.com/d/topic/qubes-users/v26zXkiNElg/discussion ). And I successfully built the module and could load it, modinfo shows what @0spinboson posted in the last response:

filename:       /lib/modules/4.4.31-11.pvops.qubes.x86_64/extra/nvidia.ko
alias:          char-major-195-*
version:        375.26
supported:      external
license:        NVIDIA
srcversion:     7850503DF85713C6E0D88A3
alias:          pci:v000010DEd00000E00sv*sd*bc04sc80i00*
alias:          pci:v000010DEd*sv*sd*bc03sc02i00*
alias:          pci:v000010DEd*sv*sd*bc03sc00i00*
depends:        
vermagic:       4.4.31-11.pvops.qubes.x86_64 SMP mod_unload 
parm:           NVreg_Mobile:int
parm:           NVreg_ResmanDebugLevel:int
parm:           NVreg_RmLogonRC:int
parm:           NVreg_ModifyDeviceFiles:int
parm:           NVreg_DeviceFileUID:int
parm:           NVreg_DeviceFileGID:int
parm:           NVreg_DeviceFileMode:int
parm:           NVreg_UpdateMemoryTypes:int
parm:           NVreg_InitializeSystemMemoryAllocations:int
parm:           NVreg_UsePageAttributeTable:int
parm:           NVreg_MapRegistersEarly:int
parm:           NVreg_RegisterForACPIEvents:int
parm:           NVreg_CheckPCIConfigSpace:int
parm:           NVreg_EnablePCIeGen3:int
parm:           NVreg_EnableMSI:int
parm:           NVreg_TCEBypassMode:int
parm:           NVreg_UseThreadedInterrupts:int
parm:           NVreg_MemoryPoolSize:int
parm:           NVreg_RegistryDwords:charp
parm:           NVreg_RmMsg:charp
parm:           NVreg_AssignGpus:charp

I also disabled nouveau like by adding
rd.driver.blacklist=nouveau
to /etc/default/grub to the cmdline_linux line and regenerated grub.cfg with grub2-mkconf.

however when issuing lscpi -v -s 02:00.0 it shows me that both modules nouveau and nvidia are loaded but that nouveau is still in use.

[loeken@dom0 ~]$ lspci -v -s 02:00.0
02:00.0 VGA compatible controller: NVIDIA Corporation GM206 [GeForce GTX 950] (rev a1) (prog-if 00 [VGA controller])
	Subsystem: Micro-Star International Co., Ltd. [MSI] Device 8c92
	Physical Slot: 2
	Flags: bus master, fast devsel, latency 0, IRQ 177, NUMA node 0
	Memory at fa000000 (32-bit, non-prefetchable) [size=16M]
	Memory at e0000000 (64-bit, prefetchable) [size=256M]
	Memory at f0000000 (64-bit, prefetchable) [size=32M]
	I/O ports at e000 [size=128]
	Expansion ROM at fb000000 [disabled] [size=512K]
	Capabilities: <access denied>
	Kernel driver in use: nouveau
	Kernel modules: nouveau, nvidia

I recorded my steps as a video and uploaded to youtube for clarification
https://www.youtube.com/watch?v=BvJYEkiyeoc

any ideas how to actually disable nouveau?

loeken commented Dec 30, 2016

@andrewdavidwong thanks for formatting, sorry for my late response.
So I also tried the approach shown in that google groups post ( https://groups.google.com/d/topic/qubes-users/v26zXkiNElg/discussion ). And I successfully built the module and could load it, modinfo shows what @0spinboson posted in the last response:

filename:       /lib/modules/4.4.31-11.pvops.qubes.x86_64/extra/nvidia.ko
alias:          char-major-195-*
version:        375.26
supported:      external
license:        NVIDIA
srcversion:     7850503DF85713C6E0D88A3
alias:          pci:v000010DEd00000E00sv*sd*bc04sc80i00*
alias:          pci:v000010DEd*sv*sd*bc03sc02i00*
alias:          pci:v000010DEd*sv*sd*bc03sc00i00*
depends:        
vermagic:       4.4.31-11.pvops.qubes.x86_64 SMP mod_unload 
parm:           NVreg_Mobile:int
parm:           NVreg_ResmanDebugLevel:int
parm:           NVreg_RmLogonRC:int
parm:           NVreg_ModifyDeviceFiles:int
parm:           NVreg_DeviceFileUID:int
parm:           NVreg_DeviceFileGID:int
parm:           NVreg_DeviceFileMode:int
parm:           NVreg_UpdateMemoryTypes:int
parm:           NVreg_InitializeSystemMemoryAllocations:int
parm:           NVreg_UsePageAttributeTable:int
parm:           NVreg_MapRegistersEarly:int
parm:           NVreg_RegisterForACPIEvents:int
parm:           NVreg_CheckPCIConfigSpace:int
parm:           NVreg_EnablePCIeGen3:int
parm:           NVreg_EnableMSI:int
parm:           NVreg_TCEBypassMode:int
parm:           NVreg_UseThreadedInterrupts:int
parm:           NVreg_MemoryPoolSize:int
parm:           NVreg_RegistryDwords:charp
parm:           NVreg_RmMsg:charp
parm:           NVreg_AssignGpus:charp

I also disabled nouveau like by adding
rd.driver.blacklist=nouveau
to /etc/default/grub to the cmdline_linux line and regenerated grub.cfg with grub2-mkconf.

however when issuing lscpi -v -s 02:00.0 it shows me that both modules nouveau and nvidia are loaded but that nouveau is still in use.

[loeken@dom0 ~]$ lspci -v -s 02:00.0
02:00.0 VGA compatible controller: NVIDIA Corporation GM206 [GeForce GTX 950] (rev a1) (prog-if 00 [VGA controller])
	Subsystem: Micro-Star International Co., Ltd. [MSI] Device 8c92
	Physical Slot: 2
	Flags: bus master, fast devsel, latency 0, IRQ 177, NUMA node 0
	Memory at fa000000 (32-bit, non-prefetchable) [size=16M]
	Memory at e0000000 (64-bit, prefetchable) [size=256M]
	Memory at f0000000 (64-bit, prefetchable) [size=32M]
	I/O ports at e000 [size=128]
	Expansion ROM at fb000000 [disabled] [size=512K]
	Capabilities: <access denied>
	Kernel driver in use: nouveau
	Kernel modules: nouveau, nvidia

I recorded my steps as a video and uploaded to youtube for clarification
https://www.youtube.com/watch?v=BvJYEkiyeoc

any ideas how to actually disable nouveau?

@0spinboson

This comment has been minimized.

Show comment
Hide comment
@0spinboson

0spinboson Dec 30, 2016

I've tried to do so by uninstalling anything nouveau-related, rebuilding initramfs, then grub2-mkconfig. But the 'best' outcome I get afterwards is the nvidia driver failing to load properly, and X not initializing and/or hanging (while giving one of several different errors, with which Google could not help me). That said, I'm still pretty stupid when it comes to linux, so my being unable to get it to work is most likely due to me lacking experience.

I've tried to do so by uninstalling anything nouveau-related, rebuilding initramfs, then grub2-mkconfig. But the 'best' outcome I get afterwards is the nvidia driver failing to load properly, and X not initializing and/or hanging (while giving one of several different errors, with which Google could not help me). That said, I'm still pretty stupid when it comes to linux, so my being unable to get it to work is most likely due to me lacking experience.

@tonsimple

This comment has been minimized.

Show comment
Hide comment
@tonsimple

tonsimple Jan 12, 2017

This might be relevant to anyone still looking into this
https://groups.google.com/forum/#!topic/qubes-users/v26zXkiNElg

Basically, I've tried, build and successfully install driver, but x dies due to a nefarious "Failed to allocate sofware rendering cache surface: out of memory" error that is notorious NVIDIA compatibility error. I dunno what to do next. Might try doing a no-igfx parameter, but I don't have much hope.

Doomed to use integrated graphics for now.

This might be relevant to anyone still looking into this
https://groups.google.com/forum/#!topic/qubes-users/v26zXkiNElg

Basically, I've tried, build and successfully install driver, but x dies due to a nefarious "Failed to allocate sofware rendering cache surface: out of memory" error that is notorious NVIDIA compatibility error. I dunno what to do next. Might try doing a no-igfx parameter, but I don't have much hope.

Doomed to use integrated graphics for now.

@andrewdavidwong andrewdavidwong added the task label Apr 3, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment