VMware ESX/ESXi忘记root密码的重设
发表于 : 2012年 8月 18日 13:25 星期六
总的来说,ESXi除了重新安装别无他法,ESX的话可以通过single模式来重设。
引用VMware官方的方法如下,前提是对主机能够访问(物理访问,远程console等)
http://kb.vmware.com/kb/1317898
ESXi 3.5, ESXi 4.x, and ESXi 5.0
Reinstalling the ESXi host is the only supported way to reset a password on ESXi. Any other method may lead to a host failure or an unsupported configuration due to the complex nature of the ESXi architecture. ESXi does not have a service console and as such traditional Linux methods of resetting a password, such as single-user mode do not apply.
ESX 3.x and 4.x
Note: This section does not apply to ESXi. See the ESXi section of this article.
To change the password for the root user on an ESX 3.x or ESX 4.x host, you must reboot into single-user mode. To do this, follow these steps:
Reboot the ESX host.
When the GRUB screen appears, press the space bar to stop the server from automatically booting into VMware ESX.
Use the arrow keys to select Service Console only (troubleshooting mode).
Press the a key to modify the kernel arguments (boot options).
On the line presented, type a space followed by the word single.
Press Enter. The server continues to boot into single-user mode.
When presented with a bash prompt such as sh-2.05b#, type the command passwd and press Enter.
Follow the prompts to set a new root user password.
When the password is changed successfully, reboot the host using the command reboot and allow VMware ESX to boot normally.
ESX Server 2.x
Note: This section does not apply to ESXi. See the ESXi section of this article.
To change the password for the root user on an ESX 2.x host, you must reboot into single-user mode. To do this, follow these steps:
Reboot the ESX Host.
When the LILO screen appears, press the space bar to stop the server from automatically booting into VMware ESX.
At the LILO prompt select linux, adding the -s to the end of the line. For example: linux -s.
Press Enter. The system begins to boot. The server continues to boot into single-user mode.
When presented with a bash prompt such as sh-2.05b#, type the command passwd and press Enter.
Follow the prompts to set a new root user password.
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, you can log in as the root user using the new password.
引用VMware官方的方法如下,前提是对主机能够访问(物理访问,远程console等)
http://kb.vmware.com/kb/1317898
ESXi 3.5, ESXi 4.x, and ESXi 5.0
Reinstalling the ESXi host is the only supported way to reset a password on ESXi. Any other method may lead to a host failure or an unsupported configuration due to the complex nature of the ESXi architecture. ESXi does not have a service console and as such traditional Linux methods of resetting a password, such as single-user mode do not apply.
ESX 3.x and 4.x
Note: This section does not apply to ESXi. See the ESXi section of this article.
To change the password for the root user on an ESX 3.x or ESX 4.x host, you must reboot into single-user mode. To do this, follow these steps:
Reboot the ESX host.
When the GRUB screen appears, press the space bar to stop the server from automatically booting into VMware ESX.
Use the arrow keys to select Service Console only (troubleshooting mode).
Press the a key to modify the kernel arguments (boot options).
On the line presented, type a space followed by the word single.
Press Enter. The server continues to boot into single-user mode.
When presented with a bash prompt such as sh-2.05b#, type the command passwd and press Enter.
Follow the prompts to set a new root user password.
When the password is changed successfully, reboot the host using the command reboot and allow VMware ESX to boot normally.
ESX Server 2.x
Note: This section does not apply to ESXi. See the ESXi section of this article.
To change the password for the root user on an ESX 2.x host, you must reboot into single-user mode. To do this, follow these steps:
Reboot the ESX Host.
When the LILO screen appears, press the space bar to stop the server from automatically booting into VMware ESX.
At the LILO prompt select linux, adding the -s to the end of the line. For example: linux -s.
Press Enter. The system begins to boot. The server continues to boot into single-user mode.
When presented with a bash prompt such as sh-2.05b#, type the command passwd and press Enter.
Follow the prompts to set a new root user password.
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, you can log in as the root user using the new password.