ADVERTISE HERE

How to Reset the Root Password on Citrix XenServer 5

Title: How to Reset the Root Password on Citrix XenServer 5
Author(s): Xtravirt (Paul Buckle)
Target Audience: Technical - Intermediate
Current Revision:
First Published: 30 July 2009
Products: Citrix XenServer 5
UID: XD10114

This hot-tip provides a step-by-step guide on how to reset the root password on Citrix XenServer 5

Punchy Text: 

Forgotten the Root password on your Citrix XenServer? Read our step-by-step guide on how to reset it

1.0 Introduction

This hot tip provides information on how to reset the root password on Citrix XenServer 5.

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 XenServer is part of a resource pool, Live Migrate all the Virtual Machines from it and power it down. If the XenServer is standalone, shutdown all Virtual Machines on it and shut it down.
  • Access to the physical XenServer 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.

  • Power on the XenServer and at the boot prompt, before XenServer loads, enter menu.c32 and press Enter.

enter menu.c32 and press enter

  • With the default boot option highlighted, before the 5 second time out, press Tab. (Note: If Tab is pressed when the non-default boot option is selected, press Escape twice to return to the option list.)

automatic boot

  • In the list of arguments that displays, insert the word single immediately before the final --- /boot option and press Enter. (Note: The placement of this additional parameter is important.)

insert 'single'

  • XenServer will boot to single user mode. This may take a few moments and when complete, a sh 3.1# prompt will appear.

sh-3.1# prompt

  • 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.
  • Enter the command shutdown –r 0 (zero) and press Enter. XenServer will exit single user mode, the server will reboot and the XenServer will boot normally. (Note: The reboot command can be used but the shutdown command is recommended.)
  • When XenServer has finished booting, select Local Command Shell from the Management Console screen and when prompted, confirm the new password has taken affect by logging on as root.

Local Command Shell

  • Return to the Management Console by typing exit and pressing Enter.
  • Start XenCenter and when prompted, enter the new root password in order to reinstate connectivity to the XenServer.

enter root password

4.0 General Info

For the procedure on how to reset the root account password for earlier versions of XenServer, refer to Citrix Knowledge Center article, http://support.citrix.com/article/CTX116019.

References: 

1. Citrix Knowledge Center article, http://support.citrix.com/article/CTX116019

 

Spotlight:

VMware Documentation Downloader v11.08.30

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

vSphere 5 License Entitlement Changes

See what has changed in the license entitlement in vSphere 5?

Thin Client vs Zero Client

The differences between Thin and Zero desktop clients for VDI

Technology Exchange: