1:更换centos镜像源为阿里镜像源
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
或者
curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
yum makecache
2:打开该主机的控制台,选择"安装Vmware Tools"按钮(此时已把该安装包放在/dev/cdrom)
3:创建/mnt/cdrom并挂载
mkdir /mnt/cdrom && mount -t iso9660 /dev/cdrom /mnt/cdrom
4:mkdir /tools && cp /mnt/cdrom/VMwaretools-10.2.1-8267844.tar.gz /tools
5:tar -zxvf /tools/VMwaretools-10.2.1-8267844.tar.gz
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
或者
curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
yum makecache
2:打开该主机的控制台,选择"安装Vmware Tools"按钮(此时已把该安装包放在/dev/cdrom)
3:创建/mnt/cdrom并挂载
mkdir /mnt/cdrom && mount -t iso9660 /dev/cdrom /mnt/cdrom
4:mkdir /tools && cp /mnt/cdrom/VMwaretools-10.2.1-8267844.tar.gz /tools
5:tar -zxvf /tools/VMwaretools-10.2.1-8267844.tar.gz
6:yum -y install perl gcc make kernel-headers kernel-devel //安装编译环境
7:cd /tools/vmware-tools-distrib && ./vmware-install.pl //进入安装向导,基本回车就可以