Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 549
  • Last Modified:

ESX host

Hi,

I am trying to reset the root password on an ESX host as it has been lost.  Does anyone know the best way to do this?

Thanks
0
Jack_son_
Asked:
Jack_son_
  • 5
  • 4
  • 3
5 Solutions
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
If this is ESX (not ESXi), as follows:-

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:

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. Press Enter. The server continues to boot into single-user mode.
6. When presented with a bash prompt such as sh-2.05b#, type the command passwd and press Enter.
7. Follow the prompts to set a new root user password. For more information, see Changing an ESX host root password (1004659).
 8. When the password is changed successfully, reboot the host using the command reboot and allow VMware ESX to boot normally.

Source
http://kb.vmware.com/kb/1317898
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
@bluedan already posted that!
0
Automating Your MSP Business

The road to profitability.
Delivering superior services is key to ensuring customer satisfaction and the consequent long-term relationships that enable MSPs to lock in predictable, recurring revenue. What's the best way to deliver superior service? One word: automation.

 
Jack_son_Author Commented:
Okay, thanks.  Also, I currently have no login to the host, is there a default user I can use?
0
 
bluedanCommented:
@Hanccocka - We're posting at the same time when question shows 0 comment. You beat me by 39 seconds =).
0
 
bluedanCommented:
Default username is root.
0
 
Jack_son_Author Commented:
okay, so I can reset the password just by using the user id?  I think that is where I was not sure.
0
 
bluedanCommented:
Once you log on to single, you should see something like

sh-2.05b#

then do

1) sh-2.05b# passwd
2) enter new password for root
3) sh-2.05b# reboot
0
 
Jack_son_Author Commented:
thanks, will this work for version 5.x?
0
 
bluedanCommented:
As stated by Hanccocka and the KB, this will work for ESX 3.x and 4.x.

For ESXi 5.x - Reinstalling the ESXi host is the only supported way to reset a password on ESXi.
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
NO NO NO!

5.0 is ESXi! NOT ESX!
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
follow this

http://vm-help.com/esx/esx3i/Reset_root_password.php

BUT, it's easier and quicker to re-install ESXi 5.0, and installer will not overwrite the VMs of VMFS.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 5
  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now