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 //进入安装向导,基本回车就可以
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。