一、安装依赖包
#yum install kernel-headers #yum install kernel-devel #yum install gcc* #yum install make
二、安装增强功能
安装命令
#mount /dev/cdrom /mnt/cdrom #cd /mnt/cdrom #./VBoxLinuxAdditions.run
安装完需要重启
PS:
运行VBoxLinuxAdditions.run时,报错

查看日志文件
cd /var/log/VBoxGuestAdditions.log

发现缺少gcc,make,header files和perl,可能是之前没有安装好
再次安装以后,发现