I have installed the latest fedora 22 and from some reason VirtualBox gave me tons of errors.
Looked all over the place and didn't find any good solution till now. So i wanted to share this with you to save you time, hopefully that you are seeing before all the searches i already did.
This is the required things to do:
This was my error
WARNING: The vboxdrv kernel module is not loaded. Either there is no moduleavailable for the current kernel (4.1.6-201.fc22.x86_64) or it failed toload. Please recompile the kernel module and install it bysudo /etc/init.d/vboxdrv setupYou will not be able to start VMs until this problem is fixed.
First , try to run this, with or without sudo
"/etc/init.d/vboxdrv setup"
if it went ok -> you are all good, probably virtualbox will run ok for you, for me it didn't helped.
If it didn't went ok, go over here :
I got this error
Stopping VirtualBox kernel modules [ OK ]Recompiling VirtualBox kernel modules/etc/init.d/vboxdrv: line 335: /var/log/vbox-install.log: Permission denied[FAILED](Look at /var/log/vbox-install.log to find out what went wrong)
So i did as they say : "cat /var/log/vbox-install.log"
And got this:
So i did the following:Makefile:185: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Stop.
"sudo usermod -a -G vboxusers username" (you will replace username with your name of the user)
Then
"su -"
Then
" KERN_DIR=/usr/src/kernels/username" (replace username with your name of the user)
"export KERN_DIR"
"dnf install open-vm-tools"
"dnf -y install kernel-devel kernel-headers"
"sudo /etc/init.d/vboxdrv setup" -> this should be running ok now
You should receive something like me
Stopping VirtualBox kernel modules [ OK ]Recompiling VirtualBox kernel modules [ OK ]Starting VirtualBox kernel modules [ OK ]
Good luck and hopefully that i helped a bit,
Dor
No comments:
Post a Comment