【发布时间】:2015-10-18 17:04:39
【问题描述】:
我有一个问题,当我想使用 vagrant 时出现错误
The provider 'virtualbox' that was requested to back the machine
'default' is reporting that it isn't usable on this system. The
reason is shown below:
VirtualBox is complaining that the kernel module is not loaded. Please
run `VBoxManage --version` or open the VirtualBox GUI to see the error
message which should contain instructions on how to fix this error.
写完VBoxManage --version我得到
WARNING: The vboxdrv kernel module is not loaded. Either there is no module
available for the current kernel (4.2.3-200.fc22.x86_64) or it failed to
load. Please recompile the kernel module and install it by
sudo /etc/init.d/vboxdrv setup
You will not be able to start VMs until this problem is fixed.
4.2.32r101581
和sudo /etc/init.d/vboxdrv setup
我收到错误
Stopping VirtualBox kernel modules [ OK ]
Uninstalling old VirtualBox DKMS kernel modulesError! Could not locate dkms.conf file.
File: does not exist.
[ OK ]
Removing old VirtualBox netadp kernel module [ OK ]
Removing old VirtualBox netflt kernel module [ OK ]
Removing old VirtualBox kernel module [ OK ]
Trying to register the VirtualBox kernel modules using DKMSError! Bad return status for module build on kernel: 4.2.3-200.fc22.x86_64 (x86_64)
Consult /var/lib/dkms/vboxhost/4.2.32/build/make.log for more information.
[ERROR]
(Failed, trying without DKMS)
Recompiling VirtualBox kernel modules [ERROR]
(Look at /var/log/vbox-install.log to find out what went wrong)
我不知道问题出在哪里,我尝试更新 kernel-devel、kernel-headers、dkms 等。我将 VirtualBox 从 4.3.30 降级到 4.2.32,但没有任何效果,请帮我解决这个问题。当我有4.3.30版本的VirtualBox sudo /etc/init.d/vboxdrv setup不工作时,我遇到了vboxdrv的问题-命令不存在。昨天我正常工作,我关闭了机器和PC,今天我想使用vagrant up我遇到了这个问题。
对不起我的英语,请帮帮我,谢谢你的每一个回答!
//编辑:
我添加
/var/lib/dkms/vboxhost/4.2.32/build/make.log /var/log/vbox-install.log
【问题讨论】:
-
你看
/var/lib/dkms/vboxhost/4.2.32/build/make.log和/var/log/vbox-install.log了吗? -
是的,我什么也不懂。
Building module: cleaning build area... make KERNELRELEASE=4.2.3-200.fc22.x86_64 -C /lib/modules/4.2.3-200.fc22.x86_64/build M=/var/lib/dkms/vboxhost/4.2.32/build..............(bad exit status: 2) Failed to install using DKMS, attempting to install without @ "/var/log/vbox-install.log" 52L, 18326C -
还有
/var/log/vbox-install.log? (最好编辑您的问题以包含这些内容) -
对不起,我想从错误中添加日志,但我不能这样做,我不知道为什么。
标签: kernel vagrant virtualbox fedora