Skip to main content

XCP-ng Reset Root password

Link to the page that explains how you can change your password:

Troubleshooting | XCP-ng documentation https://xcp-ng.org/docs/troubleshooting.html#iscsi-troubleshooting Reboot your XCP-ng into the Grub boot menu. Select XCP-ng boot menu entry and press the e key to edit boot options. Locate the read-only parameter ro and replace it with rw init=/sysroot/bin/sh. Press Ctrl + X to boot into single-mode. From the Emergency Mode prompt, execute the command chroot /sysroot. Once in single-mode, use the passwd command to reset your XCP-ng root password. Reboot XCP-ng by sending Ctrl + Alt + Suppr. If everything went well, you should now be able to log in with your new XCP-ng password

Watch this to see it happen:

-------------------------Chapters-------------------------
00:00 - Intro 00:30 - Nested XCP-ng Host 01:35 - Documentation Used 02:20 - The Password Reset Procedure 05:29 - Testing the new password 06:15 - End Word

Comments

Popular posts from this blog

How to migrate a dataset from one pool to another in TrueNAS CORE ?

The migration steps. 1. Stopping the services that use the dataset. (recommended). 2. Replicating the dataset to the new pool. 3. Verify that all data is replicated. 4. Put in operation the new dataset. 5. Delete the old dataset when satisfied (or not).   The video tutorial can be found by clicking on the title or the picture below. How to migrate a dataset from one pool to another in TrueNAS CORE 1. Stopping the services that use the dataset (recommended). Go to the services tab and what I do if not certain of which services are used by the dataset I let only running the services from which I am cetain that they do not use the dataset. Also, control jails and Virtual Machines to be sure that they do not use the dataset. In the video I do not stop the services to show it is possible. 2. Replicate the dataset to the new pool. a. go to Tasks --> Replication Tasks b. add new replication task c. select source location (example select on this system source /mnt/volume1/VM iso) d. sel...

Using docker on FreeNas (TrueNAS Core)

In this tutorial we will go over the installation of docker in FreeNas (if using jails is not enough). The first step will be to install a host for docker in a virtual machine. In the documentation for FreeNas they propose to use Ubuntu. My actual version of FreeNAS is FreeNAS-11.3-U4.1.(now TrueNAS CORE 12). The video tutorial can be found here https://hometinylab.blogspot.com/2021/01/follow-up-on-using-docker-on-truenas.html  . The major job will be to install a virtual machine on the FreeNAS platform. Select Virtual Machines in the FreeNAS menu. In the list you will see the existing docker instance running. Know click on the ADD button and we will create a second one for this tutorial. Step 1 Because we are using Ubuntu 20.04 has guest operating system we will select linux . Know we need to name the machine, for this tutorial it will be dockerblog . It is always handy to use the description field docker on Ubuntu for blog tutorial . All what follows we will keep has is....

Upgrading XCP-ng 8.1 to 8.2 with yum!

For .x upgrades yum can be used. But iso upgrades are recommended. What is the point having a homelab? So I will try the yum based upgrade. The official documentation can be found at https://xcp-ng.org/docs/upgrade.html#from-command-line . Login has root in your XCP-ng host (use ssh session) Set the VER variable to the version to upgrade to with the command:                          #  export VER=8.2 Download the following files by executing the following commands:                         #  wget https://updates.xcp-ng.org/8/xcp-ng-$VER.repo -O  xcp-ng-$VER.repo                         #  wget https://updates.xcp-ng.org/8/SHA256SUMS -O SHA256SUMS                         #  wget http...