Warning: Undefined array key "titleWrapper" in /home3/jamil642r/public_html/wp-content/plugins/seo-by-rank-math/includes/modules/schema/blocks/toc/class-block-toc.php on line 103
HomeVirtualizationHow to Reset Forgotten ESXi Root Password Gparted

How to Reset Forgotten ESXi Root Password Gparted

Let’s have a look at this article on how to reset forgotten ESXi root password. How to use GParted Linux Live ISO to reset the forgotten root password on VMware ESXi 6.5. So you can log back into your VMware ESXi host without reinstalling. Forgotten or Lost the root password of the VMware ESXi? Is there any method to recover or reset it? Like many Linux distributions, The ESXi host also stores user account information, containing one-way encrypted credentials, in a file called /etc/shadow. You need to boot your ESXi server with a GParted Linux Live CD/DVD and you can remove the root password easily.

Note: VMware doesn’t officially support this procedure. I have tested on ESXi 6.7.

I will be using a “Gparted Linux ISO live CD/DVD/ USB”, to change the ESXi root password on the VMware ESXi 6.5. Download a Gparted Live Linux ISO.

Burn the Gparted Linux Live ISO to a USB disk or a CD/DVD.
To make a bootable USB disk or CD/DVD drive with Rufus. Download Rufus

Reset Forgotten ESXi Root Password with Gparted Live?

Insert Gparted Live Media into your ESXi server and ensure the ESXi server is able to boot from a USB disk or CD/DVD. Power on your ESXi server and then choose Gparted Live (default settings).

Gparted live default settings

Configuring console data, hit enter.

Configuring console data gparted

Press enter

Gparted boot screen

Press enter again

Gparted live boot screen

Here you can see two partitions, the “/dev/sda5 and /dev/sda6” are what we are after supposing you installed the ESXi host on the first available hard disk/SSD.
GParted live showing the ESXi host partitions found on the primary disk

Gparted showing the partitions

Right-click on the Gparted desktop, choose Terminals, and then lxterminal with root privileges.

Gparted live showing the partitions
1- sudo su
2- mkdir /boot /temp
3- mount /dev/sda5 /boot     or     mount /dev/sda6 /boot
4- cd /boot
5- cp state.tgz /temp
6- cd /temp
7- tar –xf state.tgz
8- tar –xf local.tgz
9- rm *.tgz
10- cd etc
11- vi shadow
Gparted commands

Move the mouse cursor to the line starting with the root and then use the Delete key to delete the hash string between the root: and :13358:0:9999:7:::

esxi root password file

After deleting the root credentials, type:wq and then hit enter.

esxi password file

Continue by running the following commands.

1- cd ..
2- tar –cf local.tgz etc/
3- tar –cf state.tgz local.tgz
4- mv state.tgz /boot
5- umount /boot
6- reboot

Remove the Gparted live media

Reset forgotten ESXi root password

After rebooting your ESXI host. Press F2

VMware ESXi

Log on as root from the DCUI console without a password.

ESXi authentication required

Here you can configure a new password.

ESXi host system customization

Enter a new password and then hit enter.

Reset VMware ESXi root password
Jamil
Jamilhttp://jamiltech.com
A Professional Technology Blog Writer | An energetic professional with more than 20+ years of rich experience in Technology, Planning, Designing, Installation, and Networking.
RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments

fitspresso analysis on How to Reset Microsoft 365 Password
historical landmarks tours for history buffs on How to Add Hyper-V Server Altaro VM Backup
9780443186882 PDF download on How to Migrate Active Directory 2012 to 2022
Shaik Mohammad Jaheer on How to Enable Night Light on Windows 11