Installing the CentOS system in VirtualBox, you will encounter the "enhanced tool" does not install properly, the main reason is not found in the kernel library.
The error prompts are as follows:
By viewing the log file:
Cat/var/log/vboxadd-install.log
From the log, we can find out where the problem is.
1th Step: Install the gcc-c++ compiler
(Note: If your CentOS is installed all the way, then the default is already installed)
yum-y Install gcc-c++
Note: Make sure your network is unobstructed before installing because Yum is a network installation.
The total is about 40M, and it took me about 4 minutes to download.
2nd step: Install kernel kernal Library
Yum-y Install kernel Kernel-devel
3rd Step: Restart the system
Init 6
4th Step: Install the Enhancement tool again, wait a few minutes to succeed
Referenced from: http://www.php-note.com/article/detail/401
After successful installation
General VirtualBox installation of CentOS installation is done by default to 800x600 resolution.
Install guest additions. After the installation is complete, the resolution can be modified to 1024x768, and there are some higher resolutions, but no 1366x768.
Modify/etc/x11/xorg.config
After installing guest additions, the file default content is (or similar)
# VirtualBox generated configuration file
# based on/etc/x11/xorg.conf.
section "Monitor"   
identifier "monitor[0]"   
ModelName "VirtualBox Virtual Output"
vendorname "Oracle corporation"
endsection
section "Device"   
boardname "VirtualBox Graphics"   
driver "Vboxvideo"   
Identifier "device[0]"   
vendorname "Oracle Corporation"   
endsection
section "screen"   
subsection "Display"   
depth 24
endsubsection
device " Device[0] "  
identifier " screen[0] " 
Endsection
Modify section ' Screen ', add field modes "800x600" "1366x768"
Section "Screen"
Subsection "Display"
Depth 24
Modes "1366x768" "800x600" #在前面的分辨率是默认分辨率
Endsubsection
Device "Device[0]"
Identifier "Screen[0]"
Endsection
Note: Modes to be added between subsection, and cannot add only 1366x768, to add 800x600 at the same time.
Referenced from: http://www.linuxidc.com/Linux/2012-12/75447.htm
VirtualBox Installing CentOS fullscreen