VirtualBox error : kernel driver not installed(rc=

2020-06-30 06:45发布

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 ?

16条回答
【Aperson】
2楼-- · 2020-06-30 07:04

I had the same problem and I fixed it by running this command: sudo /etc/init.d/vboxdrv setup

查看更多
等我变得足够好
3楼-- · 2020-06-30 07:05
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...

查看更多
贼婆χ
4楼-- · 2020-06-30 07:07

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.

查看更多
▲ chillily
5楼-- · 2020-06-30 07:10

Follow the following steps for Linux:

  1. cd /etc/yum.repos.d/
  2. vim epel.repo
  3. Make every "enabled=1"
  4. yum install dkms
查看更多
Ridiculous、
6楼-- · 2020-06-30 07:11

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.

查看更多
Fickle 薄情
7楼-- · 2020-06-30 07:11

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!

查看更多
登录 后发表回答