How To Install Virtualbox 3.1.2 Guest Additions on CentOS 5.4 amd64
Tested with CentOS 5.4 – should work in RHEL and Fedora
This how-to assumes the install is a basic server install without X
First mount the Guest Additions ISO as a CD:
Devices –> Install Guest Additions
Now mount the CD
mkdir cdrom
mount /dev/cdrom /media/cdrom
cd /media/cdrom
Run the install script:
sudo ./VBoxLinuxAdditions-amd64.run
You will probbaly get this output:
Uncompressing VirtualBox 3.1.2 Guest Additions for Linux........
VirtualBox Guest Additions installer
Building the VirtualBox Guest Additions kernel modules [FAILED]
(Your system does not seem to be set up to build kernel modules.
FAILED! “Your system does not seem to be set up to build kernel modules” means we need to load GCC, build and kernel headers:
sudo yum install gcc kernel-devel kernel-devel-$(uname -r)
Say Yes at the prompts to install
If all that was successful, try again:
sudo ./VBoxLinuxAdditions-amd64.run
You should see:
Uncompressing VirtualBox 3.1.2 Guest Additions for Linux........
VirtualBox Guest Additions installer
Removing installed version of VirtualBox Guest Additions...
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 [FAILED]
(Could not find the X.Org or XFree86 Window System.)
It’s OK that the X drivers failed to install because we don’t have X loaded.
Now you’re set and ready to move on to bigger and better installs!







