Reset root/admin password for TCA Manager and TCA-Control Plane
search cancel

Reset root/admin password for TCA Manager and TCA-Control Plane

book

Article ID: 314261

calendar_today

Updated On:

Products

VMware VMware Telco Cloud Automation

Issue/Introduction

Provide a method to reset the admin or root password on the TCA Manager or TCA-CP.

Symptoms:
Unable to access TCA Manager or TCA Control Plane with "admin" or "root" account.
Error "Invalid credentials"


Environment

VMware Telco Cloud Automation 1.9
VMware Telco Cloud Automation 1.8
VMware Telco Cloud Automation 1.x

Cause

Resetting a lost or forgotten root/admin password for TCA Manager or TCA-CP appliance.

Resolution

The following steps can be followed to reset root/admin password in the TCA Manager or TCA-CP.

IMPORTANT: The procedure is subject to change based on the Linux flavor and version used to boot the system in single-user mode. In this example, Ubuntu 20.04 Desktop, so make sure to get up to date information from public sources for the Linux type and version of choice.

Note: In this example the focus is on the TCA Manager but the procedure also applies to the TCA-CP.
  1. Take a snapshot of the TCA Manager or TCA-CP appliance as a safe measure in case you need to revert.
  2. Download the Ubuntu .iso file from http://releases.ubuntu.com/ - Ubuntu 20.4 Desktop in the test.
  3. Launch the vSphere or ESXi graphical user interface (GUI).
  4. Upload the Ubuntu .iso file into the accessible datastore for the TCA Manager VM.
  5. Shut down the TCA Manager appliance.
  6. Booting into the BIOS requires changing the boot order as the VM boots very fast. To do this go to Edit Settings of the TCA Manager VM, from the VM Option section go to Boot Options and check the box to enable the During the next boot, force entry into the BIOS setup screen option under Force BIOS setup.
Graphical user interface, text, application, email  Description automatically generated
  1. From the Virtual Hardware section of the TCA Manager VM add a CD ROM Drive device if it does not exist.
  2. In the CD ROM Drive configuration, check the Connect at power on checkbox.
  1. In CD/DVD Media, press Browse and select ubuntu-xxxx.iso from the accessible datastore.
  2. Click Save to exit the Edit settings page.
  3. Power on the TCA Manager appliance.
  4. The TCA Manager should boot into the BIOS. Access the Boot Menu and select CD-ROM Drive as the boot device.
Graphical user interface, application  Description automatically generated                                       
  1. On the next step, select Try Ubuntu without installing but do not press "enter" and press "F6" to get below option.
  1. Press "ESC" to drop into the CLI. Enter systemd.unit=rescue.target to end of the boot options.
Text  Description automatically generated                                                               
  1. Press "Enter" and "Crtl+C" to cancel file system check.
Text  Description automatically generated                                                     
  1. Press "Enter" to continue to maintenance mode and enter below to reset root password. Do not enter "Ctrl+d" option as it will boot into normal mode. 

mount /dev/sda2 /mnt
mount --bind /dev /mnt/dev
chroot /mnt
passwd
exit
umount /mnt/dev
umount /mnt
sync
exit
  1. The above steps may need to be performed also for partition /dev/sda3.
  2. To reset admin password use: passwd admin.  
  3. After having reset the password, revert the changes to the TCA Manager VM by removing the Force BIOS Setup option, disconnecting the Live CD and confirm the boot device is the virtual hard drive.
  4. Reboot the appliance and login with the new password.


Additional Information

Impact/Risks:
Unable to login to TCA Manager or TCA-CP using "admin" and/or "root" account to perform administrative tasks. There is NO impact to TCA services while access remains forbidden.
The recovery procedure requires a reboot of the TCA Manager or TCA-CP.