Versions
- CentOS 6.5
- Virtualbox 4.3.12
Prerequisites
- Install CentOS as Virtualbox Guest
Install Prereqs
1 |
sudo yum install gcc make kernel-devel kernel-devel kernel-headers |
Configure
Get the kernel version:
1 2 |
$ uname -r 2.6.32-431.el6.x86_64 |
Note |
VBoxLinuxAdditions.sh looks for the kernel source at $KERN_DIR/${uname -r}. The cp below is to make the directory structure meet its expectations (the default kernel sources folder includes the minor version) |
1 2 |
export KERN_DIR=/usr/src/kernels sudo cp -R /usr/src/kernels/2.6.32-431.17.1.el6.x86_64 /usr/src/kernels/2.6.32-431.el6.x86_64 |
Install
1 |
sudo /media/VBOXADDITIONS_4.3.12_93733/VBoxLinuxAdditions.sh |
Verify
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
Checking archive integrity... All good. Uncompressing VirtualBox 4.3.12 Guest Additions for Linux............ VirtualBox Guest Additions installer Copying additional installer modules ... Installing additional modules ... Removing existing VirtualBox non-DKMS kernel modules [ OK ] Building the VirtualBox Guest Additions kernel modules [ OK ] Building the main Guest Additions module [ OK ] Building the shared folder support module [ OK ] Building the OpenGL 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 Server 1.13 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 ] |
Cleanup
1 |
sudo rm -rf /usr/src/kernels/2.6.32-431.el6.x86_64 |
Reboot
1 |
sudo reboot now |