Scientific Linux Forum.org



  Reply to this topicStart new topicStart Poll

> VirtualBox linux kernel driver problem
dwmoreau
 Posted: Aug 28 2012, 08:26 PM
Quote Post


SLF Newbie


Group: Members
Posts: 5
Member No.: 1816
Joined: 28-August 12









Hello,

I am trying to get VirtualBox working on a 64-bit scientific linux computer. I installed the VirtualBox software from Oracles website. I have done this in Ubuntu and had not real problems. When I try to
PMEmail Poster
^
Nathan
 Posted: Aug 28 2012, 08:53 PM
Quote Post


SLF Geek
****

Group: Members
Posts: 243
Member No.: 928
Joined: 15-October 11









Looks like part of your post went missing. What exactly is it you are having trouble with?
PM
^
dwmoreau
 Posted: Aug 30 2012, 05:28 PM
Quote Post


SLF Newbie


Group: Members
Posts: 5
Member No.: 1816
Joined: 28-August 12









I posted in the wrong subforum and part of my post was transfered here.

I installed Virtual Box on SL6 and cannot get a virtual machine to start. I have used Virtual Box in Ubuntu without problems.

Virtual Box fails to open a session because 'vboxdrv is not loaded or there is a permission problem with /dev/vboxdrv'

says to execute '/etc/init.d/vboxdrv setup'

Typed in the line of code, with VBox off and as root. Output is 'Your kernel headers for kernel 2.6.32-279.5.1.el6.x86_64 cannot be found at (paths to two files, source and build).

Open folder /lib/modules/2.6.32-279.5.1.el6.x86_64/
both build and source do not work, the links are broken. Source is broken "because its target "build" doesn't exist." Build is broken because "../../../usr/src/kernels/2.6.32-279.5.1.el6.x86_64" doesn't exist.

The /usr/src/kernels/ folder is empty.

So what exactly should I do from here?
PMEmail Poster
^
toracat
 Posted: Aug 30 2012, 08:02 PM
Quote Post


SLF Geek
****

Group: Members
Posts: 300
Member No.: 11
Joined: 10-April 11









You need the kernel-devel package that matches the kernel you are running. Try:

CODE

yum install kernel-devel

--------------------
ELRepo: repository specializing in hardware support for EL
PMUsers Website
^
dwmoreau
 Posted: Aug 31 2012, 04:14 PM
Quote Post


SLF Newbie


Group: Members
Posts: 5
Member No.: 1816
Joined: 28-August 12









Thanks for the help. I installed I installed kernel-devel.x86_64 then kernel-headers.x86_64 and ran ran /etc/init.d/vboxdrv setup

A new error says bad return status for module build on kernel: 2.6.32-279.51.el6.x86_64. I checked the log file:

DKMS make.log for vboxhost-4.1.20 for kernel 2.6.32-279.5.1.el6.x86_64 (x86_64)
Fri Aug 31 11:46:39 EDT 2012
expr: syntax error
make: Entering directory `/usr/src/kernels/2.6.32-279.5.1.el6.x86_64'
/usr/src/kernels/2.6.32-279.5.1.el6.x86_64/arch/x86/Makefile:81: stack protector enabled but no compiler support
make: gcc: Command not found
LD /var/lib/dkms/vboxhost/4.1.20/build/vboxdrv/built-in.o
CC [M] /var/lib/dkms/vboxhost/4.1.20/build/vboxdrv/linux/SUPDrv-linux.o
/bin/sh: gcc: command not found
make[2]: *** [/var/lib/dkms/vboxhost/4.1.20/build/vboxdrv/linux/SUPDrv-linux.o] Error 127
make[1]: *** [/var/lib/dkms/vboxhost/4.1.20/build/vboxdrv] Error 2
make: *** [_module_/var/lib/dkms/vboxhost/4.1.20/build] Error 2
make: Leaving directory `/usr/src/kernels/2.6.32-279.5.1.el6.x86_64




PMEmail Poster
^
toracat
 Posted: Aug 31 2012, 04:25 PM
Quote Post


SLF Geek
****

Group: Members
Posts: 300
Member No.: 11
Joined: 10-April 11









You need gcc and other related packages to build the module. This is slightly overkill but will be easiest to install all required ones:
CODE

yum groupinstall "Development tools"

--------------------
ELRepo: repository specializing in hardware support for EL
PMUsers Website
^
dwmoreau
 Posted: Aug 31 2012, 06:57 PM
Quote Post


SLF Newbie


Group: Members
Posts: 5
Member No.: 1816
Joined: 28-August 12









That worked, thanks for the help. My gcc was the same version/release, so it was one of the other related packages or it fixed something that may have been broken.
PMEmail Poster
^
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

Topic Options Reply to this topicStart new topicStart Poll