
我在 Artix Linux 上安裝了 VirtualBox(包括主機模組包,甚至載入了 VirtualBox 的所有模組),當我嘗試開啟虛擬機器時,出現以下錯誤
The virtual machine 'TestOS' 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}
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.
我的 VirtualBox 軟體包
virtualbox-6.1.16-1
virtualbox-host-modules-artix 6.1.16-2
virtualbox-guest-iso 6.1.16-1
virtualbox-guest-modules-artix 6.1.4-8
當我嘗試執行/sbin/vboxconfig
命令時。我收到這樣的錯誤訊息。/sbin/vboxconfig: command not found
我嘗試使用 sudo,並且收到了與我之前提到的完全相同的訊息。
我可能會假設我使用的 VirtualBox 模組版本不正確,但這些是 Artix 儲存庫上的最新軟體包(我也嘗試更新我的 Artix 系統)。
答案1
我剛剛偶然發現了同樣的「問題」。在核心中啟用 vboxdrv 模組使其運作。嘗試使用
sudo modprobe vboxdrv
內核模組現在應該可用。你可以檢查一下
lsmod | grep vboxdrv
這應該會列印一行包含模組的名稱、大小和用途,如下所示
vboxdrv 528384 0