当前位置:网站首页>3.4 cloning and host time synchronization of VMware virtual machine

3.4 cloning and host time synchronization of VMware virtual machine

2022-06-25 21:54:00 It addict

python Programming fast ( Ongoing update …)

Recommended system basis


One 、 preparation

Create a virtual machine :VMware Create and install CentOS7 And use MobaXterm Connect

Two 、 Clone virtual machine

clone

 Insert picture description here
 Insert picture description here
 Insert picture description here

Regenerate it , Otherwise the back Moba Not even

 Insert picture description here

network adapter 2 Do the same

3、 ... and 、 Modify virtual machine IP

Enter the virtual machine that you just copied

vi /etc/sysconfig/network-scripts/ifcfg-ens33

The primary virtual machine is 101, This one is changed to 102

 Insert picture description here

Don't forget to restart the network after the change

systemctl restart network

After that, you can use Moba Create a new corresponding ip Connect

Four 、 Modify hostname

After copying the virtual machine , The alias of the machine is also copied , To modify , Avoid mistakes in future use
My previous machine here was called hadoop1, Change the secondary virtual machine to hadoop2

Use command :

hostnamectl set-hostname hadoop2

5、 ... and 、 Modify the host list

When setting up a cluster, you need to modify , If it is just a backup, it can not be modified

vi /etc/hosts

hadoop2

6、 ... and 、 Virtual machine and host time synchronization

Right click the target virtual machine and click Set

 Insert picture description here

Use command date You can see

原网站

版权声明
本文为[It addict]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202181151204916.html