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
2) Press Enter within three seconds, and the following interface will appear
3) Press the e key to enter the following picture
4) Move to the next line, press the e key again
5) Move to the next line and modify
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
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
3) Welcome page
4) Clone the virtual machine
5) Set Create Full Clone
6) Set the cloned virtual machine name and storage location
7) Waiting for being cloned
8) Click Close to complete cloning
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
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