Raptor Computing Systems Community Forums (BETA)
Raptor Computing Systems Hardware => Talos II => Topic started by: atomicdog on March 13, 2022, 03:13:09 am
-
I'm trying to log in to the BMC on my new Talos II with the password that came in the box, but it doesn't work.
Are there instructions somewhere on setting/resetting the password? I've connected to the serial console port but don't see any obvious way in u-boot to do that.
-
0 (zero) and O look identically on that slip.
Have you tried all the variations?
-
Yeah, I've tried different variation for the characters that look ambiguous, but still no luck logging in.
-
Please ensure you are logging in with the "root" user, either via SSH or the Web interface. Also note that the "1" and "I" characters can look similar on the password paperwork.
-
It was a lowercase L.
For some reason I thought it was an uppercase L or maybe a '1' or 'I'. The 'one' is very similar.
I'm still curious on how logging into the serial console is suppose to allow you to reset the password though. I don't see any OpenBMC documentation about it. I found this: https://docs.graphcore.ai/projects/bmc-user-guide/en/latest/serial-rescue.html ...but is it specific to graphcore processors or generic to OpenBMC?
-
Here it's written
https://wiki.raptorcs.com/wiki/Talos_II_Beginner%27s_Quick_Start_Guide#Changing_The_Password
-
That's for changing a password when you're already able to login, but I meant for recovering access and resetting a lost password.
-
As far as I know, a lost or forgotten BMC password basically requires reflashing the BMC chip. But if you're already logged into the BMC, changing it should be as simple as running
passwd
and very carefully entering the new passphrase, three times. I have discovered (through my own painful experience :P) that the separate password for the boot menu (Petitboot) can more easily be reset.
-
I'm still curious on how logging into the serial console is suppose to allow you to reset the password though. I don't see any OpenBMC documentation about it. I found this: https://docs.graphcore.ai/projects/bmc-user-guide/en/latest/serial-rescue.html ...but is it specific to graphcore processors or generic to OpenBMC?
I tried the instructions at graphcore.ai with no luck. But the instructions on the wiki for Resetting the BMC's Persistant Storage (https://wiki.raptorcs.com/wiki/Debricking_the_BMC#Reset_persistent_storage) worked for me on two systems. After wiping the persistent storage, I was able to log into the BMC with the default password and get all the firmwares updated.
-
I tried the instructions at graphcore.ai with no luck. But the instructions on the wiki for Resetting the BMC's Persistant Storage (https://wiki.raptorcs.com/wiki/Debricking_the_BMC#Reset_persistent_storage) worked for me on two systems. After wiping the persistent storage, I was able to log into the BMC with the default password and get all the firmwares updated.
Wiping the entire persistent storage seems like total overkill if the only problem is that you forgot the BMC root password.
All you need to do is edit the shadow file on the overlay filesystem with a new password.
Follow that wiki page instructions to add overlay-filesystem-in-ram to the boot command line via u-boot. This enables a root console login with the default root password of 0penBmc. Once logged in, mount the writable overlay partition somewhere, for example:
# mount -t jffs2 /dev/mtdblock5 /mnt
Then the simplest way is probably to just copy /mnt/cow/etc/shadow over /etc/shadow, run passwd, then copy the newly-updated /etc/shadow back to the writable partition, for example:
# cp /mnt/cow/etc/shadow /etc/shadow
# passwd
New password:
Retype new password:
Retype new password:
passwd: Password updated successfully
# cp /etc/shadow /mnt/cow/etc/shadow
Or just run an editor on /mnt/cow/etc/shadow and manually change the root password hash to whatever you want. Then reboot, and voila, shiny new BMC root password.