To change the password for the root user, you must reboot the ESX host into service console only in single-user mode. To do this, follow the steps below appropriate for your version of ESX. This process does not apply to ESXi as it does not use GRUB.
ESX 3.xx and 4.xx
1. Reboot the ESX host.
2. When the GRUB screen appears, press the space bar to stop the server from automatically booting into VMware ESX.
3. Use the arrow keys to select Service Console only (troubleshooting mode).
4. Press the a key to modify the kernel arguments (boot options).
5. On the line presented, type a space followed by the word single.
6. Press Enter. The server continues to boot into single-user mode.
7. When presented with a bash prompt such as sh-2#, type the command passwd and press Enter.
8. Follow the prompts to set a new root user password.
9. When the password is changed successfully, reboot the host using the command reboot and allow VMware ESX to boot normally.
ESX Server 2.xx
1. Reboot the ESX Host.
2. When the LILO screen appears, press the space bar to stop the server from automatically booting into VMware ESX.
3. At the LILO prompt select linux, adding the -s to the end of the line. For example: linux -s.
4. Press Enter. The system begins to boot. The server continues to boot into single-user mode.
5. When presented with a bash prompt such as sh-2#, type the command passwd and press Enter.
6. Follow the prompts to set a new root user password.
7. When the password is changed successfully, reboot the host using the command reboot and allow VMware ESX to boot normally.
When the system is finished booting up, you can log in as the root user using the new password.
No comments:
Post a Comment