Clone virtual machine tutorial
One, clone
Multiple machines are needed to build a cluster, you can use cloning to quickly build multiple machines
First find the machine to be cloned.
Right-click —> Manage —> Clone.
Select the current status of the virtual machine.
Select Create a full clone.
Change the name and save path of the virtual machine
. After cloning is complete, in
order to make the cloned virtual machine become an independent new virtual machine, you need to Change its MAC address, hostname and IP address
2. MAC address
Right click on the virtual machine —> Settings to
generate a new MAC address
Three, hostname
Modify hostname
[root@master01 ~]# hostnamectl set-hostname master01
[root@master01 ~]# hostname
master01
If the hostname does not take effect, please restart the virtual machine
Fourth, modify the IP address
Modify the ip address and set it to static ip
[root@master01 ~]# vi /etc/sysconfig/network-scripts/ifcfg-ens33
Modify the network mapping and add the local ip mapping at the end
[root@master01 ~]# vi /etc/hosts
Remember to save and exit, and then restart the network service
[root@master01 ~]# systemctl restart network
At this point, a virtual machine is cloned