VirtualBox Linux 内核驱动程序未加载或设置不正确

tam*_*msy 5 linux virtualbox virtualization arch-linux virtual-machine

我安装了 VirtualBox,但在我尝试了所有解决方案后,它仍然不起作用。当我启动 VirtualBox 时,它什么也不做,但当我尝试运行虚拟机时,它给出以下错误:

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.
(stuff about EFI secure boot, which isn't enabled on my laptop)
Run Code Online (Sandbox Code Playgroud)

我尝试运行该命令,但它找不到该文件。

我还检查了 cli 中的一些错误

VBoxManage --version
Run Code Online (Sandbox Code Playgroud)

它给了我这个

WARNING: The vboxdrv kernel module is not loaded. Either there is no module
         available for the current kernel (5.6.15-arch1-1) or it failed to
         load. Please recompile the kernel module and install it by

           sudo /sbin/vboxconfig

         You will not be able to start VMs until this problem is fixed.
6.1.10r138449
Run Code Online (Sandbox Code Playgroud)

我尝试的另一件事是加载 vboxdrv:

modprobe vboxdrv
Run Code Online (Sandbox Code Playgroud)

我刚得到:

modprobe: FATAL: Module vboxdrv not found in directory /lib/modules/5.6.15-arch1-1
Run Code Online (Sandbox Code Playgroud)

我尝试过的其他事情的列表:

  • 我尝试使用 pacman -Syyu 更新系统和软件包。

  • 我尝试重新安装VBox。

  • 我尝试重新安装 linux-headers。

  • 我安装了 vbox-host-dkms 和 vbox-guest-dkms

小智 2

对线程死灵感到抱歉,但我修复了它,以防万一有人从 DDG 遇到此线程(就像我所做的那样),在 arch 上sudo pacman -Syu linux-headers并重新启动。