一、在exsi创建虚拟机
创建虚拟机:Centos7
硬盘:40G
内存:4G
iso:Centos7-mini
二、安装系统
在图形化界面设置网络(network),选择手动设置,分配ip:
ip:172.16.30.16
DNS:61.139.2.69
gateway:172.16.30.1
掩网:255.255.255.0
三、centos7基本设置
1、安装外部yum源
cd /etc/yum.repo.d/
wget http://mirrors.aliyun.com/repo/Centos-7.repo
wget http://mirrors.163.com/.help/CentOS7-Base-163.repo
2、安装vmware tools
参考Linux虚拟机VMware vSphere上安装VMware Tools
mount /dev/cdrom /media
cp VMwareTools-8.6.0-425873.tar.gz /tmp
tar zxf VMwareTools-8.6.0-425873.tar.gz
cd vmware-tools-distrib/
./vmware-install.pl
umount /media
如果出现“bash:./vmware-install.pl :/usr/bin/perl:bad interpreter:No such file or directory.”这样的错误,说明没有安装perl环境,安装:
yum groupinstall "Perl Support"
转载于:https://blog.51cto.com/bestlope/2139615