So when I tried to launch any VM I would get this error:
Kernel driver not installed (rc=-1908)
The VirtualBox Linux kernel driver is either not loaded or not set up correctly. Please try setting it up again by executing
'/sbin/vboxconfig'
as root.
If your system has EFI Secure Boot enabled you may also need to sign the kernel modules (vboxdrv, vboxnetflt, vboxnetadp, vboxpci) before you can load them. Please see your Linux system's documentation for more information.
where: suplibOsInit what: 3 VERR_VM_DRIVER_NOT_INSTALLED (-1908) - The support driver is not installed. On linux, open returned ENOENT.
I can confirm I am not using secure boot.
Running:
uname -r
Reveals I am using this kernel:
7.1.1-2-cachyos
I have verified the header kernel packages are installed:
⯠pacman -Q | grep headers
linux-api-headers 1:7.0-1
linux-cachyos-headers 7.1.1-2
linux-cachyos-lts-headers 6.18.36-1
I have installed virtualbox-host-dkms which replaced this package virtualbox-host-modules-arch and I believe it has rebuilt and installed.
I have rebooted however still the same error message.
I donât feel like replacing the kernel with a different one nor do I want to run '/sbin/vboxconfig' I would rather install what needs to be installed via the package manager.
It shows that the status was built for the lts kernel:
⯠dkms status
vboxhost/7.2.8_OSE, 6.18.36-1-cachyos-lts, x86_64: installed
Me manually building it for my kernel results in this error:
⯠sudo dkms install vboxhost/7.2.8_OSE -k $(uname -r)
Sign command: /usr/lib/modules/7.1.1-2-cachyos/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub
Building module(s)...(bad exit status: 2)
Failed command:
make -j24 KERNELRELEASE=7.1.1-2-cachyos -C /usr/lib/modules/7.1.1-2-cachyos/build M=/var/lib/dkms/vboxhost/7.2.8_OSE/build LLVM=1
Error! Bad return status for module build on kernel: 7.1.1-2-cachyos (x86_64)
Consult /var/lib/dkms/vboxhost/7.2.8_OSE/build/make.log for more information.
I think it might be a gcc versioning difference but not sure how to fix this?