Root Password Reset for VCF Operations
search cancel

Root Password Reset for VCF Operations

book

Article ID: 325005

calendar_today

Updated On:

Products

VCF Operations/Automation (formerly VMware Aria Suite) VCF Operations

Issue/Introduction

It may be necessary to run the steps from this KB on VCF (Aria) Operations appliances if the following issues occur:

  • Login attempts with an incorrect password result in a "Login Incorrect" message on the console or an "Access Denied" message via SSH.
  • Login attempts with the correct password when the root account is locked result in a "Login Incorrect" message on the console or an "Access Denied" message via SSH.
  • The root account locks after 3 login attempts using an incorrect password.
  • The root account automatically unlocks 10 minutes after the last failed login attempt, but the failed login attempt counter does not reset until the next successful login as root.
  • If the root password is forgotten, it can be reset.
  • Able to log into the VCF Ops primary node via SSH as root, but not into the replica node.

Environment

  • VMware Aria Operations 8.x (formerly vRealize Operations)
  • VMware Cloud Foundation (VCF) 9.x

Resolution

  • The following video shows the process to reset the root password for Aria Operations 8.0 to 8.12.
  • In versions 8.14 and newer, the configuration file to edit is /etc/security/faillock.conf and the line to comment out is even_deny_root (see Step 11 below).

Process to reset the root password:

  1. Log into the Aria Operations Admin UI as the local admin user.

  2. Click Take Offline under Cluster Status.

    Note
    : Wait for the Cluster Status to change to Offline. (While only the target node needs to be taken offline, it is recommended to take the entire cluster offline to avoid cluster issues.)

  3. In the vSphere Client, open the console of the desired node.
  4. With the console open, restart or power on the virtual machine.
  5. Click inside the virtual machine console, and when the Photon splash screen appears, immediately press the e key to enter edit mode.

    Note: If the boot menu is inaccessible before the Photon splash screen disappears, enable Force BIOS setup in the Virtual Machine's Settings > VM Options > Boot Options and reboot to gain additional time.

  6. Place the cursor at the end of the line that ends with elevator=noop audit=1.

  7. Add a space to the end of the line and type rw init=/bin/bash

  8. Press Ctrl-X or F10 to boot to single-user mode.
  9. Remount the root file system by running the following command:

    mount -o remount,rw /
  10. Reset the root password by running the following command:

    passwd

  11. (OPTIONAL) If the root user is locked, modify the configuration to always allow the root user to log in.

    1. Open the configuration file in the vi editor.

      vi /etc/security/faillock.conf

      Note: In versions 8.0 through 8.12, the file to edit is /etc/pam.d/system-auth

    2. Comment out the even_deny_root directive by placing a # character at the beginning of the line.

      Example: #even_deny_root

      Note: In version 8.0 - 8.12 the line to comment out with the # character is:

      #pam_tally2.so onerr=fail deny=3 unlock_time=900 root_unlock_time=900 file=/var/log/tallylog
    3. Save and close the file.

      :wq!
  12. Flush all new data to disk.

    sync
  13. Reboot the virtual machine.

    reboot -f

    Note: If the reboot command fails, restart the Virtual Machine through vCenter.

  14. (CONDITIONAL) If the configuration is modified in Step 11, revert the change.

    1. Open the configuration file in the vi editor.

      vi /etc/security/faillock.conf

      Note: In versions 8.0 through 8.12, the file to edit is /etc/pam.d/system-auth

    2. Restore the even_deny_root directive by uncommenting it (removing the # character from the beginning of the line).

      Example: even_deny_root

      Note: In versions 8.0 to 8.12, uncomment the following line:

      pam_tally2.so onerr=fail deny=3 unlock_time=900 root_unlock_time=900 file=/var/log/tallylog


    3. Save and close the file.

      :wq!
  15. Perform steps 3 through 14 on each additional target node.

  16. Access the Aria Operations Admin UI using the local admin credentials.

  17. Click Bring Cluster Online under Cluster Status.

NOTE: If the Aria Operations nodes are managed by Aria Suite Lifecycle or are part of VMware Cloud Foundation, see the Additional Information section for the steps required to update the root password in the locker.

Additional Information

Default root Password

  • The default root password after the appliance is deployed is blank.
  • The root password must be set the first time by logging in via the vSphere console.
  • SSH logins as root fail until the password is set to a non-blank value.

root Password Requirements

  • Minimum of 8 characters
  • Minimum of 1 uppercase letter
  • Minimum of 1 lowercase letter
  • Minimum of 1 number
  • Minimum of 1 Special character from this list:  !@#$%^&*+=

Additional Steps Required for Clusters Managed by Aria Suite Lifecycle or part of VMware Cloud Foundation:

  1. Log in to Aria Suite Lifecycle as a user with administrative privileges.

  2. Click the Locker tile.

  3. Click Passwords.

  4. Click Add.

  5. Type the desired password alias in the Password Alias field.

  6. Type the Aria Operations node root password (from step 10 of the Resolution section) in the Password and the Confirm Password fields.

  7. Click Add.

  8. (CONDITIONAL) If the root password was changed on multiple Aria Operations nodes and unique passwords were used for each node, repeat steps 4-7 to add a new password to the Aria Suite Lifecycle locker for each unique Aria Operations root password used.

  9. Click the VMware Aria Suite Lifecycle logo in the top left corner of the screen.

  10. Click the Lifecycle Operations tile.

  11. Click Environments.

  12. Click VIEW DETAILS for the environment that contains Aria Operations.

  13. Click the Operations tab.

  14. Click the horizontal three dots button.

  15. Select Trigger Inventory Sync and click SUBMIT.

    Note: The request will fail with the error LCMVROPSYSTEM25050 or LCMCOMMON80063.

  16. Click RETRY.

  17. Click the circled x button next to the password linked under Root Password.

  18. Click the Select Root Password link.

  19. Select the Password Alias from the Locker that was created in step 4-7 and click SUBMIT.

  20. (CONDITIONAL) If the root password was changed on multiple Aria Operations nodes, the Inventory Sync request will fail again for each node that the root password was changed on.

    1. Click the FAILED button next to the Aria Operations Product Inventory Sync request.
    2. Click the LCM####### error number to expand the error details.
    3. Note the FQDN or IP address of the Aria Operations node that was tested during this iteration.
    4. Repeat steps 15 through 19 for all nodes where the root password is changed.

  21. Verify the Inventory Sync completes successfully.

Considerations for admin password

  • The Aria Operations console root password can be different from the admin account password set during the configuration of the Aria Operations Primary node.
  • For information on resetting the admin password, see How to Reset the Admin Password.

SSH Connection Refused After Changing root Password

  • Rebooting the node to change the root password disables SSH for security.
  • To re-enable SSH access, follow the steps in Enabling SSH access