2015-10-18 95 views
6

我有一个问题,当我想用​​无业游民了,我得到错误流浪起来,虚拟机不能正常工作的Fedora 22

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,并且没有任何工作,请帮助解决此问题。当我有30年3月4日版本的VirtualBox sudo /etc/init.d/vboxdrv setup不工作,我有问题vboxdrv - 命令不exist.Yesterday我工作正常,我关掉机器和电脑,今天,当我想用​​vagrant up我得到了这个问题。

对不起,我的英文,请帮我看看这个,感谢每一个答案的!

//编辑:

我加入

/var/lib/dkms/vboxhost/4.2.32/build/make.log /var/log/vbox-install.log

+0

你看看'的/ var/lib中/ DKMS/vboxhost/4.2.32 /编译/ make.log'和'在/ var /日志/ VBOX-install.log'? – oliverpool

+0

是的,我什么都不懂。 '建筑模块: 清洗构建区域... 使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退出状态:2) 使用DKMS安装失败,尝试安装时没有使用 @ “/ var/log /vbox-install.log“52L,18326C ' – Adrian

+0

和'/ var/log/vbox-install.log'? (最好是如果你编辑你的问题,包括那些) – oliverpool

回答

7
  1. 请运行

    须藤yum的更新

  2. 请确保Vagrant和Virtualbox的最新版本。

  3. 如果您已经安装和更新的内核devel和你收到的错误

vboxdrv - 命令不存在

请运行:

sudo /usr/lib/virtualbox/vboxdrv.sh setup 
+0

'sudo /usr/lib/virtualbox/vboxdrv.sh setup'命令不存在。 – Adrian

+1

目前VirtualBox的最新版本是5.0.6。你似乎仍然使用4. *? – Tuanitim

2

我想补充一点,你必须安装gcc ...为了确保你得到开发工具组安装在其他任何东西之前。另外,你需要你当前的内核源代码。

  1. sudo dnf install "kernel-devel-uname-r == $(uname -r)"
  2. sudo dnf groupinstall "Development Tools"
  3. sudo dnf update
  4. sudo /usr/lib/virtualbox/vboxdrv.sh setup

应该这样做对于大多数运行VirtualBox的5 *的Fedora 2 [23]。

0

sudo /usr/lib/virtualbox/vboxdrv.sh setup这行解决了在Ubuntu 14的错误。04

+0

尝试使用sudo akmods,如果不行,您应该尝试安装sudo apt-get install akmods。我这不会工作尝试重新安装vbox-akmods。 – Adrian

2

的VirtualBox Linux内核驱动程序(vboxdrv)可能不是loaded.You可能没有安装运行内核的内核驱动程序,如果是这样,你可以为做:

dnf install akmod-VirtualBox kernel-devel-$(uname -r) 

如果安装VirtualBox的包和不希望重启系统,你可能需要加载内核驱动程序,这样做的

akmods; systemctl restart systemd-modules-load.service 

此外,请记住安装支持的VirtualBox版本

+1

'akmods; systemctl restart systemd-modules-load.service'为我做了窍门,重启没有 –

相关问题