On a conference call recently, it was mentioned that VCOPS had been installed at some point in the past as a pilot project, however no-one had any details of the credentials used when setting it up. So I looked into how you reset the root and Administrator passwords to regain access.
There are a couple of stages to this, firstly the root passwords, then the Adminstrator one can be reset.
- Root passwords
Find the VCOPS vApp in vCenter “Hosts and Clusters” view
Expand the [+] to see both VMs
Right-click on the Analytics VM and open the VM Console
Press Enter to make sure the console is displayed
From the VM Console menu, select VM > Power > Restart Guest (or Ctrl-R)
Monitor the reboot process.
At the Grub menu, interrupt the boot process by pressing one of the arrow keys, or space.
With the highlighted line on “SUSE Linux Enterprise Server…” as above, press “e” to edit the entry
Move down to the “kernel…” line with the arrow keys and press “e” to edit again
Append “init=/bin/bash” as shown
Press Enter and “b” to boot
The VM will boot to a bash prompt
Type “mount / -o remount,rw” to mount the root disk as writable
Type “passwd root” and submit a new password for the root user
Type “sync” and hit Enter to flush the data to disk
Type “reboot” and the VM will boot back up as normal.
Repeat for the UI VM
- Administrator password
This is as per KB article 2078313
In the vSphere Client Inventory view, select the vRealize Operations vApp and navigate to the appliance console.
Log in to UI virtual machine as the root user.
In the localhost directory, type cd /usr/lib/vmware-vcops/user/conf/install and press Enter.
In the install directory, run the./resetadminpwd.sh new_password command and press Enter. For example:
Note: vRealize Operations Manager (formerly known as vCenter Operations Manager) passwords must contain at least one upper case, one lower case, one digit, and one special character. When setting your new password, ensure that you escape the special characters.
Type logout and press Enter to return to the main menu.
These steps will also reset the same password on Analytic virtual machines automatically