I found my question in various places including here also, but all of them are not working in my case. Please bear with me to read this long post.
I am trying to install VirtualBox 4.3.6 Guest Additions in order to enable folder sharing between my host (Windows 7) and guest (Cent Os 6.3) operating system but It is showing error.
Below is the message displayed while installation was in progress-
Code: Select all
Uncompressing VirtualBox 4.3.6 Guest Additions for Linux............
VirtualBox Guest Additions installer
Removing installed version 4.3.6 of VirtualBox Guest Additions...
Copying additional installer modules ...
Installing additional modules ...
Removing existing VirtualBox non-DKMS kernel modules [ OK ]
Building the VirtualBox Guest Additions kernel modules
The headers for the current running kernel were not found. If the following
module compilation fails then this could be the reason.
The missing package can be probably installed with
yum install kernel-devel-2.6.32-279.el6.i686
Building the main Guest Additions module [FAILED]
(Look at /var/log/vboxadd-install.log to find out what went wrong)
Doing non-kernel setup of the Guest Additions [ OK ]
Installing the Window System drivers
Installing X.Org Server 1.10 modules [ OK ]
Setting up the Window System to use the Guest Additions [ OK ]
You may need to restart the hal service and the Window System (or just restart
the guest system) to enable the Guest Additions.
Installing graphics libraries and desktop services componen[ OK ]
Press Return to close this window...
Code: Select all
[root@localhost ~]# yum install kernel-devel-2.6.32-279.el6.i686
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: centos.aol.in
* extras: mirror-fpt-telecom.fpt.net
* updates: mirrors.vonline.vn
Setting up Install Process
No package kernel-devel-2.6.32-279.el6.i686 available.
Error: Nothing to do
[root@localhost ~]#
Code: Select all
/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.
Creating user for the Guest Additions.
Creating udev rule for the Guest Additions kernel module.
/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.
Creating user for the Guest Additions.
Creating udev rule for the Guest Additions kernel module.
/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.
Creating user for the Guest Additions.
Creating udev rule for the Guest Additions kernel module.
/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.
Creating user for the Guest Additions.
Creating udev rule for the Guest Additions kernel module.
/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.
Creating user for the Guest Additions.
Creating udev rule for the Guest Additions kernel module.
Code: Select all
[root@localhost ~]# cat /etc/issue
CentOS release 6.3 (Final)
Kernel \r on an \m
[root@localhost ~]# uname -r
2.6.32-279.el6.i686
[root@localhost ~]# yum info kernel
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: centos.aol.in
* extras: mirrors.digipower.vn
* updates: mirrors.vonline.vn
Installed Packages
Name : kernel
Arch : i686
Version : 2.6.32
Release : 279.el6
Size : 84 M
Repo : installed
From repo : anaconda-CentOS-201207051201.i386
Summary : The Linux kernel
URL : http://www.kernel.org/
License : GPLv2
Description : The kernel package contains the Linux kernel (vmlinuz), the core
: of any Linux operating system. The kernel handles the basic
: functions of the operating system: memory allocation, process
: allocation, device input and output, etc.
Available Packages
Name : kernel
Arch : i686
Version : 2.6.32
Release : 431.1.2.0.1.el6
Size : 26 M
Repo : updates
Summary : The Linux kernel
URL : http://www.kernel.org/
License : GPLv2
Description : The kernel package contains the Linux kernel (vmlinuz), the core
: of any Linux operating system. The kernel handles the basic
: functions of the operating system: memory allocation, process
: allocation, device input and output, etc.
[root@localhost ~]# yum info kernel-devel
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: centos.aol.in
* extras: mirrors.digipower.vn
* updates: mirrors.vonline.vn
Available Packages
Name : kernel-devel
Arch : i686
Version : 2.6.32
Release : 431.1.2.0.1.el6
Size : 8.7 M
Repo : updates
Summary : Development package for building kernel modules to match the
: kernel
URL : http://www.kernel.org/
License : GPLv2
Description : This package provides kernel headers and makefiles sufficient to
: build modules against the kernel package.
[root@localhost ~]# yum info kernel-headers
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: centos.aol.in
* extras: mirrors.digipower.vn
* updates: mirrors.vonline.vn
Installed Packages
Name : kernel-headers
Arch : i686
Version : 2.6.32
Release : 431.1.2.0.1.el6
Size : 2.5 M
Repo : installed
From repo : updates
Summary : Header files for the Linux kernel for use by glibc
URL : http://www.kernel.org/
License : GPLv2
Description : Kernel-headers includes the C header files that specify the
: interface between the Linux kernel and userspace libraries and
: programs. The header files define structures and constants that
: are needed for building most standard programs and are also needed
: for rebuilding the glibc package.
[root@localhost ~]#
-
Thanks
Ravi