在我的 Fedora 24 上,使用以下命令安装并运行 VirtualBox(来自 VB 存储库)后:
# dnf install VirtualBox-5.1-5.1.4_110228_fedora24-1.x86_64
$ virtualbox
一个弹出窗口向我显示了一个Kernel driver not installed (rc=-1908)
,根据谷歌搜索,这是非常经典的。同样的错误建议运行/sbin/vboxconfig
:
vboxdrv.sh: Building VirtualBox kernel modules.
This system is not currently set up to build kernel modules (system extensions).
Running the following commands should set the system up correctly:
yum install kernel-core-devel-4.5.5-300.fc24.x86_64
(The last command may fail if your system is not fully updated.)
yum install kernel-core-devel
vboxdrv.sh: failed: Look at /var/log/vbox-install.log to find out what went wrong.
This system is not currently set up to build kernel modules (system extensions).
Running the following commands should set the system up correctly:
yum install kernel-core-devel-4.5.5-300.fc24.x86_64
(The last command may fail if your system is not fully updated.)
yum install kernel-core-devel
There were problems setting up VirtualBox. To re-start the set-up process, run
/sbin/vboxconfig
as root.
我注意到
# rpm -qa kernel |sort -V |tail -n 1
kernel-4.6.6-300.fc24.x86_64
# uname -r
4.5.5-300.fc24.x86_64
所以我认为这可能来自于此,但我不知道如何解决内核版本的差异。
我尝试了,按照/sbin/rcvboxdrv setup
命令的建议:
vboxdrv.sh: Building VirtualBox kernel modules.
This system is not currently set up to build kernel modules (system extensions).
Running the following commands should set the system up correctly:
yum install kernel-core-devel-4.5.5-300.fc24.x86_64
(The last command may fail if your system is not fully updated.)
yum install kernel-core-devel
vboxdrv.sh: failed: Look at /var/log/vbox-install.log to find out what went wrong.
我尝试安装,没有任何改变。
另一件事,我有一个/usr/src/vboxhost-5.1.4/
文件夹,但是:
# dkms install vboxhost/5.1.14
Error! Could not find module source directory.
Directory: /usr/src/vboxhost-5.1.14 does not exist.
PS:你可能会问/var/log/vbox-install.log
(“Arrêt”意味着停止):
Makefile:185: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Arrêt.
Makefile:185: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Arrêt.
Makefile:185: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Arrêt.
Makefile:185: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Arrêt.
Makefile:185: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Arrêt.
Makefile:185: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Arrêt.