Arch Linux guest (Virtualbox):vboxdrv.service 启动时失败

Arch Linux guest (Virtualbox):vboxdrv.service 启动时失败

我将 Windows 10 作为 Virtualbox 主机运行,将 Arch Linux 作为来宾运行。

启动过程中,vboxdrv.service失败。 tty 启动正常,我可以在其中执行所有操作。然而,startx导致我认为是正常的标准输出,但之后什么也没有发生,我没有图形界面,我的 i3wm 无法启动。

我的猜测是这种行为与vboxdrv.service启动失败有关。

相关信息可能是:

systemctl status vboxdrv.service

vboxdrv.service - VirtualBox Linux kernel module
     Loaded: loaded (/opt/VirtualBox/vboxdrv.sh; enabled; vendor preset: disabled)
     Active: failed (Result: exit-code) since Sun 2020-04-05 11:25:10 CEST, 11 min ago
    Process: 359 ExecStart=/opt/VirtualBox/vboxdrv.sh start (code=exited, status=1/FAILURE)

Apr 05 11:25:08 archlinux-vm systemd[1]: Starting VirtualBox Linux kernel module...
Apr 05 11:25:10 archlinux-vm vboxdrv.sh[359]: vboxdrv.sh: Starting VirtualBox services.
Apr 05 11:25:10 archlinux-vm vboxdrv.sh[398]: Starting VirtualBox services.
Apr 05 11:25:10 archlinux-vm vboxdrv.sh[359]: vboxdrv.sh: failed: modprobe vboxpci failed. Please use 'dmesg' to find out why.
Apr 05 11:25:10 archlinux-vm systemd[1]: vboxdrv.service: Control process exited, code=exited, status=1/FAILURE
Apr 05 11:25:10 archlinux-vm systemd[1]: vboxdrv.service: Failed with result 'exit-code'
Apr 05 11:25:10 archlinux-vm systemd[1]: Failed to start VirtualBox Linux kernel module.

dmesg | grep vboxpci什么也不产生。

dmesg | grep vboxdrv

[    7.200636] vboxdrv: loading out-of-tree module taints kernel.
[    7.200840] vboxdrv: module verification failed: signature and/or required key missing - taintig kernel
[    7.209208] vboxcrv: Found 1 processor cores
[    7.246471] vboxdrv: TSC mode is Invariant, tentative frequency 2711995959 Hz
[    7.246472] vboxdrv: Successfully loaded version 6.1.4 (interface 0x002d0001)

startx

X.Org X Server 1.20.8
X Protocol Version 11, Revision 0
Build Operating System: Linux Arch Linux
Current Operating System: Linux archlinux-vm 5.5.13-arch2-1 # SMP PREEMPT Mon, 30 Mar 2020 20:42:41 +0000 x86_64
Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=894e6e02-38f6-4798-b936-431c8287803a rw quiet
Build Date: 30 March 2020 05:05:45AM

Current version of pixman: 0.38.4
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational, 
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/home/[username]/.local/share/xorg/Xorg.0.log", Time: Sun Apr  5 11:25:30 2020
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
_

并阻止 tty。

pacman -Qs virtualbox

local/virtualbox-guest-modules-arch 6.1.4-12
    Virtualbox guest kernel modules for Arch Kernel
local/virtualbox-guest-utils 6.1.4-5
    VirtualBox Guest userspace utilities
local/virtualbox-host-modules-arch 6.1.4-12
    Virtualbox host kernel modules for Arch Kernel

编辑:我再次更新了机器(它问我是否想用linux替换virtualbox-guest-modules,我很高兴地同意,希望通过更新解决问题,但行为保持不变),新pacman -Qs virtualbox

local/linux 5.6.2.arch1-2
    The Linux kernel and modules
local/virtualbox-guest-utils 6.1.4-5
    VirtualBox Guest userspace utilities
local/virtualbox-host-modules-arch 6.1.4-15
    Virtualbox host kernel modules for Arch Kernel

这种情况已经发生了大约两周,可能是在更新我的机器之后。之前,一切都很好。

我能做些什么?

答案1

virtualbox-host-modules-arch首先,当您运行来宾时,您不需要该软件包。如果您不想卸载 vboxdrv,也可以简单地禁用它:systemctl disable vboxdrv

然后你需要启用vboxservicewith systemctl enable --now vboxservice,它应该返回而不会出现错误。

最后似乎有一个漏洞在 Arch 包中,因此您需要安装xf86-video-vmware以便 X 能够正确检测 VirtualBox 主机暴露的卡。

答案2

安装新的 DKMS:

dkms install --no-depmod vboxhost/7.0.8_OSE -k 6.2.12-zen1-1-zeinstall new dkms

相关内容