一、安装虚拟机:
1搭建环境
设置ip,关闭加强型防火墙:
[root@localhost ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
BOOTPROTO=static
NAME=eth0
DEVICE=eth0
ONBOOT=YES
IPADDR=172.25.73.1
PREFIX=24
GATEWAY=172.25.73.250
DNS1=114.114.114.114
systemctl disable --now NetworkManager
systemctl restart network
[root@localhost ~]# cat /etc/yum.repos.d/dvd.repo
[dvd]
name=rhel7.6
baseurl=http://172.25.73.250/rhel7.6
gpgcheck=0