Problema
Ao tentar instalar uma nova VM no virtualbox o seguinte erro acontece:
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.
Solução 01
A própria mensagem nos guia como solucionar, pedindo para executarmos no terminal: /sbin/vboxconfig
Abra o terminal e digite,
sudo /sbin/vboxconfig
Se receber o erro abaixo passe para o solução 02
vboxdrv.sh: Stopping VirtualBox services. vboxdrv.sh: Starting VirtualBox services. vboxdrv.sh: Building VirtualBox kernel modules. This system is currently not set up to build kernel modules. Please install the gcc make perl packages from your distribution. This system is currently not set up to build kernel modules. Please install the gcc make perl packages from your distribution. There were problems setting up VirtualBox. To re-start the set-up process, run /sbin/vboxconfig as root. If your system is using EFI Secure Boot you may 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.
Solução 02
Feche qualquer janela do VirtualBox e instale ou atualise o pacote “virtualbox-dkms” usando o comando:
sudo apt install virtualbox-dkms