Add CentOS Linux guest OS to virtualbox

During my installation of a CentOS Linux guest OS on my Windows XP host system, I found most steps are pretty straightforward according to the manual, but there are a few places costing me some time to do research on Google.

1) To install the guest addition kit, I have to find and mount the image file VBoxGuestAdditions.iso under the virtualbox program root folder, but then I met this error when running “sh VBoxLinuxAdditions-x86.run”:

Guest Additions installation
Please install the build and header files for your current Linux kernel.
The current kernel version is 2.6.18-164.el5
Problems were found which would prevent the Guest Additions from installing.
Please correct these problems and try again.

After trying multiple solutions on Google, the following solution worked for me, i.e, by running:
install kernel-devel-`uname -r`

2) X-windows size is too small, maximumly only 800×600. After adding the guest addition, I am able to either modify the display file “/etc/X11/xorg.conf” under Section “Screen” to add a new Modes “1280×1024”, or directly use the System -> Display tool: under the Hardware tab, select LCD monitor type and then under the Settings tab, choose the right Resolution.

Leave a Reply