Ask Your Question
0

VB installation on F17 -headers for kernel 3.6.1-1.fc17.x8664

asked 2012-10-19 02:32:07 -0600

valertoZe gravatar image

updated 2012-10-19 04:09:15 -0600

hhlp gravatar image

During installation VB, after running
yum install dkms
try
/etc/init.d/vboxdrv setup
but have

**Your kernel headers for kernel 3.6.1-1.fc17.x86_64 cannot be found at<br>
/lib/modules/3.6.1-1.fc17.x86_64/build or /lib/modules/3.6.1-1.fc17.x86_64/source.<br>
                                                           [FAILED]<br>
  (Failed, trying without DKMS)<br>
Recompiling VirtualBox kernel modules                      [FAILED]<br>
  (Look at /var/log/vbox-install.log to find out what went wrong)**<br><br>

What should i do? install headers for kernel 3.6.1-1.fc17.x86_64??
if yes, what is the batter way to do this?

oh, now after system update have this in logs

DKMS make.log for vboxhost-4.2.2 for kernel 3.6.2-4.fc17.x86_64 (x86_64) <br>
Fri Oct 19 11:30:50 FET 2012 <br>
make: Entering directory `/usr/src/kernels/3.6.2-4.fc17.x86_64' 
/usr/src/kernels/3.6.2-4.fc17.x86_64/arch/x86/Makefile:88: stack protector enabled but no compiler support 
make: gcc: Command not found 

  LD      /var/lib/dkms/vboxhost/4.2.2/build/built-in.o 

  LD      /var/lib/dkms/vboxhost/4.2.2/build/vboxdrv/built-in.o

  CC [M]  /var/lib/dkms/vboxhost/4.2.2/build/vboxdrv/linux/SUPDrv-linux.o 

/bin/sh: gcc: command not found 
make[2]: *** [/var/lib/dkms/vboxhost/4.2.2/build/vboxdrv/linux/SUPDrv-linux.o] Error 127 
make[1]: *** [/var/lib/dkms/vboxhost/4.2.2/build/vboxdrv] Error 2
make: *** [_module_/var/lib/dkms/vboxhost/4.2.2/build] Error 2
make: Leaving directory `/usr/src/kernels/3.6.2-4.fc17.x86_64'<br><br>

O_o

edit retag flag offensive close merge delete

Comments

Thanks for the solution

Siva gravatar imageSiva ( 2013-04-11 06:26:48 -0600 )edit

1 Answer

Sort by » oldest newest most voted
1

answered 2012-10-19 03:58:12 -0600

hhlp gravatar image

updated 2012-10-19 04:09:35 -0600

Keys :

Your kernel headers for kernel 3.6.1-1.fc17.x86_64 cannot be found

gcc: Command not found

you have to prepare your system for compiling, install this ->

sudo yum install gcc kernel-devel kernel-headers dkms

and try again to run

sudo /etc/init.d/vboxdrv setup

and don't forget to add your user to virtualbox group :

Add VirtualBox User(s) to vboxusers Group

Replace user_name with your own user name or some another real user name.

usermod -a -G vboxusers user_name
edit flag offensive delete link more

Question Tools

Stats

Asked: 2012-10-19 02:32:07 -0600

Seen: 1,698 times

Last updated: Apr 11 '13