[root@localhost ~]# cat /etc/redhat-release
CentOS release 5.6 (Final)
[root@localhost ~]# sh ./VBoxLinuxAdditions.run
Building the main Guest Additions module [失败]
[root@localhost ~]# cat /var/log/vboxadd-install.log
/tmp/vbox.0/Makefile.include.header:97: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again。 停止。
Creating user for the Guest Additions.
Creating udev rule for the Guest Additions kernel module.
[root@localhost ~]# yum install gcc kernel kernel-devel
[root@localhost ~]# reboot
[root@localhost ~]# /etc/init.d/vboxadd setup
==================
参考:http://www.cnblogs.com/MoShin/archive/2012/04/25/2469156.html