Hello.

I'm using Ubuntu 24.04 right now,but what I'm trying to do is to virtualize
Debian 12 as a vm using qemu + kvm + virt-manager and I want to passthru my
gpu from Ubuntu to Debian. And infact this is what I did. Debian is running
now,but I'm facing a problem with the nvidia driver. This is how I have
installed it :



   1.

   added to /etc/apt/sources.list these repos :


deb http://deb.debian.org/debian/ bookworm contrib main non-free
non-free-firmware

deb-src http://deb.debian.org/debian/ bookworm main non-free-firmware

deb http://deb.debian.org/debian/ bookworm-updates contrib main non-free
non-free-firmware

deb-src http://deb.debian.org/debian/ bookworm-updates contrib main
non-free non-free-firmware

deb http://deb.debian.org/debian/ bookworm-proposed-updates main non-free
non-free-firmware

deb-src http://deb.debian.org/debian/ bookworm-proposed-updates main
non-free non-free-firmware

deb http://deb.debian.org/debian/ bookworm-backports contrib main non-free
non-free-firmware

deb-src http://deb.debian.org/debian/ bookworm-backports contrib main
non-free non-free-firmware

deb http://security.debian.org/debian-security bookworm-security main
non-free non-free-firmware

deb-src http://security.debian.org/debian-security bookworm-security main
non-free non-free-firmware


and then :


2)

# apt install nvidia-detect nvidia-driver


Let's give a look at what happened when I have modprobed the nvidia driver
:


root@mario-Standard-PC:/home/marietto# sudo modprobe nvidia

modprobe: ERROR: could not insert 'nvidia_current': Key was rejected by
service

modprobe: ERROR: ../libkmod/libkmod-module.c:1047 command_do() Error
running install command 'modprobe -i nvidia-current ' for module nvidia:
retcode 1

modprobe: ERROR: could not insert 'nvidia': Invalid argument

Loading of module with unavailable key is rejected


I've googled a little bit to find a solution and I read that I should use
the script sign-file to sign the nvidia driver,but it didn't work :


/usr/lib/linux-kbuild-6.1/scripts/sign-file sha512
/var/lib/shim-signed/mok/MOK.priv /var/lib/shim-signed/mok/MOK.der
/lib/modules/5.19.0-23-generic/updates/dkms/nvidia.ko

At main.c:298:

- SSL error:FFFFFFFF80000002:system library::No such file or directory:
../crypto/bio/bss_file.c:67

- SSL error:10000080:BIO routines::no such file: ../crypto/bio/bss_file.c:75

sign-file: /lib/modules/5.19.0-23-generic/updates/dkms/nvidia.ko


it seems that I'm not able to sign the driver because the presence of some
bugs ?


This is too much technical for me at this pont to be able to find a fix for
this ugly bug and I'm asking some help.

-- 
Mario.

Reply via email to