Reset root password on vSphere replication Manager VMs
From Notes_Wiki
Home > VMWare platform > vSphere replication or Site Recovery Manager > Reset root password on vSphere replication Manager VMs
To reset root password on vSphere replication Manager after being locked use:
- Restart the VM and press up and down arrow keys to go to grub console
- Use "VMRC" instead of Web console to do this
- Optionally add boot delay using https://docs.vmware.com/en/VMware-vSphere/6.7/com.vmware.vsphere.vm_admin.doc/GUID-EAAE9426-D08E-4DF1-820B-7C022C2A85FA.html so that there is gap between click power-on and the time when the machine starts to boot
- In the grub "linux" line append:
- rw init=/bin/bash
- Press F10 to boot
- At root prompt remount / as rw using:
- mount -o remount, rw /
- Reset password using:
- passwd
- Remove existing failed login count and lock information for user root using:
- /sbin/pam_tally2 -r -u root
- Umount / and reboot using:
- umount /
- reboot -f
Refer:
Home > VMWare platform > vSphere replication or Site Recovery Manager > Reset root password on vSphere replication Manager VMs