After installing virtualbox from the main repo, I get this error message when trying to start a VM:
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.
Installed version:
# zypper se -s VirtualBox
Carregando dados do repositório...
Lendo os pacotes instalados...
S | Name | Type | Version | Arch | Repository
---+--------------------------------+--------+-----------------------------+-------------+----------------
| python3-virtualbox | pacote | 6.1.20-lp153.1.8 | x86_64 | Main Repository
i+ | virtualbox | pacote | 6.1.20-lp153.1.8 | x86_64 | Main Repository
| virtualbox-devel | pacote | 6.1.20-lp153.1.8 | x86_64 | Main Repository
| virtualbox-guest-desktop-icons | pacote | 6.1.20-lp153.1.8 | noarch | Main Repository
| virtualbox-guest-source | pacote | 6.1.20-lp153.1.8 | noarch | Main Repository
| virtualbox-guest-tools | pacote | 6.1.20-lp153.1.8 | x86_64 | Main Repository
| virtualbox-guest-x11 | pacote | 6.1.20-lp153.1.8 | x86_64 | Main Repository
| virtualbox-host-source | pacote | 6.1.20-lp153.1.8 | noarch | Main Repository
i | virtualbox-kmp-default | pacote | 6.1.20_k5.3.18_57-lp153.1.2 | x86_64 | Main Repository
| virtualbox-kmp-preempt | pacote | 6.1.20_k5.3.18_57-lp153.1.2 | x86_64 | Main Repository
i | virtualbox-qt | pacote | 6.1.20-lp153.1.8 | x86_64 | Main Repository
| virtualbox-vnc | pacote | 6.1.20-lp153.1.8 | x86_64 | Main Repository
| virtualbox-websrv | pacote | 6.1.20-lp153.1.8 | x86_64 | Main Repository
Journalctl shows these errors::
# journalctl | grep -i box
jun 10 04:18:49 bruno-03 systemd[1]: Starting VirtualBox Linux kernel module...
jun 10 04:18:49 bruno-03 vboxdrv.sh[1377]: vboxdrv.sh: Starting VirtualBox services.
jun 10 04:18:49 bruno-03 vboxdrv.sh[1473]: Starting VirtualBox services.
jun 10 04:18:49 bruno-03 vboxdrv.sh[1482]: Sources for building host modules are not present,
jun 10 04:18:49 bruno-03 vboxdrv.sh[1482]: Use 'sudo zypper install virtualbox-host-source kernel-devel kernel-default-devel' to install them. Quitting ..
jun 10 04:18:49 bruno-03 vboxdrv.sh[1377]: vboxdrv.sh: failed: modprobe vboxdrv failed. Please use 'dmesg' to find out why.
jun 10 04:18:49 bruno-03 vboxdrv.sh[1505]: failed: modprobe vboxdrv failed. Please use 'dmesg' to find out why.
jun 10 04:18:49 bruno-03 systemd[1]: vboxdrv.service: Control process exited, code=exited, status=1/FAILURE
jun 10 04:18:49 bruno-03 systemd[1]: vboxdrv.service: Failed with result 'exit-code'.
jun 10 04:18:49 bruno-03 systemd[1]: Failed to start VirtualBox Linux kernel module.
jun 10 04:18:49 bruno-03 systemd[1]: Starting vboxautostart-service.service...
jun 10 04:18:49 bruno-03 vboxautostart-service.sh[1506]: vboxautostart-service.sh: Starting VirtualBox VMs configured for autostart.
jun 10 04:18:49 bruno-03 vboxautostart-service.sh[1509]: Starting VirtualBox VMs configured for autostart.
jun 10 04:18:49 bruno-03 vboxautostart-service.sh[1506]: vboxautostart-service.sh: failed: VirtualBox kernel module not loaded!.
jun 10 04:18:49 bruno-03 vboxautostart-service.sh[1512]: failed: VirtualBox kernel module not loaded!.
jun 10 04:18:49 bruno-03 systemd[1]: Started vboxautostart-service.service.
jun 10 04:19:01 bruno-03 akonadiserver[2267]: org.kde.pim.akonadiserver: Subscriber Akonadi::Server::NotificationSubscriber(0x7ff3c818fdf0) identified as "UnifiedMailboxChangeRecorder - 140720374423776"
jun 10 04:20:29 bruno-03 VirtualBoxVM[2711]: QSettings::value: Empty key passed
jun 10 04:20:29 bruno-03 VirtualBoxVM[2711]: QSettings::value: Empty key passed
Apparently I need to sign the modules, according to https://gist.github.com/gabrieljcs/68939c7eeadfabfdbc6b40100130270d , but it seems convoluted.
How can I do this?
Thanks
Bruno