Adr*_*ian 7 kernel virtualbox fedora vagrant
我有一个问题,当我想使用vagrant up我得到错误
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.
Run Code Online (Sandbox Code Playgroud)
写完后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
Run Code Online (Sandbox Code Playgroud)
和 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)
Run Code Online (Sandbox Code Playgroud)
我不知道问题出在哪里,我尝试更新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
小智 7
请跑
sudo yum更新
请确保Vagrant和Virtualbox的版本是最新版本.
如果您已经安装并更新了kernel-devel,并且收到了错误
vboxdrv - 命令不存在
请运行:
sudo /usr/lib/virtualbox/vboxdrv.sh setup
Run Code Online (Sandbox Code Playgroud)