centos安装vmtools遇到的问题

这次换了centOS玩玩,安装vmtools遇到了四个问题。

1.开机之后光驱自动挂载了centOS的iso,我都不知道为什么,然后以为没问题点击虚拟机>安装vmtools的时候桌面光盘的名称变成了Volumn 58M,很奇怪,打开来看是空的,后来直接把它卸载掉了,就在这个地方:

然后再:虚拟机>重新安装vmtools

再按照打开光盘将压缩包拖到桌面进行解压

tar -xvf [路径] -C /tmp/

cd /tmp/vmware-tools-distrib

切换成root,su root 

password:xxxxx

之后先安装,./vmware-install.pl

一路回车,然后出现了第二个问题

what is the location of the gcc program on your machine

????

行叭,我安装

 

yum install gcc

装完

又缺依赖包

The path "" is not a valid path to the 3.10.0-514.el7.x86_64 kernel headers

What is the location of the ...

 

yum install kernel-devel

 

第四个问题很快又来啦,又缺了一个依赖包,缺什么补什么咯

顺带一句,开机默认关闭network,一开始不知道,傻fufu地,结果yum完就显示错误一堆,结尾是

cannot find a valid baseurl for repo: base/7/x86_64