ADVERTISE HERE

How to Reset the Root Password in VMware ESX 4

Title: How to Reset the Root Password in VMware ESX 4
Author(s): Xtravirt (Paul Buckle)
Target Audience: Technical - Intermediate
Current Revision: 1.0 June 2009
First Published: 9 June 2009
Products: VMware ESX 4
UID: XD10017
Information
Title: 
How to Reset the Root Password in VMware ESX 4
Author(s): 
Xtravirt (Paul Buckle)
Target Audience: 
Technical - Intermediate
First Published: 
9 June 2009
Products: 
VMware ESX 4
UID: 
XD10017

This Xtravirt hot tip provides information on how to reset the Root password in VMware ESX 4

1.0 Introduction

This Xtravirt hot tip provides information on how to reset the Root password in VMware ESX 4.

Without the root password it is impossible to carry out certain tasks. Even logged on with a non-root account, without knowing it you won’t be able to elevate privileges and adequately manage the server.

2.0 Pre-Requisites

  • If the ESX server is part of a cluster, vMotion your VM’s off the host then power down the ESX host. If the ESX server is standalone, power off running VM’s and then shut down the ESX host.
  • Access to the physical ESX server console – a remote network session cannot be used.

3.0 Resolution – Resetting the Root password

A lost root password cannot be recovered, but as outlined in the procedure below, it can be reset.

  1. Power on the ESX server. At the Grub boot loader, select the “VMware ESX 4.0” entry and press a to modify the kernel arguments.
  2. Grub boot loader

  3. The default kernel options for the “VMware ESX 4.0” entry will be displayed.
  4. Default kernel options

  5. Add a space and the word single to the end of the list of arguments and press Enter. (Note that the first few arguments will scroll off the left hand side of the console.)
  6. Adding space and the word single

  7. ESX will boot to single user mode. This may take a minute or so and when complete, a sh-32.# prompt will appear.
  8. ESX boots to single user mode

  9. At the prompt, type the command passwd and press Enter. Follow the prompts and enter the required new root password twice. A successful password change will result in the display of a “passwd: all authentication tokens updated successfully” message.
  10. Prompt - type passwd and press Enter

  11. Enter the command reboot and press Enter. ESX will boot normally.
  12. When ESX has finished booting, switch to the ESX console by pressing Alt-F1 and confirm the new password has taken affect by logging on as root.

4.0 General Info

If the ESX server is managed by vCenter, you will need to provide the new Root password credentials again in vCenter to reconnect it.

For the procedure on how to reset the root account password for earlier versions of ESX, refer to VMware KB article http://kb.vmware.com/kb/1317898.

References
References: 
References
  1. VMware KB, http://kb.vmware.com/kb/1317898
Tags
credentials
ESX
kb
Knowledge Base
password
recover
reset
Root
vCenter
VMware
VMware Infrastructure
vSphere
Hypervisor
Security

Spotlight:

VMware Documentation Downloader v10.08.13

Updated for vSphere 4.1 - A free tool for those on the move who need information FAST

Mobile Cloud Computing World Forum

Join the 1 day conference and exhibition on Enterprise Mobile Cloud Computing and Enterprise Apps or watch the event streamed LIVE online free of charge

E-book: Deploy ESX4 – The Ultimate Guide

PXE booting, WDS, %pre/%post scripting, videos and a whole lot more

Technology Exchange: