CentOS 6.5, Building the main Guest Additions module FAILDE

Posted on June 22, 2014, 10:01 pm


CentOS 6.5, Building the main Guest Additions module FAILDE ពេលដំឡើង Guest Addition លើម៉ាស៊ីន Virtual

I got this error on windows 7, 64bits. To get rid of this error, do the following.


Building the main Guest Additions module    [FAILDE] - VirtualBox 4.3.12
Building the main Guest Additions module [FAILDE] - VirtualBox 4.3.12


Building the main Guest Additions module [FAILDE] - VirtualBox 4.3.12

  • 1- Make sure that the kernel version is up-to-date
    As the administrator("root") launch the command below
yum update kernel*
  • 2- Install the following packages
    As root lanuch the command below
rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
yum install gcc kernel-devel kernel-headers dkms make bzip2 perl
  • 3- Set the KERN_DIR environement variable
    As root lanuch the commande below
ls /usr/src/kernels

and note the name of that folder ex(2.6.32-431.20.3.el6.i686) and your KERN_DIR variable should be like this

KERN_DIR=/usr/src/kernels/2.6.32-431.20.3.el6.i686

now open the "bashrc" file with any text editor(i use nano)

nano ~/.bashrc


nano ~/.bashrc
nano ~/.bashrc


and add the parameter above.
to make sure that the change is take into account, you will need to reload the "bashrc", to do that use the command below

source ~/.bashrc

than use this command to verify the value of that parameter

echo $KERN_DIR
  • 4- Reboot the system and re-install the VirtualBox guest addition module


Success Install Guest Addition
Success Install Guest Addition


Blog Archive

  • 2023-May (1)
  • 2023-February (1)
  • 2020-October (1)
  • 2020-May (1)
  • 2020-February (2)
  • 2019-December (5)
  • 2019-November (1)
  • 2018-July (1)
  • 2017-December (1)
  • 2017-November (1)
  • 2017-June (1)
  • 2016-September (5)
  • 2016-August (3)
  • 2016-June (1)
  • 2015-September (1)
  • 2015-May (1)
  • 2015-February (2)
  • 2014-December (1)
  • 2014-November (2)
  • 2014-September (3)
  • 2014-August (1)
  • 2014-June (1)
  • 2014-May (1)
  • 2014-March (1)
  • 2013-December (2)
  • 2013-October (2)
  • 2013-July (1)
  • 2013-June (3)
  • 2013-May (4)
  • 2013-March (1)
  • 2012-December (2)
  • 2012-November (1)
  • 2012-October (1)
  • 2012-September (2)
  • 2012-August (2)
  • 2012-July (2)
  • 2012-June (1)
  • 2012-May (2)
  • 2012-March (2)
  • 2012-February (2)
  • 2012-January (5)
  • 2011-December (2)
  • 2011-November (4)
  • 2011-October (5)
  • 2011-September (2)
  • 2011-August (1)
  • 2011-June (2)
  • 2011-May (1)
  • 2011-April (9)
  • 2011-March (3)
  • 2011-February (12)
  • 2011-January (16)
  • 2010-December (17)
  • 2010-November (6)
  • 2010-October (10)
  • 2010-September (8)