Prepare a CentOS6 installation disk (any version), or prepare another pnux installation disk. CentOS6 is used as an example here. This article has been put into practice, after successful testing in a Windows virtual machine, and successfully recovered the password on a Dell R720 server. This tutorial is for Esxi5.5 and Esxi6.5 versions. Both versions have been tried successfully, and the remaining versions are for trial. First, burn a CentOS6 boot CD or USB drive, and change the server's boot item to the USB drive. After the server is turned on, it will start from the USB disk. After starting, select according to the icon: Please select according to the picture. The pictures in this article are all from the virtual machine. The display on the server may be slightly different, but the final selection is definitely the same. At this point, you have entered the CentOS rescue mode and are about to start retrieving the VMware esxi password. Please execute the following command mkdir /mnt/sda5 mount /dev/sda5 /mnt/sda5 cp /mnt/sda5/state.tgz /tmp cd /tmp tar xf state.tgz (after decompressing the file in this step, a local.tgz file will be generated) tar xf local.tgz (After this step, there will be an etc directory under tmp) vi etc/shadow (Remember, you can only use vi in rescue mode, and do not press a or i to enter edit mode, just use x to delete the text) Please delete the content as marked in the two red boxes. Please pay attention to the colon (mainly delete the content between the first colon and the second colon. The final result should be as shown below. rm /tmp/state.tgz /tmp/local.tgz tar czf local.tgz etc/ tar czf state.tgz local.tgz
Unplug the USB drive and restart the server. After VMware esxi is fully started, press F2, and when prompted to enter the password, press Enter. Then reset the password, but be sure to meet the password complexity requirements. The above is the detailed content of the operation method for successfully recovering the forgotten root password of VMware Esxi. For more information about VMware Esxi forgotten root password, please pay attention to other related articles on 123WORDPRESS.COM! You may also be interested in:
|
<<: Multiple ways to change the SELECT options in an HTML drop-down box
>>: Introduction to the use of MySQL official performance testing tool mysqlslap
Table of contents 1. What content usually needs t...
The installation tutorial of mysql 8.0.20 winx64....
Table of contents Problem Description 1. Basic so...
The css technique for changing the color of an im...
Table of contents Vue2.x Usage Global Registratio...
This article describes how to set the automatic c...
Table of contents 1. Installation of JDK1.8 under...
Today, I found out while working on PHP that if w...
MySQL DDL statements What is DDL, DML. DDL is dat...
Table of contents 1. Scenario 2. Solution 3. Conc...
A master once said that you should know the datab...
Modify the group to which a user belongs in Linux...
Analyze the execution process. Move the mouse int...
As a backend programmer, sometimes I have to tink...
Table of contents Create a new user Authorize new...