Note: It is important to take a snapshot of the vCenter prior to making any changes. Please take a snapshot prior to proceeding with the following steps. It is advisable to also backup the configurations using the following commands:
cp /etc/vmware-vpx/embedded_db.cfg /etc/vmware-vpx/embedded_db_BACKUP.cfgcp /etc/vmware-vpx/vcdb.properties /etc/vmware-vpx/vcdb_BACKUP.properties
To change the default password:
embedded_db.cfg file by running this command:vi /etc/vmware-vpx/embedded_db.cfgEMB_DB_'PASSWORD' or PGUSER_'PASSWORD' change the password section between the single quotation marks. Note: Depending on the version of vCenter the entry will be either EMB_DB_PASSWORD or PGUSER_PASSWORD/etc/vmware-vpx/vcdb.properties file for editing with the following command:vi /etc/vmware-vpx/vcdb.propertiesvc and postgres database users:/opt/vmware/vpostgres/current/bin/psql -d VCDB -U postgresalter user postgres with password 'new-password';alter user vc with password 'new-password';\q.pgpass file by running this command:vi /root/.pgpass.pgpass file with the new password:localhost:5432:VCDB:postgres:new-password
localhost:5432:postgres:postgres:new-password
localhost:5432:VCDB:vc:new-passwordvpxd.cfg file by running this command:/usr/sbin/vpxd -p/etc/init.d/vmware-vpxd restart