问题
I tried to set up an virtual machine on Ubuntu 12.10.I installed Oracle Vm VirtualBox Manager. Then, i followed the steps and i choose .iso file from settings>storage.Then clicked live cd/dvd option.Then OK,when i clicked to start button i get such an error :
Kernel driver not installed (rc=-1908)
The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a
permissionproblem with /dev/vboxdrv. Please reinstall the kernel module by
executing
'/etc/init.d/vboxdrv setup'
as root. If it is available in your distribution, you should install the DKMS package
first. This package keeps track of Linux kernel changes and recompiles the vboxdrv
kernel module if necessary.
I reinstalled program and rebooted pc, but not worked.Also, updated kernel driver but not worked.What can be done to solve it ?
回答1:
Thought I'd give my 2 cents for those who use MACs
sudo /Library/Application\ Support/VirtualBox/LaunchDaemons/VirtualBoxStartup.sh restart
回答2:
sudo apt-get remove virtualbox-dkms
sudo apt-get install virtualbox-dkms
source: http://ubuntuforums.org/showthread.php?t=1885936&page=6
ps. I have this issue everytime I get a Linux kernel update in Ubuntu. The instructions that it gives do not work for me but these two commands work everytime. It would be nice if everytime I got a kernel update these two commands would automatically run afterwards...
回答3:
did you try the command /etc/init.d/vboxdrv setup
What was the output ?
回答4:
Goto BIOS setup and Make secure boot Disable It worked for me.
回答5:
I have a solution that works for MacOS users:
You have to restart your system and press Command (⌘) + R during the loading. It will start the Recovery mode.
Now that you're on the Recovery Mode, click on Utilities (top bar) and Terminal.
You have your terminal opened? Enter, it will add Oracle in the authorisation list to access the kernel.
spctl kext-consent add VB5E2TV963
Restart again.
You're welcome.
回答6:
did you try the command:
sudo kextload /Library/Extensions/VBoxDrv.kext/
回答7:
I had the same problem and I fix it with this:
rm -r /etc/init.d/vboxdrv
rm -r /var/lib/update-rc.d/vboxdrv
apt-get install virtualbox virtualbox-dkms virtualbox-guest-utils virtualbox-guest-additions virtualbox-qt
via : https://superuser.com/questions/652850/error-while-installing-virtualbox
回答8:
First you have to install dkms packages (but optional)
sudo apt-get install dkms
Then run this
sudo /etc/init.d/vboxdrv setup
But in my case I had to run only second one.
回答9:
Personally, on my Mac installing the latest version of VirtualBox solved the problem
回答10:
Firstly open a terminal and write this command:
sudo apt-get remove virtualbox-dkms
and after finish this operation, write this command:
sudo apt-get install virtualbox-dkms
This solved the problem. Do not worry, your files will not be lost.
回答11:
Follow the following steps for Linux:
cd /etc/yum.repos.d/
vim epel.repo
- Make every
"enabled=1"
yum install dkms
回答12:
there were only linux-lts kernel in my system so far. i just install linux-lts-headers using pacman and then i rebooted pc.it worked for me.
回答13:
This one in recovery mode answered by @idkn worked for me.
spctl kext-consent add VB5E2TV963
回答14:
I had the same problem and I fixed it by running this command:
sudo /etc/init.d/vboxdrv setup
回答15:
The below code seems to fix the error. It might recur when you update your distrbution, so make sure to rerun it.
sudo modprobe vboxdrv
来源:https://stackoverflow.com/questions/13670176/virtualbox-error-kernel-driver-not-installedrc-1908