Reset root password on vSphere replication Manager VMs

From Notes_Wiki
Revision as of 08:31, 10 May 2021 by Saurabh (talk | contribs) (Created page with "<yambe:breadcrumb self="Reset root password on vSphere replication Manager VMs">VSphere replication or Site Recovery Manager|VSphere replication or Site Recovery Manager</yamb...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<yambe:breadcrumb self="Reset root password on vSphere replication Manager VMs">VSphere replication or Site Recovery Manager|VSphere replication or Site Recovery Manager</yambe:breadcrumb>

Reset root password on vSphere replication Manager VMs

To reset root password on vSphere replication Manager after being locked use:

  1. 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
  2. In the grub "linux" line append:
    rw init=/bin/bash
    Press F10 to boot
  3. At root prompt remount / as rw using:
    mount -o remount, rw /
  4. Reset password using:
    passwd
  5. Remove existing failed login count and lock information for user root using:
    /sbin/pam_tally2 -r -u root
  6. Umount / and reboot using:
    umount /
    reboot -f


Refer:



<yambe:breadcrumb self="Reset root password on vSphere replication Manager VMs">VSphere replication or Site Recovery Manager|VSphere replication or Site Recovery Manager</yambe:breadcrumb>