Virtualbox “Kernel driver not installed (rc=-1908)”修复
Kernel driver not installed (rc=-1908)
·
错误信息
ubuntu更新了之后virtualbox启动虚拟机失败:
对应错误提示如下
Kernel driver not installed (rc=-1908)
The VirtualBox Linux kernel driver is either not loaded or not set up correctly. Please reinstall virtualbox-dkms package and load the kernel module by executing
'modprobe vboxdrv'
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.
Failed to open a session for the virtual machine Windows7.
The virtual machine 'Windows7' has terminated unexpectedly during startup with exit code 1 (0x1).
Result Code: NS_ERROR_FAILURE (0x80004005)
Component: MachineWrap
Interface: IMachine {85632c68-b5bb-4316-a900-5eb28d3413df}
解决流程
先按照提示的信息试一下sudo modprobe vboxdrv
网上查到有人是运行完就能解决,也有可能像我一样遇到:
modprobe: FATAL: Module vboxdrv not found in directory /lib/modules/5.8.0-36-generic
需要把virtualbox更新到6.1.14或以上。
先把系统里的virtualbox卸载:
sudo apt-get remove virtualbox
sudo apt-get autoremove
如果卸载的时候报了error,就先sudo apt-get remove virtualbox-dkms
把dkms清干净再把上面两句重新来一遍。
到virtualbox官网下载对应系统的新版virtualbox。
下载好之后用sudo dpkg --install virtualbox-6.1_6.1.16-140961_Ubuntu_eoan_amd64.deb
安装。
可能会因为依赖问题安装失败,跑一遍sudo apt-get install -f
之后重新运行上面的安装指令。
安装好新版的virtualbox后就可以正常启动了。
更多推荐
已为社区贡献1条内容
所有评论(0)