如何在 Ubuntu 中修复 VirtualBox 的 “Kernel driver not installed (rc=-1908)” 错

我使用 Oracle VirtualBox 来测试各种 Linux 和 Unix 发行版。到目前为止,我已经在 VirtualBox 中测试了上百个虚拟机。今天,我在我的 Ubuntu 18.04 桌面上启动了 Ubuntu 18.04 服务器版虚拟机,我收到了以下错误。

  1. Kernel driver not installed (rc=-1908)
  2. The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. Please reinstall virtualbox-dkms package and load the kernel module by executing
  3. 'modprobe vboxdrv'
  4. as root.
  5. where: suplibOsInit what: 3 VERR_VM_DRIVER_NOT_INSTALLED (-1908) - The support driver is not installed. On linux, open returned ENOENT.

Ubuntu 中的 “Kernel driver not installed (rc=-1908)” 错误

Ubuntu 中的 “Kernel driver not installed (rc=-1908)” 错误

我点击了 OK 关闭消息框,然后在后台看到了另一条消息。

  1. Failed to open a session for the virtual machine Ubuntu 18.04 LTS Server.
  2. The virtual machine 'Ubuntu 18.04 LTS Server' has terminated unexpectedly during startup with exit code 1 (0x1).
  3. Result Code:
  4. NS_ERROR_FAILURE (0x80004005)
  5. Component:
  6. MachineWrap
  7. Interface:
  8. IMachine {85cd948e-a71f-4289-281e-0ca7ad48cd89}

启动期间虚拟机意外终止,退出代码为 1(0x1)

启动期间虚拟机意外终止,退出代码为 1(0x1)

我不知道该先做什么。我运行以下命令来检查是否有用。

  1. $ sudo modprobe vboxdrv

我收到了这个错误:

  1. modprobe: FATAL: Module vboxdrv not found in directory /lib/modules/5.0.0-23-generic

仔细阅读这两个错误消息后,我意识到我应该更新 Virtualbox 程序。

如果你在 Ubuntu 及其衍生版(如 Linux Mint)中遇到此错误,你只需使用以下命令重新安装或更新 virtualbox-dkms 包:

  1. $ sudo apt install virtualbox-dkms

或者,最好更新整个系统:

  1. $ sudo apt upgrade

错误消失了,我可以正常在 VirtualBox 中启动虚拟机了

转载于:https://www.cnblogs.com/RXDXB/p/11435062.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值