Virtualbox : Makefile:23: *** Error: unable to find the sources of your current Linux kernel | Solved | FAQ

by
Share this Article: Facebook1Google+0Twitter0LinkedIn0Reddit0StumbleUpon0

Question : I am trying to install  vbox  guest additions in centos  5,5, while installing i got this error :

Virtualbox : Makefile:23: *** Error: unable to find the sources of your current Linux kernel

 

 

[root@syslog1 ~]# /etc/init.d/vboxadd   setup


Output

Uninstalling old VirtualBox DKMS kernel modules            [  OK  ]
Building the VirtualBox Guest Additions kernel modules     [FAILED]
Your system does not seem to be set up to build kernel modules.
Look at /var/log/vboxadd-install.log to find out what went wrong.  Once you have corrected it, you can
run

When  checking the  logs :

more /var/log/vboxadd-install.log

Output:

Makefile:23: *** Error: unable to find the sources of your current Linux kernel.
Specify KERN_DIR= and run Make again..  Stop.
Creating user for the Guest Additions.
Creating udev rule for the Guest Additions kernel module.
[root@syslog1 ~]#

Answer: To solve this, as root install these packages:

 

yum install  gcc dkms   kernel-devel  (use rpmfusion) directory

. now  try again   /etc/init.d/vboxadd  setup

 

 /etc/init.d/vboxadd  setup

Output

Uninstalling old VirtualBox DKMS kernel modules            [  OK  ]
Building the VirtualBox Guest Additions kernel modules
Your guest system does not seem to have sufficient OpenGL support to enable
accelerated 3D effects (this requires Linux 2.6.27 or later in the guest
system).  This Guest Additions feature will be disabled.

Doing non-kernel setup of the Guest Additions              [  OK  ]
Starting the VirtualBox Guest Additions                    [  OK  ]
[root@syslog1 ~]#

For questions please refer to our Q/A forum at : http://ask.unixmen.com/

Share this Article: Facebook1Google+0Twitter0LinkedIn0Reddit0StumbleUpon0