Skip to content

Commit 8eb1139

Browse files
author
Manon Mercier
authored
Update Reset Root Password to match the latest Citrix Doc (#143)
* Update Reset Root Password procedure to match latest Citrix Signed-off-by: Manon Mercier <[email protected]>
1 parent 03d4da5 commit 8eb1139

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

docs/troubleshooting.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -423,15 +423,16 @@ primitive p_iscsi_lun_1 iSCSILogicalUnit \
423423

424424
## Reset root password
425425

426-
Hi, this is a small trick I had to use once [(original article)](https://linuxconfig.org/how-to-reset-an-administrative-root-password-on-xenserver-7-linux)
427-
428-
* Reboot your XenServer into Grub boot menu.
429-
* Use arrows keys to locate an appropriate XenServer boot menu entry and press **e** key to edit boot options.
430-
* Locate read-only parameter **ro** and replace it with **rw**. Furthermore, locate keyword **splash** and replace it with **init=/bin/bash**.
431-
* **Hit F10** to boot into single-mode
432-
* Once in single-mode use **passwd** command to reset your XenServer's root password
433-
* Reboot xenserver by entering the command **exec /usr/sbin/init**
434-
* If everything went well you should now be able to login with your new XenServer password.
426+
If you need to modify your XCP-ng root password, you may follow the steps below. The full prodecure can also be found on [this page](https://support.citrix.com/article/CTX214360).
427+
428+
* Reboot your XCP-ng into Grub boot menu.
429+
* Select XCP-ng boot menu entry and press <kbd>e</kbd> key to edit boot options.
430+
* Locate the read-only parameter ```ro``` and replace it with ```rw init=/sysroot/bin/sh```.
431+
* Press <kbd>Ctrl</kbd> + <kbd>X</kbd> to boot into single-mode.
432+
* From the Emergency Mode prompt, execute the command **chroot /sysroot**.
433+
* Once in single-mode, use ```passwd``` command to reset your XCP-ng root password.
434+
* Reboot XCP-ng by sending <kbd>Ctrl</kbd> + <kbd>Alt</kbd> + <kbd>Suppr</kbd>.
435+
* If everything went well, you should now be able to login with your new XCP-ng password.
435436

436437
## XenStore related issues
437438

0 commit comments

Comments
 (0)