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 3: Line 3:
   - download the [[linux:gparted|GParted]] live boot iso and create a CD or USB Stick \\ \\    - download the [[linux:gparted|GParted]] live boot iso and create a CD or USB Stick \\ \\ 
   - reboot server and boot from iso \\ \\    - reboot server and boot from iso \\ \\ 
-  - the GParted window show the partitions on the server \\ {{:vmware:esxi5:gparted-esxi-partitions.png?direct&400|}}+  - the GParted window show the partitions on the server \\ {{:vmware:esxi5:gparted-esxi-partitions.png?direct|}} \\ \\ 
   - /dev/sda5 is the first esxi partition \\ \\    - /dev/sda5 is the first esxi partition \\ \\ 
   - open a terminal \\ \\    - open a terminal \\ \\ 
Line 9: Line 9:
   - create a subdir in the mount dir /mnt: <code bash>mkdir /mnt/esxi</code>   - create a subdir in the mount dir /mnt: <code bash>mkdir /mnt/esxi</code>
   - mount sda5 (or maybe a other partition): <code bash>mount /dev/sda5 /mnt/esxi</code>   - mount sda5 (or maybe a other partition): <code bash>mount /dev/sda5 /mnt/esxi</code>
-  - find the state.tgz in mounted dir: <code bash>ls /mnt/esxi/st*</code> {{:vmware:esxi5:gparted-esxi-state.png?nolink&400|}}+  - find the state.tgz in mounted dir: <code bash>ls /mnt/esxi/st*</code> {{:vmware:esxi5:gparted-esxi-state.png?nolink|}}
   - 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&400|}} +  - 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|}}
   - change to etc dir: <code bash>cd etc</code> \\ {{:vmware:esxi5:gparted-esxi-etc.png?direct|}}   - change to etc dir: <code bash>cd etc</code> \\ {{:vmware:esxi5:gparted-esxi-etc.png?direct|}}
   - 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.