LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-13-2015, 01:42 AM   #1
sachit
LQ Newbie
 
Registered: May 2015
Posts: 14

Rep: Reputation: Disabled
Question Virtual Box error


I have installed the VirtualBox and i am getting the following error, i also installed the dkms package, but still the same problem. What to do?

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.
 
Old 07-13-2015, 02:09 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,331
Blog Entries: 55

Rep: Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530
- What is your Linux distribution and version?
- Did you install Virtualbox from package?
- Does the package match your machines architecture?
- Was the package installation successful?
- Was there a "kmod-virtualbox" dependency installed?
- What are the complete related messages in /var/log/messages or equivalent?
- Did you try to install the driver via dkms?
- What is the complete output of you running '/etc/init.d/vboxdrv setup' as root?
 
Old 07-13-2015, 10:59 AM   #3
sachit
LQ Newbie
 
Registered: May 2015
Posts: 14

Original Poster
Rep: Reputation: Disabled
1) Linux Distro- centos 6.6
2) Installed Linux via Yum command
3) Yes it matches my machine architecture
4) yes Installation was sucessful
5) I have no idea of kmod-dependency (can you tell me how to install it)
6) These are the log messages related to VirtualBox
-Jul 13 08:27:21 localhost abrt[5498]: Saved core dump of pid 5495 (/usr/lib/virtualbox/VirtualBox) to /var/spool/abrt/ccpp-2015-07-13-08:27:21-5495 (9543680 bytes)
-Jul 13 08:27:22 localhost abrtd: Package 'VirtualBox-4.1' isn't signed with proper key
-Jul 13 08:27:22 localhost abrtd: 'post-create' on '/var/spool/abrt/ccpp-2015-07-13-08:27:21-5495' exited with 1
-Jul 13 08:27:22 localhost abrtd: Deleting problem directory '/var/spool/abrt/ccpp-2015-07-13-08:27:21-54
95'

7) Can you tell me how to install driver via DKMS
 
Old 07-13-2015, 11:09 AM   #4
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,258

Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
From what I understand, dkms is buggy on CentOS 6, I would just skip it. Your error message tells you exactly what you need to do, did you read it?

Quote:
Please reinstall the kernel module by executing

'/etc/init.d/vboxdrv setup'

as root.
So, did you run "/etc/init.d/vboxdrv setup" as root? If so, what was the output?

VirtualBox 4.1 is OLD...is there any particular reason you're using that version?

Last edited by suicidaleggroll; 07-13-2015 at 11:11 AM.
 
Old 07-14-2015, 02:28 AM   #5
sachit
LQ Newbie
 
Registered: May 2015
Posts: 14

Original Poster
Rep: Reputation: Disabled
I tried to reinstall the kernel module but this is the error:

root@localhost Desktop]# /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
Error! Your kernel headers for kernel 2.6.32-504.el6.i686 cannot be found at
/lib/modules/2.6.32-504.el6.i686/build or /lib/modules/2.6.32-504.el6.i686/source.
[FAILED]
(Failed, trying without DKMS)
Recompiling VirtualBox kernel modules [FAILED]
(Look at /var/log/vbox-install.log to find out what went wrong)

This is from /var/log/vbox-install.log
Uninstalling modules from DKMS
removing old DKMS module vboxhost version 4.1.40

------------------------------
Deleting module version: 4.1.40
completely from the DKMS tree.
------------------------------
Done.
Attempting to install using DKMS

Creating symlink /var/lib/dkms/vboxhost/4.1.40/source ->
/usr/src/vboxhost-4.1.40

DKMS: add Completed.
You can use the --kernelsourcedir option to tell DKMS where it's located.
Failed to install using DKMS, attempting to install without
Makefile:172: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Stop.
 
Old 07-14-2015, 04:13 AM   #6
sachit
LQ Newbie
 
Registered: May 2015
Posts: 14

Original Poster
Rep: Reputation: Disabled
ok all done, i want to use redhat in vmware but when i click to install redhat nothing happens the screen is blank. What may be the problem now
 
