如何让 VirtualBox 在 Arch 上运行?

如何让 VirtualBox 在 Arch 上运行?

当我尝试启动 Windows 7 虚拟机时,出现 2 个弹出错误窗口。第一个说:

无法打开虚拟机 Windows7Box 的会话。

虚拟机“Windows7Box”在启动过程中意外终止,退出代码为 1 (0x1)。

结果代码:NS_ERROR_FAILURE (0x80004005) 组件:MachineWrap 接口:IMachine {85632c68-b5bb-4316-a900-5eb28d3413df}

第二个说:

未安装内核驱动程序(rc=-1908)

VirtualBox Linux 内核驱动程序未加载或设置不正确。请尝试通过执行再次设置

'/sbin/vboxconfig'

作为根。

如果您的系统启用了 EFI 安全启动,您可能还需要对内核模块(vboxdrv、vboxnetflt、vboxnetadp、vboxpci)进行签名,然后才能加载它们。请参阅 Linux 系统的文档以获取更多信息。

其中:suplibOsInit 内容:3 VERR_VM_DRIVER_NOT_INSTALLED (-1908) - 未安装支持驱动程序。在 Linux 上,open 返回 ENOENT。

我已经运行了,并得到以下结果:

$ sudo /sbin/vboxconfig 
vboxdrv.sh: Stopping VirtualBox services.
vboxdrv.sh: Starting VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
This system is currently not set up to build kernel modules.
Please install the Linux kernel "header" files matching the current kernel
for adding new hardware support to the system.
This system is currently not set up to build kernel modules.
Please install the Linux kernel "header" files matching the current kernel
for adding new hardware support to the system.

There were problems setting up VirtualBox.  To re-start the set-up process, run
  /sbin/vboxconfig
as root.  If your system is using EFI Secure Boot you may 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.

这就是我被困住的地方。Yay 说我的linux-headers软件包是最新的,但我不确定如何签署内核模块,也不知道这是什么意思。

任何帮助将非常感激!

相关内容