Issue Description
While installing Guest Additions faced with the following error
You are advised to examine the log at /var/log/vboxadd-install.log to figure out the cause, which in my case the log included:
/tmp/vbox.0/Makefile.include.header:97: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Stop.
After searching from many sites ... got the first solution as
# cd /etc/yum.repos.d
# yum update
# yum install gcc
# yum install kernel-uek-devel
#yum update
check the folders in /usr/src/kernels directory
# ls /usr/src/kernels
from the output check out your version
# KERN_DIR = /usr/src/kernels/yourVersion
# export KERN_DIR
#cd /media/VBOXADDITIONS_4.2.26_98988
#sh ./VBoxLinuxAdditions.run
still got same error... just rebooted to have effects of update from yum.
DONE. Able to install Guest Additions.
Environment
Disclaimer - Views expressed in this blog are author's own and do not necessarily represents the policies of aclnz.com