Vbox Kernel driver not installed (rc=-1908)

System was installed but i have problem. I saw all topic with this problem but didnt find answer.

installlinux% sudo vboxreload
Unloading modules: 
Loading modules: modprobe: ERROR: could not insert 'vboxnetadp': Key was rejected by service
modprobe: ERROR: could not insert 'vboxnetflt': Key was rejected by service
modprobe: ERROR: could not insert 'vboxdrv': Key was rejected by service

installlinux% 
installlinux% mhwd-kernel -li
Currently running: 5.19.16-hardened1-1-hardened (linux519)
The following kernels are installed in your system:
   * linux419
   * linux515
   * linux519
installlinux% 
installlinux% sudo pacman -S virtualbox-host-dkms
warning: virtualbox-host-dkms-6.1.38-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) virtualbox-host-dkms-6.1.38-1

Total Installed Size:  10.09 MiB
Net Upgrade Size:       0.00 MiB

:: Proceed with installation? [Y/n] y
(1/1) checking keys in keyring                                                    [##############################################] 100%
(1/1) checking package integrity                                                  [##############################################] 100%
(1/1) loading package files                                                       [##############################################] 100%
(1/1) checking for file conflicts                                                 [##############################################] 100%
(1/1) checking available disk space                                               [##############################################] 100%
:: Running pre-transaction hooks...
(1/1) Remove upgraded DKMS modules
==> dkms remove --no-depmod vboxhost/6.1.38_OSE -k 5.15.74-3-MANJARO
==> dkms remove --no-depmod vboxhost/6.1.38_OSE -k 5.19.16-hardened1-1-hardened
:: Processing package changes...
(1/1) reinstalling virtualbox-host-dkms                                           [##############################################] 100%
:: Running post-transaction hooks...
(1/2) Arming ConditionNeedsUpdate...
(2/2) Install DKMS modules
==> dkms install --no-depmod vboxhost/6.1.38_OSE -k 5.19.16-hardened1-1-hardened
==> dkms install --no-depmod vboxhost/6.1.38_OSE -k 5.15.74-3-MANJARO
==> depmod 5.19.16-hardened1-1-hardened
==> depmod 5.15.74-3-MANJARO
depmod: ERROR: failed to load symbols from /lib/modules/5.15.74-3-MANJARO/updates/dkms/vmmon.ko.xz: Invalid argument
depmod: ERROR: failed to load symbols from /lib/modules/5.15.74-3-MANJARO/updates/dkms/vmnet.ko.xz: Invalid argument

What topics? What have you tried?

Why do you think you need to do that? Had you rebooted beforehand?

FYI, third-party kernels are not supported.

Third party kernels are unsupported as noted - so you are on your own.

The error message is not related to your hardend kernel but your Manjaro kernel - but in no way related to virtual box (the vboxreload command) instead it relates to VMware - which is also unsupported on Manjaro - thus still on your own.

That is likely due to missing headers - try installing the headers for the 5.15 Manjaro kernel

sudo pacman -Syu linux515-headers
installlinux% uname -a
Linux installlinux 5.15.74-3-MANJARO #1 SMP PREEMPT Sat Oct 15 13:39:11 UTC 2022 x86_64 GNU/Linux
installlinux% sudo pacman -Syu linux515-headers
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
warning: linux515-headers-5.15.74-3 is up to date -- reinstalling
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

Packages (1) linux515-headers-5.15.74-3

Total Installed Size:  136.53 MiB
Net Upgrade Size:        0.00 MiB

:: Proceed with installation? [Y/n] y
(1/1) checking keys in keyring                                                    [##############################################] 100%
(1/1) checking package integrity                                                  [##############################################] 100%
(1/1) loading package files                                                       [##############################################] 100%
(1/1) checking for file conflicts                                                 [##############################################] 100%
(1/1) checking available disk space                                               [##############################################] 100%
:: Running pre-transaction hooks...
(1/1) Remove upgraded DKMS modules
==> dkms remove --no-depmod vboxhost/6.1.38_OSE -k 5.15.74-3-MANJARO
==> dkms remove --no-depmod vmware-workstation/16.2.4_20089737 -k 5.15.74-3-MANJARO
:: Processing package changes...
(1/1) reinstalling linux515-headers                                               [##############################################] 100%
:: Running post-transaction hooks...
(1/3) Arming ConditionNeedsUpdate...
(2/3) Updating module dependencies...
depmod: ERROR: failed to load symbols from /lib/modules/5.15.74-3-MANJARO/kernel/drivers/misc/vmmon.ko.xz: Invalid argument
depmod: ERROR: failed to load symbols from /lib/modules/5.15.74-3-MANJARO/kernel/drivers/net/vmnet.ko.xz: Invalid argument
(3/3) Install DKMS modules
==> dkms install --no-depmod vmware-workstation/16.2.4_20089737 -k 5.15.74-3-MANJARO
**modinfo: ERROR: could not get modinfo from 'vmmon': Invalid argument**
**modinfo: ERROR: could not get modinfo from 'vmnet': Invalid argument**
==> dkms install --no-depmod vboxhost/6.1.38_OSE -k 5.15.74-3-MANJARO
==> depmod 5.15.74-3-MANJARO
installlinux% 


for some users changed kernel to default.

The same problem with vmware

Could not open /dev/vmmon: No such file or directory.
Please make sure that the kernel module `vmmon' is loaded.

ps i was found, but in my pc security boot is disabled

I suppose you had SecureBoot enabled.
Module need to be signed to be able to load it & certificate properly enrolled in the bios.

https://ubuntu.com/blog/how-to-sign-things-for-secure-boots

#Generate KEY
openssl req -new -x509 -newkey rsa:2048 -keyout MOK.priv -outform DER -out MOK.der -nodes -days 36500 -subj "/CN=VMware/"

#IMPORT KEY IN UEFI DB
sudo mokutil --import MOK.der

    set enroll password not too complex

#Reboot and ENROLL KEY FROM BIOS

#"COMPILE VMWARE MODULE"
sudo vmware-modconfig --console --install-all

#SIGN DRIVER
sudo /usr/src/linux-headers-$(uname -r)/scripts/sign-file sha256 ./MOK.priv ./MOK.der $(modinfo -n vmmon)
sudo /usr/src/linux-headers-$(uname -r)/scripts/sign-file sha256 ./MOK.priv ./MOK.der $(modinfo -n vmnet)

or

sudo kmodsign sha256 ./MOK.priv ./MOK.der $(modinfo -n vmmon)
sudo kmodsign sha256 ./MOK.priv ./MOK.der $(modinfo -n vmnet)

#"LOAD MODULE"
sudo depmod -a
sudo modprobe vmmon
sudo modprobe vmnet
sudo systemctl restart vmware-workstation-server.service

#"CHECK IF MODULE LOADED"
sudo lsmod | egrep '(vmmon|vmnet)'

Please reboot system to Manjaro 5.15 then remove the linux-hardened kernel before you continue posting on this topic.

To me it looks like you are in a learning phase - I encourage you to continue your endeavour.

It also looks like an xy problem where you are posting about an attempted solution instead of the real issue.

  • Remove the custom kernel
  • Remove vmware
  • Remove any other custom package