Retrieve root password and clone virtual machine

Retrieve the root password

Do you want to reinstall the system? Of course not! Enter single-user mode and change the root password.
1) Restart Linux, see the picture below, press Enter within 3 seconds
insert image description here

2) Press Enter within three seconds, and the following interface will appear
insert image description here

3) Press the e key to enter the following picture
insert image description here

4) Move to the next line, press the e key again
insert image description here

5) Move to the next line and modify
insert image description here
insert image description here

insert image description here

After the modification is completed, press the Enter key, and then press the b key to restart and enter the system
6) Move to the next line for modification

insert image description here

insert image description here

Finally, after changing the password, just reboot.

Second clone virtual machine

2.1 Clone a virtual machine

1) Shut down the virtual machine to be cloned
2) Find the clone option
insert image description here

3) Welcome page
insert image description here

4) Clone the virtual machine
insert image description here

5) Set Create Full Clone
insert image description here

6) Set the cloned virtual machine name and storage location
insert image description here

7) Waiting for being cloned
insert image description here

8) Click Close to complete cloning
insert image description here

9) Modify the ip of the cloned virtual machine

[root@hadoop101 /]#vim /etc/udev/rules.d/70-persistent-net.rules

Enter the following page, delete the line of eth0; change eth1 to eth0, and copy the physical ip address at the same time
insert image description here

10) Modify the IP address

[root@hadoop101 /]#vim /etc/sysconfig/network-scripts/ifcfg-eth0

(1) Update the copied physical ip address
HWADDR=00:0C:2x:6x:0x:xx #MAC address
(2) Change to the ip you want
IPADDR=192.168.1.101 #IP address
11) Modify the host name

12) Restart the server

Guess you like

Origin blog.csdn.net/weixin_45529272/article/details/122994181