I need to reset my XCP-ng host root password. Not sure how but I set it something completely non-standard and have now forgotten it. I have tried every password I can think of. I scoured my password manager database - embarrassing lack of information there.
Lesson learnt: (note to self) put the hypervisor root password in the password manager stupid.
How to fix this?
Find the XCP-ng Center configuration where the password must be…
I spent time looking for where XCP-ng Center stores the configured hosts data, as it knows the password and it can reboot the host just fine. A long search on the desktop where XCP-ng center is installed and nothing found by searching the registry. Nothing found relating to the configured host looking all over the filesystem. Issue not helped by my naming the host xcp-ng.
Look for a password reset procedure. Citrix to post such a document
Resetting Lost Root Password in XenServer 7.0
This does not exactly match my xcp-ng 8.0.0 install, but the grub boot entry is very similar and I tried changing “ro” for “rw init=/sysroot/bin/sh” and booting. I did not get “Emergency mode” so I can set the root password.
So - has anyone had to reset their XCP-ng root password? How did you do it?
Thanks for any help in advance. Fortunately, I can wait and not do anything rash as everything is still working ok, except I presumably cannot upgrade or change system settings.