How to successfully retrieve VMware Esxi root password after forgetting it

How to successfully retrieve VMware Esxi root password after forgetting it

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:

VMware Esxi Forgot root password

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.

VMware Esxi Forgot root passwordVMware Esxi Forgot root passwordVMware Esxi Forgot root passwordVMware Esxi Forgot root passwordVMware Esxi Forgot root passwordVMware Esxi Forgot root password

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

VMware Esxi Forgot root password

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)

VMware Esxi Forgot root password

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)

VMware Esxi Forgot root password

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.

VMware Esxi Forgot root password

rm /tmp/state.tgz /tmp/local.tgz

VMware Esxi Forgot root password

tar czf local.tgz etc/

tar czf state.tgz local.tgz

VMware Esxi Forgot root password

cp state.tgz /mnt/sda5/

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:
  • Detailed steps for installing and using vmware esxi6.5
  • VMware ESXi installation and use record (with download)
  • Simple setup of VMware ESXi6.7 (with pictures and text)
  • VMware ESXi 6.0 and deployment of virtual machine installation tutorial (picture and text)
  • VMware vSphere 6.7 (ESXI 6.7) graphic installation steps
  • vmware esxi 5.0 forgotten password reset method
  • VMware ESXI server virtualization cluster

<<:  Multiple ways to change the SELECT options in an HTML drop-down box

>>:  Introduction to the use of MySQL official performance testing tool mysqlslap

Recommend

How to configure Nginx virtual host in CentOS 7.3

Experimental environment A minimally installed Ce...

Detailed explanation of Django+Vue+Docker to build an interface testing platform

1. Two words at the beginning Hello everyone, my ...

How to use map to allow multiple domain names to cross domains in Nginx

Common Nginx configuration allows cross-domain se...

How to make Python scripts run directly under Ubuntu

Let’s take the translation program as an example....

Vue+openlayer5 method to get the coordinates of the current mouse slide

Preface: How to get the coordinates of the curren...

How to recover files accidentally deleted by rm in Linux environment

Table of contents Preface Is there any hope after...

Some "pitfalls" of MySQL database upgrade

For commercial databases, database upgrade is a h...

MySQL 8.0.24 version installation and configuration method graphic tutorial

This article records the installation and configu...

How to set up URL link in Nginx server

For websites with an architecture like LNMP, they...

Example of Vue implementing fixed bottom component

Table of contents 【Effect】 【Implementation method...

Introduction to /etc/my.cnf parameters in MySQL 5.7

Below are some common parameters of /etc/my.cnf o...

Detailed explanation of Docker daemon security configuration items

Table of contents 1. Test environment 1.1 Install...

Detailed example of clearing tablespace fragmentation in MySQL

Detailed example of clearing tablespace fragmenta...

2 reasons why html-css tag style setting does not work

1 CSS style without semicolon ";" 2 Tags...