Caution: Please consult an Escalation Engineer before performing these steps, and confirm all services are up and running before proceeding with the steps below.
To resolve this issue we need to change 'vc' user password on vCenter Server:
- Take a snapshot of vCenter Server and also take a backup of vCenter Appliance database using this article.
- Connect to the database using below command,
- /opt/vmware/vpostgres/9.0/bin/psql -d VCDB -U postgres
- Reset passwords for user 'vc' account. New password could be custom password, however password must be the same for "vc" and "postgres" accounts.
- ALTER USER vc PASSWORD 'new_password';
- ALTER USER postgres PASSWORD 'new_password';
- Exit from the database using below command,
- Back up the embedded_db.cfg file below file
- cp /etc/vmware-vpx/embedded_db.cfg /var/tmp/embedded_db.cfg.orig
- Modify password in config file with the new password created from Step 3.
- vi /etc/vmware-vpx/embedded_db.cfg
- EMB_DB_PASSWORD='new_password'
- Modify the passwords in the hidden file /root/.pgpass with the new_password
- localhost:5432:VCDB:postgres:new_password
- localhost:5432:postgres:new_password
- localhost:5432:VCDB:vc:new_password
- Modify the password in the vcdb.properties
- vi /etc/vmware-vpx/vcdb.properties
- Run the below command and when it prompts provide the new password
- Make sure you stop and start the vcenter service (vpxd) using below command
- /etc/init.d/vmware-vpxd stop
- /etc/init.d/vmware-vpxd start