Installing CentOS typically Requires > 4GB Hard Disk.
I suffered with the full hard disks when I started with 4.0GB HDD at the first time.
# yum install gcc kernel-headers kernel-devel autoconf automake
Press y if it asks something.
# cd /usr/src/kernels
# mv 2.6.18-92.1.22.el5-i686 2.6.18-92.el5-i686
Specific number can be differ; just remove the last two version number.
Insert the Guest Additions Disk from the menu "Devices"-"Install Guest Additions",
Move to mounted CDROM directory. Again, the specific version number can be differ.
# cd /media/VBOXADDITIONS_2.1.2_41185
# cp VBoxLinuxAdditions-x86.run ~
# cd ~
# ./VBoxLinuxAdditions-x86.run
It will install the additions. If successful, reboot.
# reboot
Now edit /etc/X11/xorg.conf file to enable various screen resolutions
Edit the SubSection "Display" in the Section "Screen",
SubSection "Display"
Viewport 0,0
Depth 24
Modes "1920x1200" "1680x1050" "1440x900" "1280x800" "1024x768" "800x600" "640x480"
EndSubSectionDepth 24
Modes "1920x1200" "1680x1050" "1440x900" "1280x800" "1024x768" "800x600" "640x480"
You may add other screen additions as you like.
Then logout, and login.
+_+