1.输入命令:
cd /media
2.输入命令:
sh VBoxLinuxAdditions.run
3.可能会出现错误:
解决的办法是依次输入命令:
yum install update
yum update kernel
yum update kernel-devel
yum install kernel-headers
yum install gcc
yum install gcc make
然后再运行:
sh VBoxLinuxAdditions.run
就可以了: