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
6:yum -y install perl gcc make kernel-headers kernel-devel //安装编译环境
7:cd /tools/vmware-tools-distrib && ./vmware-install.pl //进入安装向导,基本回车就可以
原文地址:http://blog.51cto.com/11403002/2335160
时间: 2024-10-10 09:49:40