Display results as :

Rechercher Advanced Search

Top posters
agoenk (2095)
viyan_cs (1036)
b-joe (749)
ieyaz_Chuit (725)
Zell Aristocrats (667)
jun43d1 (638)
Hetro_fabio (314)
twinkblack (265)
suzee_tkj2 (237)
harmoko (184)

January 2017

Calendar Calendar


Menginstall VBox Guest Additions on CentOS

View previous topic View next topic Go down

Menginstall VBox Guest Additions on CentOS

Post by agoenk on Thu Sep 08, 2011 9:58 am

At the beginning, I was confused to install the VirtualBox Guest Addition on my CentOS 5.6. But now, I can install the VBox Guest Additions and CentOS 5.6 run smoothly on my Windows 7 host. Hmm…please read my guide below to install the VBox Guest Additions non CentOS 5.6. This tutorial require an active internet connection on your system. Because you still need to download and install some packages from the internet. I am using VirtualBox version 4.0.8 on Windows 7 64 bit edition.

How to install VBox Guest Additions :

1. Change to root


2. Mount VirtualBox Guest Additions

Click Devices | Install Guest Additions…from your VirtualBox. See screenshot below:

3. Mount VirtualBox Guest Additions:

mkdir /media/VBoxGuestAdditions

mount -r /dev/cdrom /media/VBoxGuestAdditions

4. Now Install the packages below

yum install gcc kernel-devel kernel-headers

5. Add KERN_DIR environment variable

KERN_DIR=/usr/src/kernels/`uname -r`-`uname -m`

export KERN_DIR

6. Install Guest Additions

cd /media/VBoxGuestAdditions

sh ./

7. Up to this point, in some computer the VirtualBox Guest Additions may installed correctly. But if you got this message below, you may proceed to the next tutorial.

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.18-238.el5
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

/etc/init.d/vboxadd setup

to build them.

8. Still on Terminal, paste the command below

yum install kernel-devel-2.6.18-238.el5

9. Then start the step on point 6. And I got this message instead:

[root@localhost VBOXADDITIONS_4.0.8_71778]# sh ./VBoxLinuxAdditions.runVerifying archive integrity… All good.
Uncompressing VirtualBox 4.0.8 Guest Additions for Linux………
VirtualBox Guest Additions installer
Removing installed version 4.0.8 of VirtualBox Guest Additions…
Removing existing VirtualBox DKMS kernel modules [ OK ]
Removing existing VirtualBox non-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.

Building the main Guest Additions module [ OK ]
Building the shared folder support module [ OK ]
Doing non-kernel setup of the Guest Additions [ OK ]
Starting the VirtualBox Guest Additions [ OK ]
Installing the Window System drivers
Installing X.Org 7.1 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 ]

10. Reboot your CentOS and you should have the VirtualBox Guest Addition.



Posts : 2095
Join date : 2009-03-11

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

Permissions in this forum:
You cannot reply to topics in this forum