LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Trying to run Oracle Virtual Box on linux CentOs (https://www.linuxquestions.org/questions/linux-newbie-8/trying-to-run-oracle-virtual-box-on-linux-centos-4175498895/)

cupps101 03-20-2014 03:48 PM

Trying to run Oracle Virtual Box on linux CentOs
 
I am trying to run virtual box on my machine but getting errors When executing the command sudo /etc/init.d/vboxdrv setup I am getting the following below: I have already install he src file, Can you help?

Uninstalling modules from DKMS
removing old DKMS module vboxhost version 4.3.8

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

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

DKMS: add completed.
Failed to install using DKMS, attempting to install without
Makefile:183: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Stop.

Also, when run it through the GUI under applications I get the erros whihc is pretty much the same above

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.

suicidaleggroll 03-20-2014 03:54 PM

The error seems pretty self-explanatory to me...it can't find the kernel sources. Have you installed them? They're in the package "kernel-devel"

Code:

yum install kernel-devel

cupps101 03-20-2014 04:04 PM

Installing Oracle Virtual Box Manager on CentOs
 
Package kernel-devel-2.6.32-431.5.1.el6.x86_64 already installed and latest version
Nothing to do

suicidaleggroll 03-20-2014 04:20 PM

Have you also installed the kernel-headers?

Have you seen/tried this?
http://www.libre-software.net/instal...fic-linux-rhel

I typically install VBox from the repo when I can, it simplifies everything and keeps it up to date.


All times are GMT -5. The time now is 05:30 AM.