To clone a virtual machine, you need to shut down the virtual machine first.
Right click - manage - clone
Next step
Next step
"Create Linked Clone"
Power on the newly cloned virtual machine
Modify the static IP address (to prevent the IP conflict with the original virtual machine, CentOS 7 configures a static IP in NAT mode )
vi /etc/sysconfig/network-scripts/ifcfg-ens33
IPADDR=192.168.150.129
delete the UUID line
save and exit
restart network service
systemctl restart network.service
View IP address
ifconfig
ping connectivity test
ping www.baidu.com
set hostname
[root@localhost ~]# hostnamectl set-hostname centos-02
Set the hostname of the original virtual machine (hostname of CentOS-01)
[root@localhost ~]# hostnamectl set-hostname centos-01
CentOS-02 snapshot
Right click - Snapshot - Take Snapshot