Clone a virtual machine

To clone a virtual machine, you need to shut down the virtual machine first.

Right click - manage - clone

Right click - manage - clone

Next step

Next step

Next step

Next step

"Create Linked Clone"

Create linked clones

Finish

Power on the newly cloned virtual machine

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

take a snapshot

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325729654&siteId=291194637