virtualbox虚拟机使用
1:mac安装virtual
https://www.cnblogs.com/andong2015/p/7688120.html
2: 下载centos7虚拟镜像
下载地址:http://isoredirect.centos.org/centos/7/isos/x86_64/
一般使用阿里的迷你镜像http://mirrors.aliyun.com/centos/7.9.2009/isos/x86_64/
镜像名称:CentOS-7-x86_64-Minimal-2009.iso
3:安装虚拟环境
https://www.cnblogs.com/xyinjie/p/9437049.html
4:设置双网络
NAT:虚拟机之间互相访问
Host-Only:虚拟机实现联网
注意:双网卡需要设置网卡配置
1:网卡配置文件路径/etc/sysconfig/network-scripts/ifcfg-enp0s3 将ONBOOT=yes
2:重启网卡配置 systemctl restart network
注意:virtualbox版本6.1.32中虚拟机不能使用中文名否则无法启动