P4 vGPU Install Linux KVM Error

P4 vGPU drivers won’t install on Debian 12. Keep getting the below error. Log attached. Any ideas?

“ERROR: Unable to load the kernel module ‘nvidia-vgpu-vfio.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 device(s), or no NVIDIA device installed in this system is supported by this NVIDIA Linux graphics driver release.”

nvidia-installer log file ‘/var/log/nvidia-installer.log’
creation time: Wed Oct 2 08:17:47 2024
installer version: 525.147.01

PATH: /root/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

nvidia-installer command line:
./nvidia-installer
–dkms
-m=kernel

Using: nvidia-installer ncurses v6 user interface
→ Detected 8 CPUs online; setting concurrency level to 8.
→ Installing NVIDIA driver version 525.147.01.
→ Performing CC sanity check with CC=“/usr/bin/cc”.
→ Performing CC check.
→ Kernel source path: ‘/lib/modules/6.1.0-25-amd64/source’
→ Kernel output path: ‘/lib/modules/6.1.0-25-amd64/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 -j8 NV_EXCLUDE_KERNEL_MODULES=“” SYSSRC=“/lib/modules/6.1.0-25-amd64/source” SYSOUT=“/lib/modules/6.1.0-25-amd64/build” clean’…
rm -f -r conftest
make[1]: Entering directory ‘/usr/src/linux-headers-6.1.0-25-common’
make[2]: Entering directory ‘/usr/src/linux-headers-6.1.0-25-amd64’
make[2]: Leaving directory ‘/usr/src/linux-headers-6.1.0-25-amd64’
make[1]: Leaving directory ‘/usr/src/linux-headers-6.1.0-25-common’
→ Building kernel modules
executing: 'cd kernel; /usr/bin/make -k -j8 NV_EXCLUDE_KERNEL_MODULES=“” SYSSRC=“/lib/modules/6.1.0-25-amd64/source” SYSOUT=“/lib/modules/6.1.0-25-amd64/build” '…
make[1]: Entering directory ‘/usr/src/linux-headers-6.1.0-25-common’
make[2]: Entering directory ‘/usr/src/linux-headers-6.1.0-25-amd64’
SYMLINK /tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia/nv-kernel.o
CONFTEST: hash__remap_4k_pfn
CONFTEST: set_pages_uc
CONFTEST: list_is_first
CONFTEST: set_memory_uc
CONFTEST: set_memory_array_uc
CONFTEST: set_pages_array_uc
CONFTEST: ioremap_cache
CONFTEST: ioremap_wc
CONFTEST: pci_get_domain_bus_and_slot
CONFTEST: get_num_physpages
CONFTEST: pde_data
CONFTEST: xen_ioemu_inject_msi
CONFTEST: phys_to_dma
CONFTEST: get_dma_ops
CONFTEST: dma_attr_macros
CONFTEST: dma_map_page_attrs
CONFTEST: write_cr4
CONFTEST: of_find_node_by_phandle
CONFTEST: of_node_to_nid
CONFTEST: pnv_pci_get_npu_dev
CONFTEST: of_get_ibm_chip_id
CONFTEST: pci_bus_address
CONFTEST: pci_stop_and_remove_bus_device
CONFTEST: register_cpu_notifier
CONFTEST: cpuhp_setup_state
CONFTEST: dma_map_resource
CONFTEST: get_backlight_device_by_name
CONFTEST: timer_setup
CONFTEST: pci_enable_msix_range
CONFTEST: kernel_read_has_pointer_pos_arg
CONFTEST: kernel_write_has_pointer_pos_arg
CONFTEST: dma_direct_map_resource
CONFTEST: tegra_get_platform
CONFTEST: tegra_bpmp_send_receive
CONFTEST: flush_cache_all
CONFTEST: vmf_insert_pfn
CONFTEST: jiffies_to_timespec
CONFTEST: ktime_get_raw_ts64
CONFTEST: ktime_get_real_ts64
CONFTEST: full_name_hash
CONFTEST: pci_enable_atomic_ops_to_root
CONFTEST: vga_tryget
CONFTEST: pgprot_decrypted
CONFTEST: cc_mkdec
CONFTEST: seq_read_iter
CONFTEST: unsafe_follow_pfn
CONFTEST: drm_gem_object_get
CONFTEST: drm_gem_object_put_unlocked
CONFTEST: add_memory_driver_managed
CONFTEST: device_property_read_u64
CONFTEST: devm_of_platform_populate
CONFTEST: of_dma_configure
CONFTEST: of_property_count_elems_of_size
CONFTEST: of_property_read_variable_u8_array
CONFTEST: i2c_new_client_device
CONFTEST: i2c_unregister_device
CONFTEST: of_get_named_gpio
CONFTEST: devm_gpio_request_one
CONFTEST: gpio_direction_input
CONFTEST: gpio_direction_output
CONFTEST: gpio_get_value
CONFTEST: gpio_set_value
CONFTEST: gpio_to_irq
CONFTEST: icc_get
CONFTEST: icc_put
CONFTEST: icc_set_bw
CONFTEST: dma_buf_export_args
CONFTEST: dma_buf_ops_has_kmap
CONFTEST: dma_buf_ops_has_kmap_atomic
CONFTEST: dma_buf_ops_has_map
CONFTEST: dma_buf_ops_has_map_atomic
CONFTEST: dma_buf_has_dynamic_attachment
CONFTEST: dma_buf_attachment_has_peer2peer
CONFTEST: dma_set_mask_and_coherent
CONFTEST: devm_clk_bulk_get_all
CONFTEST: get_task_ioprio
CONFTEST: mdev_set_iommu_device
CONFTEST: vfio_register_notifier
CONFTEST: vfio_register_emulated_iommu_dev
CONFTEST: mdev_parent_dev
CONFTEST: mdev_dev
CONFTEST: mdev_get_type_group_id
CONFTEST: mdev_uuid
CONFTEST: mdev_from_dev
CONFTEST: pci_irq_vector_helpers
CONFTEST: kvmalloc
CONFTEST: vfio_uninit_group_dev
CONFTEST: vfio_pin_pages_has_vfio_device_arg
CONFTEST: vfio_pin_pages_has_pages_arg
CONFTEST: vfio_alloc_device
CONFTEST: vfio_free_device
CONFTEST: is_export_symbol_gpl_of_node_to_nid
CONFTEST: is_export_symbol_gpl_sme_active
CONFTEST: is_export_symbol_present_swiotlb_map_sg_attrs
CONFTEST: is_export_symbol_present_swiotlb_dma_ops
CONFTEST: is_export_symbol_present___close_fd
CONFTEST: is_export_symbol_present_close_fd
CONFTEST: is_export_symbol_present_get_unused_fd
CONFTEST: is_export_symbol_present_get_unused_fd_flags
CONFTEST: is_export_symbol_present_nvhost_get_default_device
CONFTEST: is_export_symbol_present_nvhost_syncpt_unit_interface_get_byte_offset
CONFTEST: is_export_symbol_present_nvhost_syncpt_unit_interface_get_aperture
CONFTEST: is_export_symbol_present_tegra_dce_register_ipc_client
CONFTEST: is_export_symbol_present_tegra_dce_unregister_ipc_client
CONFTEST: is_export_symbol_present_tegra_dce_client_ipc_send_recv
CONFTEST: is_export_symbol_present_dram_clk_to_mc_clk
CONFTEST: is_export_symbol_present_get_dram_num_channels
CONFTEST: is_export_symbol_present_tegra_dram_types
CONFTEST: is_export_symbol_present_pxm_to_node
CONFTEST: is_export_symbol_present_screen_info
CONFTEST: dma_ops
CONFTEST: swiotlb_dma_ops
CONFTEST: noncoherent_swiotlb_dma_ops
CONFTEST: vm_fault_has_address
CONFTEST: vm_insert_pfn_prot
CONFTEST: vmf_insert_pfn_prot
CONFTEST: vm_ops_fault_removed_vma_arg
CONFTEST: vmbus_channel_has_ringbuffer_page
CONFTEST: kmem_cache_has_kobj_remove_work
CONFTEST: sysfs_slab_unlink
CONFTEST: proc_ops
CONFTEST: timespec64
CONFTEST: vmalloc_has_pgprot_t_arg
CONFTEST: mm_has_mmap_lock
CONFTEST: pci_channel_state
CONFTEST: pci_dev_has_ats_enabled
CONFTEST: remove_memory_has_nid_arg
CONFTEST: add_memory_driver_managed_has_mhp_flags_arg
CONFTEST: num_registered_fb
CONFTEST: pci_driver_has_driver_managed_dma
CONFTEST: vm_area_struct_has_const_vm_flags
CONFTEST: mdev_parent_ops
CONFTEST: mdev_parent
CONFTEST: vfio_info_add_capability_has_cap_type_id_arg
CONFTEST: vfio_device_gfx_plane_info
CONFTEST: vm_fault_t
CONFTEST: vfio_device_migration_has_start_pfn
CONFTEST: mdev_parent_ops_has_open_device
CONFTEST: mdev_parent_ops_has_device_driver
CONFTEST: vfio_device_mig_state
CONFTEST: vfio_migration_ops
CONFTEST: mdev_driver_has_supported_type_groups
CONFTEST: vfio_device_ops_has_dma_unmap
CONFTEST: vfio_migration_ops_has_migration_get_data_size
CONFTEST: dom0_kernel_present
CONFTEST: nvidia_vgpu_kvm_build
CONFTEST: nvidia_grid_build
CONFTEST: nvidia_grid_csp_build
CONFTEST: get_user_pages
CONFTEST: get_user_pages_remote
CONFTEST: pin_user_pages
CONFTEST: pin_user_pages_remote
CONFTEST: pm_runtime_available
CONFTEST: pci_class_multimedia_hd_audio
CONFTEST: drm_available
CONFTEST: vfio_pci_core_available
CC [M] /tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia/nv.o
CC [M] /tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia/nv-pci.o
CC [M] /tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia/nv-dmabuf.o
CC [M] /tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia/nv-nano-timer.o
CC [M] /tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia/nv-acpi.o
CC [M] /tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia/nv-cray.o
CC [M] /tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia/nv-i2c.o
CC [M] /tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia/nv-dma.o
CC [M] /tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia/nv-mmap.o
CC [M] /tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia/nv-p2p.o
CC [M] /tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia/nv-pat.o
CC [M] /tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia/nv-procfs.o
CC [M] /tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia/nv-usermap.o
CC [M] /tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia/nv-vm.o
CC [M] /tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia/nv-vtophys.o
/tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia/nv-mmap.c: In function ‘nv_encode_caching’:
/tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia/nv-mmap.c:353:16: warning: this statement may fall through [-Wimplicit-fallthrough=]
353 | if (NV_ALLOW_CACHING(memory_type))
| ^
/tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia/nv-mmap.c:356:9: note: here
356 | default:
| ^~~~~~~
CC [M] /tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia/os-interface.o
CC [M] /tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia/os-mlock.o
CC [M] /tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia/os-pci.o
CC [M] /tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia/os-registry.o
CC [M] /tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia/os-usermap.o
CC [M] /tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia/nv-modeset-interface.o
CC [M] /tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia/nv-pci-table.o
CC [M] /tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia/nv-kthread-q.o
CC [M] /tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia/nv-memdbg.o
CC [M] /tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia/nv-ibmnpu.o
CC [M] /tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia/nv-report-err.o
CC [M] /tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia/nv-rsync.o
CC [M] /tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia/nv-msi.o
CC [M] /tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia/nv-caps.o
CC [M] /tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia/nv-frontend.o
CC [M] /tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia/nv_uvm_interface.o
CC [M] /tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia/nv-vgpu-vfio-interface.o
CC [M] /tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia/nvlink_linux.o
CC [M] /tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia/nvlink_caps.o
CC [M] /tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia/linux_nvswitch.o
CC [M] /tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia/procfs_nvswitch.o
CC [M] /tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia/i2c_nvswitch.o
CC [M] /tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia-vgpu-vfio/nvidia-vgpu-vfio.o
CC [M] /tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia-vgpu-vfio/vgpu-vfio-mdev.o
CC [M] /tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia-vgpu-vfio/vgpu-devices.o
CC [M] /tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia-vgpu-vfio/nv-pci-table.o
CC [M] /tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia-vgpu-vfio/vgpu-vfio-pci-core.o
ld -r -o /tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia/nv-interface.o /tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia/nv.o /tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia/nv-pci.o /tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia/nv-dmabuf.o /tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia/nv-nano-timer.o /tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia/nv-acpi.o /tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia/nv-cray.o /tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia/nv-dma.o /tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia/nv-i2c.o /tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia/nv-mmap.o /tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia/nv-p2p.o /tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia/nv-pat.o /tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01
-vgpu-kvm/kernel/nvidia/nv-procfs.o /tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia/nv-usermap.o /tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia/nv-vm.o /tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia/nv-vtophys.o /tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia/os-interface.o /tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia/os-mlock.o /tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia/os-pci.o /tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia/os-registry.o /tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia/os-usermap.o /tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia/nv-modeset-interface.o /tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia/nv-pci-table.o /tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia/nv-kthread-q.o /tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/k
ernel/nvidia/nv-memdbg.o /tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia/nv-ibmnpu.o /tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia/nv-report-err.o /tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia/nv-rsync.o /tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia/nv-msi.o /tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia/nv-caps.o /tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia/nv-frontend.o /tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia/nv_uvm_interface.o /tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia/nv-vgpu-vfio-interface.o /tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia/nvlink_linux.o /tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia/nvlink_caps.o /tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia/linux_nvswitch.o /tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm
/kernel/nvidia/procfs_nvswitch.o /tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia/i2c_nvswitch.o
LD [M] /tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia.o
/tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia-vgpu-vfio/vgpu-devices.c: In function ‘nv_vfio_vgpu_vf_reg_access_hw’:
/tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia-vgpu-vfio/vgpu-devices.c:891:18: warning: the comparison will always evaluate as ‘true’ for the address of ‘data’ will never be NULL [-Waddress]
891 | if (!pdev || !pParams->data)
| ^
In file included from /tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia-vgpu-vfio/vgpu-devices.h:26,
from /tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia-vgpu-vfio/vgpu-devices.c:29:
/tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia-vgpu-vfio/nv-vgpu-ioctl.h:527:10: note: ‘data’ declared here
527 | NvU8 data[4];
| ^~~~
LD [M] /tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia-vgpu-vfio.o
MODPOST /tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/Module.symvers
CC [M] /tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia-vgpu-vfio.mod.o
CC [M] /tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia.mod.o
LD [M] /tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia-vgpu-vfio.ko
LD [M] /tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia.ko
BTF [M] /tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia-vgpu-vfio.ko
Skipping BTF generation for /tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia-vgpu-vfio.ko due to unavailability of vmlinux
BTF [M] /tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia.ko
Skipping BTF generation for /tmp/selfgz71264/NVIDIA-Linux-x86_64-525.147.01-vgpu-kvm/kernel/nvidia.ko due to unavailability of vmlinux
make[2]: Leaving directory ‘/usr/src/linux-headers-6.1.0-25-amd64’
make[1]: Leaving directory ‘/usr/src/linux-headers-6.1.0-25-common’
→ done.
→ Kernel module compilation complete.
ERROR: Unable to load the kernel module ‘nvidia-vgpu-vfio.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 device(s), or no NVIDIA device 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: Invalid argument
→ Kernel messages:
[ 3581.323688] nvidia: module verification failed: signature and/or required key missing - tainting kernel
[ 3581.479916] nvidia-nvlink: Nvlink Core is being initialized, major device number 242
[ 3581.479925] NVRM: loading NVIDIA UNIX x86_64 Kernel Module 525.147.01 Wed Oct 11 10:20:43 UTC 2023
[ 3581.614230] failing symbol_get of non-GPLONLY symbol nvidia_vgpu_vfio_get_ops.
[ 3581.614237] [nvidia-vgpu-vfio] Unable to get symbol for nvidia_vgpu_vfio_get_ops from nvidia.ko
[ 3594.185397] nvidia-nvlink: Unregistered Nvlink Core, major device number 242
[ 3594.357766] ACPI: bus type drm_connector unregistered
[ 4382.817721] ACPI: bus type drm_connector registered
[ 4383.021466] nvidia-nvlink: Nvlink Core is being initialized, major device number 242
[ 4383.021477] NVRM: loading NVIDIA UNIX x86_64 Kernel Module 525.147.01 Wed Oct 11 10:20:43 UTC 2023
[ 4383.160465] failing symbol_get of non-GPLONLY symbol nvidia_vgpu_vfio_get_ops.
[ 4383.160472] [nvidia-vgpu-vfio] Unable to get symbol for nvidia_vgpu_vfio_get_ops from nvidia.ko
[ 4412.902442] nvidia-nvlink: Unregistered Nvlink Core, major device number 242
[ 4413.074651] ACPI: bus type drm_connector unregistered
[ 7705.031738] ACPI: bus type drm_connector registered
[ 7705.193969] nvidia-nvlink: Nvlink Core is being initialized, major device number 242
[ 7705.193979] NVRM: loading NVIDIA UNIX x86_64 Kernel Module 525.147.01 Wed Oct 11 10:20:43 UTC 2023
[ 7705.320901] failing symbol_get of non-GPLONLY symbol nvidia_vgpu_vfio_get_ops.
[ 7705.320905] [nvidia-vgpu-vfio] Unable to get symbol for nvidia_vgpu_vfio_get_ops from nvidia.ko
[ 8228.685005] nvidia-nvlink: Unregistered Nvlink Core, major device number 242
[ 8252.081190] nvidia-nvlink: Nvlink Core is being initialized, major device number 242
[ 8252.081200] NVRM: loading NVIDIA UNIX x86_64 Kernel Module 525.147.01 Wed Oct 11 10:20:43 UTC 2023
[ 8252.214791] failing symbol_get of non-GPLONLY symbol nvidia_vgpu_vfio_get_ops.
[ 8252.214799] [nvidia-vgpu-vfio] Unable to get symbol for nvidia_vgpu_vfio_get_ops from nvidia.ko
[ 8355.664555] nvidia-nvlink: Unregistered Nvlink Core, major device number 242
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 available on the Linux driver download page at www.nvidia.com.