Virtual machine cloning tutorial-for cluster construction, etc.

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.
Insert picture description here
Select the current status of the virtual machine.
Insert picture description here
Select Create a full clone.
Insert picture description here
Change the name and save path of the virtual machine
Insert picture description here
. After cloning is complete, in
Insert picture description here
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
Insert picture description here
generate a new MAC address
Insert picture description here


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

Insert picture description here
Modify the network mapping and add the local ip mapping at the end

[root@master01 ~]# vi /etc/hosts

Insert picture description here

Remember to save and exit, and then restart the network service

[root@master01 ~]# systemctl restart network

At this point, a virtual machine is cloned

Guess you like

Origin blog.csdn.net/weixin_48482704/article/details/112482306