报错:
Kernel driver not installed (rc=-1908)
The VirtualBox Linux Kernel driver is either not loaded or not set up correctiy.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
环境:ubuntu16.04
虚拟机:virtualbox-6.0.24
权限:root
切记一定要用远程ssh去安装,不然几个小时慢得很
1、查看是否安装了两个virtualbox
dpkg --list | grep virtualbox
2、卸载所有的virtualbox,包括配置文件
apt-get autoremove --purge 'virtualbox*'
3、安装virtualbox6.0.24
#Oracle 公钥存储库密钥导入和添加到您的系统
wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add -
wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -
#添加 VirtualBox 包存储库文件
sudo add-apt-repository "deb [arch=amd64] http://download.virtualbox.org/virtualbox/debian $(lsb_release -cs) contrib"
#更新apt源
sudo apt update
#安装virtualbox-6.0
sudo apt install virtualbox-6.0
然后再打开安装好的虚拟机就可以了