The vCenter Server Appliance has the default user name root@localos and password vmware. You can also create a custom password that the vCenter Server Appliance reads the first time you boot the appliance.
By creating a custom password the first time you start the vCenter Server Appliance, you ensure that the default password cannot be used.
- From a terminal window on your Linux host machine, type the following command to create an MD5 hash of the custom password.
- At the prompt, type the new password and press Enter.
The system returns the MD5 hash of the password.
- Create a CD directory.
- Add the MD5 hash to the vCenter Server Appliance configuration file.
echo 'rootPwdHashMD5=hash_password' > cd/vcva.cfg
hash_password is the MD5 hash of the password returned in Step 2. Use single quotes for the echo command, as shown, because the hash_password contains $ characters that must be escaped otherwise.
- Create an ISO file containing the password.
mkisofs -R -o rootpass.iso cd
- Attach the CD/DVD drive of the vCenter Server Appliance virtual machine to the rootpass.iso file, and make sure that Connected at power on is selected.
When you turn on the vCenter Server Appliance, it reads and applies the custom password you created for the root user.