Loading

×Sorry to interrupt
Uncaught ReferenceError: addCTracking is not defined
throws at https://kb.vmware.com/resource/KM_TealiumTrackingJS?v=0.5:100:1

Refresh

Cookie Preference Center

General Information on cookies

When you visit our website, we use cookies to ensure that we give you the best experience. This information does not usually directly identify you, but it can give you a more personalized web experience. Because we respect your right to privacy, you can choose not to allow some types of cookies by clicking on the different category headings to find out more and change your settings. However, blocking some types of cookies may impact your experience on the site and the services we are able to offer. Further information can be found in our

Cookie Policy.

Strictly Necessary

Strictly Necessary

Always Active

Strictly Necessary

Strictly necessary cookies are always enabled since they are essential for our website to function. They enable core functionality such as security, network management, and website accessibility. You can set your browser to block or alert you about these cookies, but this may affect how the website functions. For more information please visit www.aboutcookies.org or www.allaboutcookies.org.

Cookie Details‎

Performance

Performance

Performance

Performance cookies are used to analyze the user experience to improve our website by collecting and reporting information on how you use it. They allow us to know which pages are the most and least popular, see how visitors move around the site, optimize our website and make it easier to navigate.

Cookie Details‎

Please confirm your settings by refreshing the page.

Functional

Functional

Functional

Functional cookies help us keep track of your past browsing choices so we can improve usability and customize your experience. These cookies enable the website to remember your preferred settings, language preferences, location and other customizable elements such as font or text size. If you do not allow these cookies, then some or all of these services may not function properly.

Cookie Details‎

Advertising

Advertising

Advertising

Advertising cookies are used to send you relevant advertising and promotional information. They may be set through our site by third parties to build a profile of your interests and show you relevant advertisements on other sites. These cookies do not directly store personal information, but their function is based on uniquely identifying your browser and internet device.

Cookie Details‎

Advertising Cookies

Consent Leg.Interest

Select All Vendors

Select All Vendors

Select All Hosts

Select All

Clear Filters

Information storage and access

Apply

Confirm My Choices Reject All Allow All

My Subscriptions

Loading

Knowledge Base

HCX - Reset root/admin password for HCX Connector or Cloud Manager till 4.3.x (79362)

Last Updated: 8/8/2022Categories: How toTotal Views: 14291Language:
English

5 like this article

Subscribe to get an email
newsletter with new updates

5 people found this helpful Please provide article feedback:

Symptoms

Unable to access HCX Connector or Cloud Manager with "admin" or "root" account.
Error "Invalid credentials"

Purpose

Provide a method to reset the admin or root password on the HCX Connector or Cloud Manager.

Cause

Resetting a lost or forgotten root/admin password for HCX Connector or Cloud Manager appliance.

Known issue when using some special characters ( i.e. '&' or '*' ) during initial deployment of HCX Connector or Cloud Manager with service update R139.

Impact / Risks

Unable to login to HCX Connector or Cloud Manager using "admin" and/or "root" account to perform administrative tasks. There is NO impact to HCX services while access remains forbidden.
The recovery procedure, which requires a reboot of the HCX Connector or Cloud manager, it should NOT impact:

Network Extension services

DR Protections

Migration workflows in the transfer phase or "waiting for switchover"

Active migration and configurations workflows may be impacted so those must be allowed to complete before proceeding to recover the password.

Resolution

The issue with using special characters has been resolved in service update R140.

Workaround

The following steps can be followed to reset root/admin password in the HCX Connector or Cloud Manager.
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.

Download the Ubuntu .iso file from http://releases.ubuntu.com/ - Ubuntu 20.4 Desktop in the test.

Launch the vSphere or ESXi graphical user interface (GUI).

Upload the Ubuntu .iso file into the accessible datastore for the HCX Manager VM.

Shut down the HCX Manager appliance.

Edit the settings of the HCX Manager VM and add a CD ROM Drive device if it does not exist.

In the CD ROM Drive configuration, check the Connect at power on checkbox.

In CD/DVD Media, press Browse and select ubuntu-xxxx.iso from the accessible datastore.

Click Save to exit the Edit settings page.

Power on the HCX Manager appliance.

Pres Esc to access Boot Menu and select CD-ROM Drive as the boot device.

On next, select Try Ubuntu without installing but do not press "enter" and press "F6" to get below option

Press "ESC" to drop into the CLI. Enter systemd.unit=rescue.target to end of the boot options.

Press "Enter" and "Crtl+C" to cancel file system check.

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

15. The above steps may need to be performed also for partition /dev/sda3
16. To reset admin password use: passwd admin.
17. Reboot the appliance and login with the new password.

Related Information

The password recovery procedure may vary depending on the Linux flavor.
In this example, Ubuntu 20.04 Desktop was used.
Refer to KB 89212 for PhotonOS base HCX Connector/Cloud Manager password recovery.

Detectable by VMware SkylineTM

Actions

Copy

link to clipboard
copied!

Print

Language:
English

Attachments

Additional Resources

KB
•
End Of General Availability of the Free vSphere Hypervisor (ESXi 7.x and 8.x) (2107518)

KB
•
SEG を使用した Android/iOS 用 Outlook - 管理されていないデバイスの処理 (79855)

KB
•
Download and Install VMware Fusion (2014097)

Results 1-3 of 3

Ask The Community

Get answers quickly from VMware experts in the community

Post Subject

CONTINUE IN COMMUNITIES

Related Products:

VMware HCX

Related Versions:

Take Our Survey

Support Assistant