Jump to content
inittux

centos/virtualbox problem

Recommended Posts

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.

Share this post


Link to post
Share on other sites

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

What did this file say went wrong?

Share this post


Link to post
Share on other sites

Makefile:167: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR= and run Make again. Stop.

Share this post


Link to post
Share on other sites

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/linux-desktop-74/latest-version-of-virtualbox-kernel-errors-on-centos-5-i386-645991/

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

https://www.centos.org/modules/newbb/viewtopic.php?topic_id=22546

 

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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/linux-desktop-74/latest-version-of-virtualbox-kernel-errors-on-centos-5-i386-645991/#post3184778

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?

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...