Installation Problem in FC6

Discussions related to using VirtualBox on Linux hosts.
Post Reply
Ahmed_El_Gamil
Posts: 1
Joined: 29. May 2007, 11:14

Installation Problem in FC6

Post by Ahmed_El_Gamil »

hey guys...

i cannot install virtual box on Fedora Core 6 here..i downloaded the RHEL 4 .run script..it extracted the rpm, when i install the rpm it gives me the following output:

Code: Select all

[root@Ahmed VirtualBox]# rpm -ivh VirtualBox-1.3.8_rhel4-1.i586.rpm
Preparing...                ########################################### [100%]
   1:VirtualBox             ########################################### [100%]

Creating group 'vboxusers'. VM users must be member of that group!

No precompiled module for this kernel found -- trying to build one. Messages
emitted during module compilation will be logged to /var/log/vbox-install.log.

Compilation of the kernel module FAILED! VirtualBox will not start until this
problem is fixed. Please consult /var/log/vbox-install.log to find out why the
kernel module does not compile. Most probably the kernel sources are not found.
Install them and execute

  /etc/init.d/vboxdrv setup

as root.
and when i excute

Code: Select all

  /etc/init.d/vboxdrv setup
i get the following :

Code: Select all

[root@Ahmed VirtualBox]#   /etc/init.d/vboxdrv setup
Stopping VirtualBox kernel module                          [  OK  ]
Recompiling VirtualBox kernel module                       [FAILED]
(Look at /var/log/vbox-install.log to find out what went wrong)
and here is what is in vbox-install.log

Code: Select all

Makefile:73: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again..  Stop.
can any one help me with that ??
stevedownes
Posts: 4
Joined: 29. May 2007, 12:55
Location: uk

Post by stevedownes »

I run debian, not red hat, so my reply will only give you pointers I'm afraid. But as no-one else has replied here they are.

You need to get the kernel source code or headers for the kernel you are using. The command:-

uname -a

should tell you which kernel you are using & a search of the red hat site should turn them up. They will probably be in the form of an .rpm file in which case install in the usual way. If they are just a tar file or similar they will need extracting & should probably go in /usr/src directory.

Having got them in the right place run the VirtualBox routine to install the driver again using

/etc/init.d/vboxdrv setup

& it should compile OK.

(The vbox.drv file needs bits of the source code of your kernel to build itself in a way that matches your kernel)

Steve
LaughingBoy
Posts: 44
Joined: 16. May 2007, 02:16
Location: Adelaide, SA, Australia
Contact:

Quick fix.

Post by LaughingBoy »

Try this:

Code: Select all

yum install kernel-headers
HTH :!:
Post Reply