Open Yeshey opened 1 year ago
Can confirm that builds fine in nixOS 21.05 (where nix version is 2.3.16)
> nix --version
nix (Nix) 2.3.16
One problem seems to be that the folder is one level up too many. It's like this now:
.
|-- NVIDIA-Linux-x86_64-460.32.03-grid
| |-- 10_nvidia.json
| |-- 10_nvidia_wayland.json
| |-- 32
| | |-- libEGL.so.1.1.0
| | |-- libEGL_nvidia.so.460.32.03
| | |-- libGL.so.1.7.0
| | |-- libGLESv1_CM.so.1.2.0
| | |-- libGLESv1_CM_nvidia.so.460.32.03
| | |-- libGLESv2.so.2.1.0
| | |-- libGLESv2_nvidia.so.460.32.03
| | |-- libGLX.so.0
| | |-- libGLX_nvidia.so.460.32.03
| | |-- libGLdispatch.so.0
| | |-- libOpenCL.so.1.0.0
| | |-- libOpenGL.so.0
| | |-- libcuda.so.460.32.03
| | |-- libglvnd_install_checker
| | | |-- glvnd_check
| | | `-- libGLX_installcheck.so.0
When in the 21.05 version it is like this:
.
|-- 10_nvidia.json
|-- 10_nvidia_wayland.json
|-- 32
| |-- libEGL.so.1.1.0
| |-- libEGL_nvidia.so.460.32.03
| |-- libGL.so.1.7.0
| |-- libGLESv1_CM.so.1.2.0
| |-- libGLESv1_CM_nvidia.so.460.32.03
| |-- libGLESv2.so.2.1.0
| |-- libGLESv2_nvidia.so.460.32.03
| |-- libGLX.so.0
| |-- libGLX_nvidia.so.460.32.03
| |-- libGLdispatch.so.0
| |-- libOpenCL.so.1.0.0
| |-- libOpenGL.so.0
| |-- libcuda.so.460.32.03
| |-- libglvnd_install_checker
| | |-- glvnd_check
| | `-- libGLX_installcheck.so.0
| |-- libnvcuvid.so.460.32.03
| |-- libnvidia-allocator.so.460.32.03
| |-- libnvidia-compiler.so.460.32.03
after fixing that though, by moving the contents one level up, I get another error:
setting SOURCE_DATE_EPOCH to timestamp 1609097498 of file NVIDIA-Linux-x86_64-460.32.03-grid/.manifest
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
applying patch /nix/store/k8fdj3kbshy7nz2ri0sb3w3nfpal4jfb-nvidia-vgpu-merge.patch
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Naur NVIDIA-Linux-x86_64-460.32.03-grid/kernel/conftest.sh NVIDIA-Linux-x86_64-460.32.03-grid-new/kernel/conftest.sh
|--- NVIDIA-Linux-x86_64-460.32.03-grid/kernel/conftest.sh 2020-12-27 11:31:38.000000000 -0800
|+++ NVIDIA-Linux-x86_64-460.32.03-grid-new/kernel/conftest.sh 2021-04-16 20:45:13.893946912 -0700
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
2 out of 2 hunks ignored
Don't know what's this patchPhase, can't find it in this repo. And the patch seems to be in the referenced path /nix/store/k8fdj3kbshy7nz2ri0sb3w3nfpal4jfb-nvidia-vgpu-merge.patch
, don't know why it's not finding it if it is
I made Vgpu work for me in a very hacky way. My module is not in a very good state so I don't dare to make a pull request, it needs a nix guy to check and fix a lot of stuff about it. But it is a better bet on making vgpu work on recent versions of nixOS than this repo https://github.com/Yeshey/nixos-nvidia-vgpu_nixOS22.11_WIP/tree/master
Was trying to make this work on my nixOS machine, changed my kernel to 5.4 to make sure the environment was as close as possible to the tested one:
Added the files
NVIDIA-Linux-x86_64-460.32.04-vgpu-kvm.run
andNVIDIA-Linux-x86_64-460.32.03-grid.run
as the first error logs suggested with the commandnix-store --add-fixed sha256 <filename>
. But it seems to not be working in nixOS 22.11. I'm using flakes, but also tried in a VM without flakes and the error is the samethese are the error logs:
Could this be a problem related to the nix version?
(Also the link in "Additional Notes" in the README goes to a "PAGE NOT FOUND" error)
system info:
Referals
@danielfullmer