03-09-2021 12:52 AM
We have a cluster of MSO VMs running at version 2.0.1c and trying to upgrade to version 3.1.1h. After setting up the Python Environment for upgrade, we are unable to login into the MSO VM through SSH or SCP. We have tried the same password as is used for logging into the GUI but didnt work. So we have below questions on this:
Please advise.
Solved! Go to Solution.
03-09-2021 05:32 AM - edited 03-09-2021 05:33 AM
You can reset the root password assuming you have console (VM) access.
1 - In the boot grub menu select option to edit.
2 - Select Option to edit (e).
3 - Go to the line of Linux 16 and change ro with rw init=/sysroot/bin/sh.
4 - Press Control+x to start on single user mode.
5 - Now access the system with this command.
chroot /sysroot
6 - Reset the password.
passwd root
New password:
Retype new password:
7 - Update selinux information
touch /.autorelabel
8 - Exit chroot
exit
9 - Reboot your system
reboot
Regards,
Robert
03-09-2021 01:31 AM
No, the root password is not the same (unless you configured it the same).The default password is cisco
But you will be asked anyway to change it right after first login to MSO VM setup.
Regarding root password reset without knowing the old password, i doubt there is a way, but maybe @Robert Burns knows a way
Stay safe,
Sergiu
03-09-2021 05:32 AM - edited 03-09-2021 05:33 AM
You can reset the root password assuming you have console (VM) access.
1 - In the boot grub menu select option to edit.
2 - Select Option to edit (e).
3 - Go to the line of Linux 16 and change ro with rw init=/sysroot/bin/sh.
4 - Press Control+x to start on single user mode.
5 - Now access the system with this command.
chroot /sysroot
6 - Reset the password.
passwd root
New password:
Retype new password:
7 - Update selinux information
touch /.autorelabel
8 - Exit chroot
exit
9 - Reboot your system
reboot
Regards,
Robert
03-09-2021 02:09 PM
Thanks @Robert Burns @Sergiu.Daniluk I will try it now and confirm if it worked.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide