manjaro更換核心後 virtualBox 中打不開虛擬機器(已經解決)

波格斯特發表於2020-11-09

參考連結1

問題描述

更換完5.9核心後 VirtualBox 提示 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. "

解決辦法

  • 執行下面的指令然後檢視輸出
pacman -Qs linux
uname -a
  • 在第一條指令執行完後檢視與下列類似的輸出,可以看到我以前安裝的是5.4核心對應的modules
local/linux54-virtualbox-host-modules 6.1.16-3 (linux54-extramodules)

  • 在第二條指令執行後檢視可以發現現在的核心版本為5.9和上面的(linux54-extramodules)有所不同,然後嘗試安裝和59匹配的
 5.9.3-1-MANJARO 
  • 執行命令 pacman -S linux59-virtualbox-host-modules,然後重啟後就可以在Virtual Box正常開啟虛擬機器了

  1. [SOLVED] Virtualbox failed to open virtual machine ↩︎

相關文章