If you need to reset the root password of your ESXi host, follow the steps 🙂
- Check with parted the partitions
- Mount the corresponding partition (the first after the boot partition) and unzip the state.tgz directory . The shadow file can be opened with an editor
- Between the first two colons is the encrypted root password
- Delete all characters between the first two colons and save the change
- Create the local.tgz archive again and then the state.tgz archive and move it to the Mount Path
- You can log in as root on the vSphere Host now without a password
ref:Â https://www.thomas-krenn.com/en/wiki/Reset_VMware_ESXi_root_password