Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
vmware:esxi5:rootpw [2024/09/11 05:20] jsvmware:esxi5:rootpw [2024/09/17 08:42] (current) js
Line 12: Line 12:
   - copy state.tgz to temp dir: <code bash>cp /mnt/esxi/state.tgz /tmp</code>   - copy state.tgz to temp dir: <code bash>cp /mnt/esxi/state.tgz /tmp</code>
   - change to tmp dir: <code bash>cd /tmp</code>   - change to tmp dir: <code bash>cd /tmp</code>
-  - unpack state.tgz: <code bash>tar xzf state.tgz>+  - unpack state.tgz: <code bash>tar xzf state.tgz</code>
   - now you can see the content of the file in /tmp \\ {{:vmware:esxi5:gparted-esxi-unpack.png?direct|}}    - now you can see the content of the file in /tmp \\ {{:vmware:esxi5:gparted-esxi-unpack.png?direct|}} 
   - unpack the local.tgz file: <code bash>tar xzf local.tgz</code> \\ {{:vmware:esxi5:gparted-esxi-unpack-local.png?direct|}}   - unpack the local.tgz file: <code bash>tar xzf local.tgz</code> \\ {{:vmware:esxi5:gparted-esxi-unpack-local.png?direct|}}
Line 18: Line 18:
   - open shardow file with vi: <code bash>vi shadow</code> \\ {{:vmware:esxi5:gparted-esxi-shadow.png?direct|}}   - open shardow file with vi: <code bash>vi shadow</code> \\ {{:vmware:esxi5:gparted-esxi-shadow.png?direct|}}
   - delete the password hash after the root account (press i, go to the : and delete all the chars until the next : ) \\ {{:vmware:esxi5:gparted-esxi-shadow-del.png?direct&400|}} \\ \\    - delete the password hash after the root account (press i, go to the : and delete all the chars until the next : ) \\ {{:vmware:esxi5:gparted-esxi-shadow-del.png?direct&400|}} \\ \\ 
-  - save file and exit (save with ESC + qw + ENTER) \\ \\ +  - save file and exit (save with ESC + :wq + ENTER) \\ \\ 
   - go one dir up: <code bash>cd ..</code>   - go one dir up: <code bash>cd ..</code>
   - pack the new local.tgz: <code bash>tar czf local.tgz etc</code>   - pack the new local.tgz: <code bash>tar czf local.tgz etc</code>
Line 25: Line 25:
   - copy the new state.tgz: <code bash>cp /tmp/state.tgz /mnt/esxi</code>   - copy the new state.tgz: <code bash>cp /tmp/state.tgz /mnt/esxi</code>
   - unmount esxi partition: <code bash>umount /mnt/esxi</code> {{:vmware:esxi5:gparted-esxi-umount.png?direct|}}   - unmount esxi partition: <code bash>umount /mnt/esxi</code> {{:vmware:esxi5:gparted-esxi-umount.png?direct|}}
 +  - take of CD, USB stick or unmount remote ISO and reboot server: <code bash>reboot</code>
 +
 +The ESXi should now reboot and after the boot is finished you can check the login with F2 (Settings) and login with root with empty (or without) password.