Monday, January 30, 2012

How to reset the root password of VMware ESXi 4.1 Embedded edition

I would like to take this chance to say Thank you to Bernhard Bock (bernhard's blog - http://www.bock.nu/blog) to posting this solution to us.

I just modify little bit to fit for "VMware Embedded edition"

The tools is GRML (grml.org) - Debian-based Live CD made for system administrators and users who prefer text tools. 

The following steps which is I did for reset password:

The solution at the following: (Only apply for DELL VMware Embedded edition, for the standard/Installer edition, we need to change the local.tgz which is containing by states.tgz)

First of all, we need to boot your ESXi server with a "GRML"
mount /mnt/Hypervisor1
cd /tmp
tar xzf /mnt/Hypervisor1/local.tgz
vi etc/shadow (Remove remove the hash altogether (everything between the first and the second colon))
mv /mnt/Hypervisor1/local.tgz /mnt/Hypervisor1/local.tgz.bak
tar czf local.tgz etc
mv local.tgz /mnt/Hypervisor1/

Since there are two "volume" of Hypervisor, we need to repeat those step at Hypervisor2

mount /mnt/Hypervisor2
cd /tmp
tar xzf /mnt/Hypervisor2/local.tgz
vi etc/shadow (Remove remove the hash altogether (everything between the first and the second colon))
mv /mnt/Hypervisor2/local.tgz /mnt/Hypervisor2/local.tgz.bak
tar czf local.tgz etc
mv local.tgz /mnt/Hypervisor2/

Reference:
How to reset the root password of VMware ESXi 4.1 and 5.0
http://www.bock.nu/blog/reset-root-password-vmware-esxi-4.1

Print Friendly and PDF
Share/Bookmark

No comments:

Post a Comment