How To Reset VMware ESX - ESXi Root Password Using Linux ISO Gparted
How To Reset VMware ESX - ESXi Root Password Using Linux ISO Gparted
Menu
VMWARE
https://xpertstec.com/how-to-reset-vmware-esx-esxi-root-password-using-linux-iso-gparted/ 1/13
9/14/21, 3:45 AM How to Reset VMware ESX/ESXi Root Password Using Linux ISO Gparted
Please Note: VMware does not officially support this method. VMware says that
the only supported method to reset an “ESXi host password” is by reinstalling the
host. I have tested on ESXi 6.7.
https://xpertstec.com/how-to-reset-vmware-esx-esxi-root-password-using-linux-iso-gparted/ 2/13
9/14/21, 3:45 AM How to Reset VMware ESX/ESXi Root Password Using Linux ISO Gparted
1- Put the Gparted Live Media (CD/DVD) to your ESXi host; make sure the ESXi
server is able to boot from CD/DVD or USB. Power on the ESXi server and then
select Gparted Live (default settings) and press enter.
https://xpertstec.com/how-to-reset-vmware-esx-esxi-root-password-using-linux-iso-gparted/ 3/13
9/14/21, 3:45 AM How to Reset VMware ESX/ESXi Root Password Using Linux ISO Gparted
Ad
comdivision:lab
VMware Labs operated by authorized and certified
VMware instructors.
comdivision.com
VISIT SITE
https://xpertstec.com/how-to-reset-vmware-esx-esxi-root-password-using-linux-iso-gparted/ 4/13
9/14/21, 3:45 AM How to Reset VMware ESX/ESXi Root Password Using Linux ISO Gparted
x
4- Press enter.
https://xpertstec.com/how-to-reset-vmware-esx-esxi-root-password-using-linux-iso-gparted/ 5/13
9/14/21, 3:45 AM How to Reset VMware ESX/ESXi Root Password Using Linux ISO Gparted
Here you can see 2 partitions sized 249.98MB. The “/dev/sda5 and /dev/sda6” are
what we are after assuming you installed ESXi host on the first available hard
drive/SSD.
https://xpertstec.com/how-to-reset-vmware-esx-esxi-root-password-using-linux-iso-gparted/ 6/13
9/14/21, 3:45 AM How to Reset VMware ESX/ESXi Root Password Using Linux ISO Gparted
6- Right click on desktop, Select Terminals and then select lxterminal with root
privileges.
7- 1- sudo su
4- cd /boot
5- cp state.tgz /temp
https://xpertstec.com/how-to-reset-vmware-esx-esxi-root-password-using-linux-iso-gparted/ 7/13
9/14/21, 3:45 AM How to Reset VMware ESX/ESXi Root Password Using Linux ISO Gparted
6- cd /temp
x
7- tar –xf state.tgz
9- rm *.tgz
10- cd etc
11- vi shadow
8- Move to the line starting with the root and Use the Delete key to delete the hash
string between the first 2 colons.
https://xpertstec.com/how-to-reset-vmware-esx-esxi-root-password-using-linux-iso-gparted/ 8/13
9/14/21, 3:45 AM How to Reset VMware ESX/ESXi Root Password Using Linux ISO Gparted
9- After deleting the root password, type :wq and press enter.
https://xpertstec.com/how-to-reset-vmware-esx-esxi-root-password-using-linux-iso-gparted/ 9/13
9/14/21, 3:45 AM How to Reset VMware ESX/ESXi Root Password Using Linux ISO Gparted
1- cd ..
4- mv state.tgz /boot
5- umount /boot
6- reboot
11- Remove the Gparted live media and boot your ESXI host.
https://xpertstec.com/how-to-reset-vmware-esx-esxi-root-password-using-linux-iso-gparted/ 10/13
9/14/21, 3:45 AM How to Reset VMware ESX/ESXi Root Password Using Linux ISO Gparted
12- After booting ESXi host log on as root from the DCUI console without typing in
a password.
https://xpertstec.com/how-to-reset-vmware-esx-esxi-root-password-using-linux-iso-gparted/ 11/13
9/14/21, 3:45 AM How to Reset VMware ESX/ESXi Root Password Using Linux ISO Gparted
This method is not officially supported by VMware; the VMware doesn’t want you
to modify ESXi installation files. it works on various versions of ESXI hosts.
https://xpertstec.com/how-to-reset-vmware-esx-esxi-root-password-using-linux-iso-gparted/ 12/13
9/14/21, 3:45 AM How to Reset VMware ESX/ESXi Root Password Using Linux ISO Gparted
https://xpertstec.com/how-to-reset-vmware-esx-esxi-root-password-using-linux-iso-gparted/ 13/13