LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices



Reply
 
Search this Thread
Old 04-30-2012, 02:35 PM   #1
mhm233
LQ Newbie
 
Registered: Apr 2012
Posts: 3

Rep: Reputation: Disabled
Exclamation Problem With VirtualBox On Centos 6.2


Hi Dears

i installed VirtualBox 4.2 on Linux (centos 6.2)
there isn't any problem, until as long as i want to start new os, an error is shown:
Code:
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. 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
the /etc/init.d/vboxdrv setup command results:
Code:
[root@ks28515 modules]# /etc/init.d/vboxdrv setup
Stopping VirtualBox kernel modulesOpening /proc/modules: No such file or directory
Opening /proc/modules: No such file or directory
Opening /proc/modules: No such file or directory
 [  OK  ]
Uninstalling old VirtualBox DKMS kernel modules [  OK  ]
Trying to register the VirtualBox kernel modules using DKMSError! echo
Your kernel headers for kernel 3.2.13-grsec-xxxx-grs-ipv6-64 cannot be found at
/lib/modules/3.2.13-grsec-xxxx-grs-ipv6-64/build or /lib/modules/3.2.13-grsec-xxxx-grs-ipv6-64/
source.
 [FAILED]
  (Failed, trying without DKMS)
Recompiling VirtualBox kernel modules [FAILED]
  (Look at /var/log/vbox-install.log to find out what went wrong)
in /lib/modules folder just there is 2.6.32-220.13.1.el6.x86_64

all kernels already installed !! what should i do??!

Thanks
 
Old 04-30-2012, 08:52 PM   #2
frankbell
Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Mageia, Mint
Posts: 8,258

Rep: Reputation: 1559Reputation: 1559Reputation: 1559Reputation: 1559Reputation: 1559Reputation: 1559Reputation: 1559Reputation: 1559Reputation: 1559Reputation: 1559Reputation: 1559
Try "modprobe vboxdrv" to start the module.

Edit: as root.

Last edited by frankbell; 04-30-2012 at 08:56 PM.
 
Old 05-02-2012, 07:40 AM   #3
mhm233
LQ Newbie
 
Registered: Apr 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by frankbell View Post
Try "modprobe vboxdrv" to start the module.

Edit: as root.
Code:
[root@ks28515 ~]# modprobe vboxdrv
FATAL: Could not load /lib/modules/3.2.13-grsec-xxxx-grs-ipv6-64/modules.dep: No such file or d
irectory
when i change the 2.6.32-220.13.1.el6.x86_64 to 3.2.13-grsec-xxxx-grs-ipv6-64 :

Code:
[root@ks28515 ~]# modprobe vboxdrv
FATAL: Module vboxdrv not found.
 
Old 05-02-2012, 09:09 PM   #4
frankbell
Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Mageia, Mint
Posts: 8,258

Rep: Reputation: 1559Reputation: 1559Reputation: 1559Reputation: 1559Reputation: 1559Reputation: 1559Reputation: 1559Reputation: 1559Reputation: 1559Reputation: 1559Reputation: 1559
I'm afraid I've shot my bolt. There's something going on here that's deeper than anything I've had to tackle.

Here's a thought: Not all distros install kernel headers and sources by default. I believe that CentOS is one that does not. See about installing the correct kernel headers and kernel-devel packages for the kernel you are using.

This is an older webpage, but it describes what I'm referring to: http://www.cyberciti.biz/faq/rhel5-i...l-source-code/
 
1 members found this post helpful.
Old 05-10-2012, 08:26 AM   #5
mhm233
LQ Newbie
 
Registered: Apr 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by frankbell View Post
I'm afraid I've shot my bolt. There's something going on here that's deeper than anything I've had to tackle.

Here's a thought: Not all distros install kernel headers and sources by default. I believe that CentOS is one that does not. See about installing the correct kernel headers and kernel-devel packages for the kernel you are using.

This is an older webpage, but it describes what I'm referring to: http://www.cyberciti.biz/faq/rhel5-i...l-source-code/
i searched for the 3.2.13-grsec-xxxx-grs-ipv6-64 kernel anywhere , but nothing was found!

i found only a kernel like that , that's name : bzImage-3.2.13-xxxx-grs-ipv6-32 !! how to install !!?!!

Last edited by mhm233; 05-10-2012 at 08:30 AM.
 
Old 05-10-2012, 09:45 PM   #6
frankbell
Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Mageia, Mint
Posts: 8,258

Rep: Reputation: 1559Reputation: 1559Reputation: 1559Reputation: 1559Reputation: 1559Reputation: 1559Reputation: 1559Reputation: 1559Reputation: 1559Reputation: 1559Reputation: 1559
You should be able to find the kernel-headers and the kernel-devel packages for your CentOS in the Add/Remove Software program, which is the GUI frontend for YUM. If you are not using a GUI, you can get them with YUM, but off the top of my head I don't know the exact syntax for installing them.

Last edited by frankbell; 05-10-2012 at 09:46 PM.
 
Old 05-15-2012, 12:07 PM   #7
djsoundfx
Member
 
Registered: May 2008
Distribution: Gentoo, Ubuntu, RHEL, CentOS, BSD, Solaris
Posts: 81

Rep: Reputation: 23
Run (and post the result) to identify the kernel version you're using
Code:
uname -r
It seems like your vbox is looking for headers and modules for 3.2.13 but you only have them installed for 2.6.32. Maybe you've updated your kernel and not installed the updated headers? I'd start by checking that. Can you also supply the log /var/log/vbox-install.log ?
 
Old 05-15-2012, 12:15 PM   #8
djsoundfx
Member
 
Registered: May 2008
Distribution: Gentoo, Ubuntu, RHEL, CentOS, BSD, Solaris
Posts: 81

Rep: Reputation: 23
Also, how did you install virtualbox? Did you configure and compile from source? and I forgot to ask if you have netboot disable in bios as this can create issues as well.

Last edited by djsoundfx; 05-15-2012 at 12:28 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
problem with installing centos in virtualbox (Kernel driver not installed (rc=-1908) chintu00001 Linux - Virtualization and Cloud 2 05-15-2012 12:45 PM
CentOS on Virtualbox joshuayip Linux - Newbie 4 09-22-2011 09:07 PM
Problem installing guest additions on virtualbox Centos 5.5 64bit guest eljay313 Linux - Virtualization and Cloud 1 09-03-2010 09:22 AM
can't kickstart CentOs on VirtualBox VM geek.ksa Linux - Virtualization and Cloud 3 08-29-2010 10:35 AM
CentOS in one VirtualBox, Windows in another - can I set up Samba in the CentOS VB? ismism Linux - Newbie 10 08-08-2010 04:34 PM


All times are GMT -5. The time now is 07:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration