LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Virtual Box error (https://www.linuxquestions.org/questions/linux-newbie-8/virtual-box-error-4175547839/)

sachit 07-13-2015 12:42 AM

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.

unSpawn 07-13-2015 01:09 AM

- 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?

sachit 07-13-2015 09:59 AM

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

suicidaleggroll 07-13-2015 10:09 AM

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?

sachit 07-14-2015 01:28 AM

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.

sachit 07-14-2015 03:13 AM

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

berndbausch 07-14-2015 06:05 AM

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.

Ztcoracat 07-14-2015 06:36 AM

Quote:

Originally Posted by suicidaleggroll (Post 5390856)
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)

frankbell 07-14-2015 06:43 PM

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.

suicidaleggroll 07-14-2015 07:09 PM

Quote:

Originally Posted by frankbell (Post 5391485)
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

sachit 07-14-2015 10:36 PM

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.

Ztcoracat 07-15-2015 08:32 AM

Quote:

Originally Posted by sachit (Post 5391560)
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.


All times are GMT -5. The time now is 11:15 AM.