解決Fedora安裝Virtualbox後沒法運行:/etc/init.d/vboxdrv setup

 

 

解決Fedora安裝Virtualbox後沒法運行:/etc/init.d/vboxdrv setuplinux

在Fedora下安裝了Virtualbox,發現運行時出現如下問題:ui

Kernel driver not installed (rc=-1908)orm

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 executingget

‘/etc/init.d/vboxdrv setup’虛擬機

as root. Users of Ubuntu, Fedora or Mandriva should install the DKMS package first. This package keeps track of Linux kernel changes and recompiles the vboxdrv kernel module if necessary.
根據提示運行以root身份運行/etc/init.d/vboxdrv setup
結果提示:it

Stopping VirtualBox kernel modules [肯定]
Uninstalling old VirtualBox DKMS kernel modules [肯定]
Trying to register the VirtualBox kernel modules using DKMSError! Bad return status for module build on kernel: 2.6.38.6-27.fc15.i686 (i686)
Consult /var/lib/dkms/vboxhost/4.0.8/build/make.log for more information.
[失敗]
(Failed, trying without DKMS)
Recompiling VirtualBox kernel modules [失敗]
(Look at /var/log/vbox-install.log to find out what went wrong)io

解決方法:form

一、能夠先嚐試:class

$su yum install -y kernel-headers kernel-devel dkms gccmodule

$su yum -y update

接着運行/etc/init.d/vboxdrv setup

若是執行此操做,仍然出現上述錯誤。能夠參考第二步執行

二、先 安裝 PAE 包, $ yum install kernel-PAE-devel 。

完成後再執行 $ /etc/init.d/vboxdrv setup,則顯示:

Stopping VirtualBox kernel modules [肯定]
Uninstalling old VirtualBox DKMS kernel modules [肯定]
Trying to register the VirtualBox kernel modules using DKMS[肯定]
Starting VirtualBox kernel modules [肯定]

運行成功後,虛擬機能夠運行成功!

相關文章
相關標籤/搜索