Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
centos/virtualbox problem
#1

I am able to install virtualbox from the website. I am able to make a virtual machine but when I try and start it up I get an error:

 

Kernel driver not installed (rc=-1908)

 

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 executing

 

'/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.

 

I tried executing the command to reinstall the kernel module but then I still get this error message:

 

[root@localhost maarten]# /etc/init.d/vboxdrv setup

Stopping VirtualBox kernel modules [ OK ]

Uninstalling old VirtualBox DKMS kernel modules [ OK ]

Trying to register the VirtualBox kernel modules using DKMS[FAILED]

(Failed, trying without DKMS)

Recompiling VirtualBox kernel modules [FAILED]

(Look at /var/log/vbox-install.log to find out what went wrong)

 

 

I downloaded the rpm file from the website and I also trie dto do it the way they did it in the centos wiki

 

where they say I should install: yum --enablerepo rpmforge install dkms

 

 

for both I get the same results, have searched a while but seem to figure it out.

Reply
#2

Quote: (Look at /var/log/vbox-install.log to find out what went wrong)
What did this file say went wrong?

Reply
#3
Makefile:167: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Stop.</directory>
Reply
#4

Hmm... sounds like you're missing some packages.

 

A quick search suggests that you could be missing kernel-devel, but take a look here:

 

http://www.linuxquestions.org/questions/...86-645991/

http://wiki.centos.org/HowTos/I_need_the_Kernel_Source

https://www.centos.org/modules/newbb/vie...c_id=22546

 

... looks like it's a known issue. Odd that the fix is a bit arduous.

Reply
#5
I tried it last night, haven't gotten it to work yet. Will take another look at it this evening
Reply
#6

I got it to work, but I'm not sure which of the solutions work. I did the following yesterday:

 

1. yum install kernel-devel

2. then I did /etc/init.d/vboxdrv setup

 

I still got the same errors, I then did followed the solution here:

 

1: http://www.linuxquestions.org/questions/...ost3184778

2. /etc/init.d/vboxdrv setup

 

I still got the same errors. I then booted my pc this evening and tried:

 

1. /etc/init.d/vboxdrv setup

 

I then I still get the same error as mentioned above that services won't start. So I try to startup the virtual pc and I don't get an error.

Just to check I rerun: /etc/init.d/vboxdrv setup again and I get:

 

[root@localhost maarten]# /etc/init.d/vboxdrv setup

Stopping VirtualBox kernel modules [ OK ]

Uninstalling old VirtualBox DKMS kernel modules [ OK ]

Removing old VirtualBox netadp kernel module [ OK ]

Removing old VirtualBox netflt kernel module [ OK ]

Removing old VirtualBox kernel module [ OK ]

Trying to register the VirtualBox kernel modules using DKMS[FAILED]

(Failed, trying without DKMS)

Recompiling VirtualBox kernel modules [ OK ]

Starting VirtualBox kernel modules [ OK ]

 

I am now able to startup my virtual machines with no problem. I still find it strange though why it all of a sudden seemed to work even though I did the exact same thing yesterday.

May I need to have restarted all the virtualbox services? Does this makes sense?

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)