如何在 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 中啟動虛擬機了


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM