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 ?
I had the same problem and I fixed it by running this command:
sudo /etc/init.d/vboxdrv setup
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...
First you have to install dkms packages (but optional)
Then run this
But in my case I had to run only second one.
Follow the following steps for Linux:
cd /etc/yum.repos.d/
vim epel.repo
"enabled=1"
yum install dkms
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.
Had recently the same problem on Ubuntu 18.04. Apparently, virtual box 6.+ has some issues with gcc-7. These steps did the job for me:
Removing virtualbox
sudo apt-get purge virtualbox-*
installing gcc-8
sudo apt-get install gcc-8 g++-8
setting default gcc to gcc-8
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 800 --slave /usr/bin/g++ g++ /usr/bin/g++-8
and reinstalling virtualbox with the debian installer did it for me!