Old 07-14-2015, 07:05 AM   #7
berndbausch
Senior Member
 
Registered: Nov 2013
Location: Tokyo
Distribution: Redhat/Centos, Ubuntu, Raspbian, Fedora
Posts: 1,687

Rep: Reputation: 353Reputation: 353Reputation: 353Reputation: 353
Regarding your virtualbox problem, the way you want to install it seems to require kernel sources, which you don't seem to have.

Regarding your problem with VMware, you need to provide much much more information before anybody can say anything. Besides, don't start a new subject in an old thread.
 
Old 07-14-2015, 07:36 AM   #8
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware
Posts: 6,411
Blog Entries: 6

Rep: Reputation: Disabled
Quote:
Originally Posted by suicidaleggroll View Post
From what I understand, dkms is buggy on CentOS 6, I would just skip it. Your error message tells you exactly what you need to do, did you read it?



So, did you run "/etc/init.d/vboxdrv setup" as root? If so, what was the output?

VirtualBox 4.1 is OLD...is there any particular reason you're using that version?
I'm running CentOS 7 and dkms is working properly. (if that helps)
 
Old 07-14-2015, 07:43 PM   #9
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mint, OpenBSD
Posts: 11,352
Blog Entries: 12

Rep: Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731
Many distros, if not most, do not routinely install kernel headers and sources, which are separate from the kernel itself.

The virtual box kernel needs access to kernel headers and *I think* the sources for your running kernel in order to function (it's been a while since I used CentOS). You can find out what kernel version that is with the uname -a command. Here's the uname output on this here Mint box; the kernel version is in bold:

Code:
 $ uname -a
Linux barracuda 3.13.0-57-generic #95-Ubuntu SMP Fri Jun 19 09:28:15 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
Then open the package manager ("Install and Remove Software" on the menu) and find and install the relevant packages.
 
Old 07-14-2015, 08:09 PM   #10
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,258

Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
Quote:
Originally Posted by frankbell View Post
Many distros, if not most, do not routinely install kernel headers and sources, which are separate from the kernel itself.

The virtual box kernel needs access to kernel headers and *I think* the sources for your running kernel in order to function (it's been a while since I used CentOS). You can find out what kernel version that is with the uname -a command. Here's the uname output on this here Mint box; the kernel version is in bold:

Code:
 $ uname -a
Linux barracuda 3.13.0-57-generic #95-Ubuntu SMP Fri Jun 19 09:28:15 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
Then open the package manager ("Install and Remove Software" on the menu) and find and install the relevant packages.
It's much easier than that, assuming his system is up to date it's just:
Code:
yum install kernel-headers kernel-devel
 
Old 07-14-2015, 11:36 PM   #11
sachit
LQ Newbie
 
Registered: May 2015
Posts: 14

Original Poster
Rep: Reputation: Disabled
Today in the morning I performed an update (general update- yum update) and the updating solved the issue now I am using redhat in virtual machine. Thanks everyone for your help.
 
Old 07-15-2015, 09:32 AM   #12
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware
Posts: 6,411
Blog Entries: 6

Rep: Reputation: Disabled
Quote:
Originally Posted by sachit View Post
Today in the morning I performed an update (general update- yum update) and the updating solved the issue now I am using redhat in virtual machine. Thanks everyone for your help.
Thanks for the update.
Glad to hear that it is working for you.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Issues trying to install Virtual Box Guest Additions on RHEL v6.5 in Virtual Box JockVSJock Linux - Virtualization and Cloud 4 07-13-2015 10:14 PM
virtual box error sachin.davra Linux - Newbie 1 03-31-2014 10:11 AM
virtual Box : Critical Error AbidDhanaiser Linux - Newbie 2 05-29-2013 02:37 AM
virtual box gives error deathalele Linux - Software 5 01-26-2009 01:22 PM
virtual box error Mr.mick-duck Mandriva 4 03-16-2008 04:13 AM


All times are GMT -5. The time now is 02:20 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration