If you forget the password of the root user, you can no longer establish SSH connections or use the console of the vRealize Log Insight virtual appliance.

Problem

If you cannot establish SSH connections or use the console of the vRealize Log Insight virtual appliance, you cannot accomplish some of the administration tasks, nor can you reset the password of the admin user.

Solution

You may not be able to log in as root for a variety of reasons including:

  • You have not changed the default password. By default, vRealize Log Insight sets a blank password for the root user and disables SSH access. Once the password is set, SSH access for the root user is enabled.

  • You set an SSH key during the deployment of the vRealize Log Insight virtual appliance. If an SSH key is specified through OVF, then password authentication is disabled. Either log in with the set SSH key or see the solution steps below.

  • You entered the password incorrectly multiple times and you are now temporarily locked out. In this case, entering the correct password will not get you in until the lock out period has elapsed. You can either wait or restart the virtual appliance.

Procedure

  1. In the vSphere Client, perform a guest shutdown of the vRealize Log Insight virtual appliance.
  2. After the virtual machine is powered down, select Edit Settings.
  3. Select the Options tab.
  4. Under vApp Options > Advanced, select Properties.
  5. Find and edit the vm.rootpw key.

    If you do not see a vm.rootpw key then add a new one.

    If you are using SSH keys instead of password authentication, then edit or add the vm.sshkey key.

  6. Enter a password.

    You can add an SSH key here instead if you are not using password authentication.

  7. Power on the virtual appliance.

What to do next

After vRealize Log Insight boots, validate that you can log in as the root user.