我在运行 virtualbox 时遇到了问题(我是 ubuntu 新手,所以不太了解),如果有人能帮忙就太好了!提前谢谢。
DKMS: install completed.
Job for virtualbox.service failed because the control process exited with error code.
See "systemctl status virtualbox.service" and "journalctl -xe" for details.
invoke-rc.d: initscript virtualbox, action "restart" failed.
● virtualbox.service - LSB: VirtualBox Linux kernel module
Loaded: loaded (/etc/init.d/virtualbox; generated)
Active: failed (Result: exit-code) since Thu 2019-05-09 10:04:20 CEST; 4ms ago
Docs: man:systemd-sysv-generator(8)
Process: 18333 ExecStart=/etc/init.d/virtualbox start (code=exited, status=1/FAILURE)
mei 09 10:04:20 Ubuntu-Omen systemd[1]: Starting LSB: VirtualBox Linux kernel module...
mei 09 10:04:20 Ubuntu-Omen virtualbox[18333]: * Loading VirtualBox kernel modules...
mei 09 10:04:20 Ubuntu-Omen virtualbox[18333]: * modprobe vboxdrv failed. Please use 'dmesg' to find out why
mei 09 10:04:20 Ubuntu-Omen virtualbox[18333]: ...fail!
mei 09 10:04:20 Ubuntu-Omen systemd[1]: virtualbox.service: Control process exited, code=exited status=1
mei 09 10:04:20 Ubuntu-Omen systemd[1]: virtualbox.service: Failed with result 'exit-code'.
mei 09 10:04:20 Ubuntu-Omen systemd[1]: Failed to start LSB: VirtualBox Linux kernel module.
答案1
modprobe vboxdrv failed
表示 VirtualBox 的特殊驱动程序未加载。这种情况可能由于多种原因而发生,但通常与安全启动 UEFI 保护有关。
用户确认,在固件更新重新启用安全启动后确实存在这种情况。禁用它可让模块正常加载。
答案2
这是针对笔记本电脑用户的。我使用的是 Acer 笔记本电脑。我的 VirtualBox 显示了上述错误:
> Job for virtualbox.service failed because the control process exited with error code.
> See "systemctl status VirtualBox.service" and
> "journalctl -xe" for details. invoke-rc.d: initscript VirtualBox,
> action "restart" failed. ● virtualbox.service - LSB: VirtualBox Linux
> kernel module Loaded: loaded (/etc/init.d/virtualbox; generated)
...
/init.d/virtualbox start (code=exited, status=1/FAILURE)
我可以通过禁用 BIOS 上的安全启动来解决这个问题。此选项最初在 BIOS 上呈灰色,只有在设置管理员密码后才可用。
一旦在安全选项卡上设置,安全启动选项即可在启动选项卡上进行修改。