Adding vGPU to VM

Hi,
I’m currently trying to add a vGPU to a virtual machine on our VX-Rail system. The VM is running under SuSE SLES 15 SP1. I added the vGPU and tried to install the driver.
Before I set under
/etc/modprobe.d/10-unsupported-modules.conf
allow_unsupported_modules 0
and then I tried to install NVIDIA-Linux-x86_64-440.87-grid.run (we run this version on another machine).
The module building is working, but the script is not able to load the driver.
Any idea ? (secure boot is disabled as well)


nvidia-installer log file ‘/var/log/nvidia-installer.log’
creation time: Mon Jan 10 14:11:22 2022
installer version: 440.87

PATH: /usr/local/Modules/bin:/sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/usr/bin:/bin

nvidia-installer command line:
./nvidia-installer

Using: nvidia-installer ncurses v6 user interface
→ Detected 32 CPUs online; setting concurrency level to 32.
→ Installing NVIDIA driver version 440.87.
→ Running distribution scripts
executing: ‘/usr/lib/nvidia/pre-install’…
grep: /etc/sysconfig/kernel: No such file or directory
→ done.
→ The distribution-provided pre-install script completed successfully. If this is the first time you have run the installer, this script may have helped disable Nouveau, but
a reboot may be required first. Would you like to continue, or would you prefer to abort installation to reboot the system? (Answer: Continue installation)
→ Performing CC sanity check with CC="/usr/bin/cc".
→ Performing CC check.
→ Kernel source path: ‘/lib/modules/4.12.14-197.78-default/source’
→ Kernel output path: ‘/lib/modules/4.12.14-197.78-default/build’
→ Performing Compiler check.
→ Performing Dom0 check.
→ Performing Xen check.
→ Performing PREEMPT_RT check.
→ Performing vgpu_kvm check.
→ Cleaning kernel module build directory.
executing: ‘cd ./kernel; /usr/bin/make -k -j32 clean NV_EXCLUDE_KERNEL_MODULES="" SYSSRC="/lib/modules/4.12.14-197.78-default/source" SYSOUT="/lib/modules/4.12.14-197.78-de
fault/build"’…
rm -f -r conftest
make[1]: Entering directory ‘/usr/src/linux-4.12.14-197.78’

Building modules, stage 2.
MODPOST 4 modules
CC /tmp/selfgz18917/NVIDIA-Linux-x86_64-440.87-grid/kernel/nvidia-drm.mod.o
CC /tmp/selfgz18917/NVIDIA-Linux-x86_64-440.87-grid/kernel/nvidia-modeset.mod.o
CC /tmp/selfgz18917/NVIDIA-Linux-x86_64-440.87-grid/kernel/nvidia-uvm.mod.o
CC /tmp/selfgz18917/NVIDIA-Linux-x86_64-440.87-grid/kernel/nvidia.mod.o
LD [M] /tmp/selfgz18917/NVIDIA-Linux-x86_64-440.87-grid/kernel/nvidia-drm.ko
LD [M] /tmp/selfgz18917/NVIDIA-Linux-x86_64-440.87-grid/kernel/nvidia-modeset.ko
LD [M] /tmp/selfgz18917/NVIDIA-Linux-x86_64-440.87-grid/kernel/nvidia-uvm.ko
LD [M] /tmp/selfgz18917/NVIDIA-Linux-x86_64-440.87-grid/kernel/nvidia.ko
make[2]: Leaving directory ‘/usr/src/linux-4.12.14-197.78-obj/x86_64/default’
make[1]: Leaving directory ‘/usr/src/linux-4.12.14-197.78’
→ done.
→ Kernel module compilation complete.
→ The target kernel has CONFIG_MODULE_SIG set, which means that it supports cryptographic signatures on kernel modules. On some systems, the kernel may refuse to load modules
without a valid signature from a trusted key. This system also has UEFI Secure Boot enabled; many distributions enforce module signature verification on UEFI systems when Sec
ure Boot is enabled. Would you like to sign the NVIDIA kernel module? (Answer: Install without signing)
ERROR: The kernel module failed to load. Secure boot is enabled on this system, so this is likely because it was not signed by a key that is trusted by the kernel. Please try
installing the driver again, and sign the kernel module when prompted to do so.
ERROR: Unable to load the kernel module ‘nvidia.ko’. This happens most frequently when this kernel module was built against the wrong or improperly configured kernel sources,
with a version of gcc that differs from the one used to build the target kernel, or if another driver, such as nouveau, is present and prevents the NVIDIA kernel module from
obtaining ownership of the NVIDIA GPU(s), or no NVIDIA GPU installed in this system is supported by this NVIDIA Linux graphics driver release.

Please see the log entries ‘Kernel module load error’ and ‘Kernel messages’ at the end of the file ‘/var/log/nvidia-installer.log’ for more information.
→ Kernel module load error: Operation not permitted
→ Kernel messages:

[ 2167.032811] nvidia: Loading of unsigned module is rejected, kernel is locked down
ERROR: Installation has failed. Please see the file ‘/var/log/nvidia-installer.log’ for details. You may find suggestions on fixing installation problems in the README avail
able on the Linux driver download page at www.nvidia.com.