To change the root password in VMware, you can follow these steps:
Log in to the VMware ESXi host or v Center Server using the v Sphere Client or v Sphere Web Client.
Navigate to the “Hosts and Clusters” view and select the ESXi host for which you want to change the root password.
In the “Summary” tab of the selected host, click on the “Configuration” tab.
Under the “Software” section, click on “Security Profile.”
In the “Security Profile” window, locate the “Services” section and click on “Edit.”
Scroll down and find the “SSH” service. Click on “Options.”
In the “SSH Options” window, click on “Start” to enable the SSH service if it is not already started.
Now, you can open an SSH client (such as PuTTY) and connect to the ESXi host using the SSH protocol.
Enter the current root password when prompted to log in.
Once logged in, type the following command to change the root password:
You will be prompted to enter the new password. Type the new password and press Enter. Note that the password characters will not be displayed on the screen.
Retype the new password when prompted and press Enter.
If the password change is successful, you will see a message indicating the password has been updated.
Close the SSH client and go back to the v Sphere Client or v Sphere Web Client.
In the “Security Profile” window, click on “Options” for the SSH service.
Click on “Stop” to disable the SSH service for security purposes (optional but recommended).
That’s it! You have successfully changed the root password for your VMware ESXi host.
very good