sudo -s
mkdir /mnt/esxi
mount /dev/sda5 /mnt/esxi
ls /mnt/esxi/st*
cp /mnt/esxi/state.tgz /tmp
cd /tmp
tar xzf state.tgz
cd ..
tar czf local.tgz etc
tar czf state.tgz local.tgz
cp /mnt/esxi/state.tgz /mnt/esxi/state.tgz-old
cp /tmp/state.tgz /mnt/esxi
reboot
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.