我正在尝试使用 VirtualBox(在 Windows 下本地运行 Outlook),但一直出现错误。
我最初在 Manjaro Linux 下遇到了同样的错误,我可以从存储库安装 VirtualBox。由于失败了(无论如何我都想重新安装),我安装了 Fedora 28,然后从他们自己网站上的下载页面安装了 VirtualBox。令我惊讶的是,我得到了完全相同的错误,而且这是一个顽固的错误:
我似乎可以很好地安装 VirtualBox(和 Oracle 扩展),但无论我尝试创建什么虚拟机,它都无法启动——它立即地失败并出现以下错误:
Kernel driver not installed (rc=1908)
The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. Please reinstall the kernel module by executing '/sbin/vboxconfig' as root.
where: suplibOsInit what: 3 VERR_VM_DRIVER_NOT_INSTALLED (-1908) - The support driver is not installed. On linux, open returned ENOENT.
并建议运行/sbin/vboxconfig
,我当然已经这样做了:
jgb@jgb-t450s:~$ sudo /sbin/vboxconfig
[sudo] password for jgb:
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.
The distribution packages containing the headers are probably:
kernel-devel kernel-devel-4.18.8-200.fc28.x86_64
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.
The distribution packages containing the headers are probably:
kernel-devel kernel-devel-4.18.8-200.fc28.x86_64
There were problems setting up VirtualBox. To re-start the set-up process, run
/sbin/vboxconfig
as root.
我按照指示做了:
jgb@jgb-t450s:~$ sudo yum install kernel-headers
Last metadata expiration check: 1:44:56 ago on 2018-09-25T09:45:21 CEST.
Package kernel-headers-4.18.9-200.fc28.x86_64 is already installed, skipping.
Dependencies resolved.
Nothing to do.
Complete!
和
jgb@jgb-t450s:~$ sudo yum install kernel-devel
Last metadata expiration check: 1:46:44 ago on 2018-09-25T09:45:21 CEST.
Package kernel-devel-4.18.9-200.fc28.x86_64 is already installed, skipping.
Dependencies resolved.
Nothing to do.
Complete!
但/sbin/vboxconfig
输出保持不变。
我真的不知道还能尝试什么;我以前从未遇到过 VirtualBox 的问题。
研究这个问题让我看到了过去 15 年的很多成果,包括建议安装 virt-manager(我不知道,也不知道如何创建新的虚拟机),但我似乎找不到实际解决方案。
编辑- 虽然我尝试过戈尔卡·埃吉莱奥尔方法,如果不是 True 则为 False帮助我继续前进,或者至少转换到另一个问题:
`RTR3InitEx failed with rc=-1912 (rc=-1912)
supR3HardenedMainInitRuntime what: 4 VERR_VM_DRIVER_VERSION_MISMATCH (-1912) - The installed support driver doesn't match the version of the user.`
但那是另一个问题。