How to Reset Root Password for XenServer Host

Procedure – No Media Required

To reset the password, viagra sale complete the following procedure:

  1. Restart XenServer.
  2. Press E, medicine at the GRUB prompt.
    User-added image
  3. Switch to the line, denture module /boot/vmlinuz-2.6-xen root=LABEL=root-slwniknb ro console=tty0, as shown in the following screen shot:
    User-added image
  4. Modify the line as the following:
    module /boot/vmlinuz-2.6-xen root=LABEL=root-pfbsesrv ro console=tty0 single
  5. Press Enter.
  6. Press B.
  7. After XenServer starts in a single user mode, type passwd root and set the new root password.

    User-added image

  8. Run the reboot command to restart the XenServer.

Procedure – Media Required

To reset the password, complete the following procedure:

  1. Restart the XenServer Host and boot from the XenServer installation CD.
  2. Press ALT+F2 to log on to virtual console 2.
  3. Run the following command to create a mount point:
    # mkdir /mnt/root –p
  4. Run the following command to check for a root file system partition:
    # fdisk –l
    Note
    : This will most likely be the boot partition labeled with “*”. Skip this step if you know the location of the root file system resides.
  5. Run the following command to mount the root file system of the XenServer host:
    # mount /dev/sda1 /mnt
  6. Run the following command:
    # chroot /mnt/root
  7. Run the following command to change the password:
    # passwd
  8. Run the following command to exit the chroot environment.
    #exit
  9. Run the following command to restart the XenServer Host, remove the CD, boot from the hard drive, and log on with the new password:
    # reboot

Resetting Password in XenServer Versions 5.0 and Later

To reset the password in XenServer versions 5.0 and later, including version 6.0, complete the following procedure:

  1. Migrate any running Virtual Machines (VMs) to other servers or shut them down if you use a standalone server.
  2. Restart the XenServer.
  3. When the server completes the BIOS procedures, type menu.c32 at the boot: prompt and press Enter.
  4. Highlight the default boot option (for example, xe or xeserial) and press Tab.
    User-added image
  5. Add the single parameter to the command listed.
    Note: The position of the single parameter is important. This parameter must be placed between the first and second set of hyphens (—), as shown in the following screen shot:

    User-added image

  6. Press Enter.
  7. The XenServer boots to a root shell prompt.
  8. Run the passwd command to change the root password.
  9. Restart the XenServer.

Revisions

No comments yet.

Leave a Reply