How to reset admin password for vCenter

For vCenter Single Sign-On 5.1
To reset the admin@system-domain password on the vCenter Server Appliance:
  1. Log in as root to the vCenter server Appliance;
  2. From the command line, navigate to /usr/lib/vmware-sso/utils directory;
  3. Run the following command:
    ./rsautil reset-admin-password
  4. Enter the master password when prompted (By default, this is the root password)
  5. Enter the SSO administrator name for which you want to reset the password. For example, admin;
  6. Enter the new password for the user and then confirm it a second time;You should see the message Password reset successfully.
For vCenter Single Sign-On 5.5
To reset the [email protected] password on the vCenter Server Appliance:
Connect to the vCenter Server Appliance through SSH;
  1. Run the following command:
    /usr/lib/vmware-vmdir/bin/vdcadmintool
    This console loads:
    ================================
    Please select:
    0. exit
    1. Test LDAP connectivity
    2. Force start replication cycle
    3. Reset account password
    4. Set log level and mask
    5. Set vmdir state
    ================================
  2. Press 3 to enter the Reset account password option;
  3. When prompted for the Account DN, enter
    cn=administrator,cn=users,dc=vSphere,dc=local
  4. Use the generated password to log in to the [email protected] account.
For VMware Platform Services Controller 6.0
To reset the [email protected] password on the Platform Services Controller or vCenter Server with Embedded Platform Services Controller Appliance:
  1. Log in to the vCenter Server Appliance via SSH;
  2. Run this command to enable access the Bash shell;
    shell.set –enabled true
  3. Type shell and press Enter;
  4. Run the following command:
    /usr/lib/vmware-vmdir/bin/vdcadmintool
    This console loads:
    ================================
    Please select:
    0. exit
    1. Test LDAP connectivity
    2. Force start replication cycle
    3. Reset account password
    4. Set log level and mask
    5. Set vmdir state
    ================================
  1. Press 3 to enter the Reset account password option;
  2. When prompted for the Account UPN, enter:
    administrator@vSphere_Domain_Name.local
    By default, this is:
    [email protected]
    A new password is generated.
  1. Use the generated password to log in to the [email protected] account.

VMware ESXi 5.5.x: Snapshot consolidation fails with the error: maximum consolidate retries was exceeded for scsix:x

When attempting to consolidate using the vSphere Client, you see the error:

maximum consolidate retries was exceeded for scsix:

To resolve this issue, turn off the snapshots consolidation enhancement in ESXi 5.5, so that it works in earlier versions of ESX/ESXi. This can be done by setting the snapshot.asyncConsolidate.forceSync to TRUE:

Note: If the parameter is set to true, the virtual machine is stunned for long time to perform the snapshot consolidation, though it may not respond to ping during the consolidation.

To set the parameter to TRUE:
  1. Right-click the virtual machine and click Edit settings.
  2. Click the Advanced tab.
  3. Right-click General and click Add Row.
  4. In the left pane, add this parameter:snapshot.asyncConsolidate.forceSync
  5. In the right pane, add this value:TRUE

To work around this issue, when under heavy IO load, you can
alternatively retry snapshot consolidation at a time when the virtual
machine is issuing less IO.

Additional Information

You can increase the time limit on the snapshots consolidation by changing the Configuration parameter.
To change the Configuration parameter to increase the time limit on the snapshots consolidation:
  1. Shut down the virtual machine.
  2. Right-click the virtual machine and click Edit Settings.
  3. Click Options tab.
  4. Under Advanced, click General.
  5. Click Configuration Parameters and add snapshot.maxConsolidateTime = 30

Creating quiesced snapshot fails with the error: An error occurred while saving the snapshot: msg.snapshot.error-QUIESCING-ERROR

Creating quiesced snapshot fails with the error: An error occurred while saving the snapshot: msg.snapshot.error-QUIESCING-ERROR

  • You are unable to create a quiesced snapshot of a virtual machine.
  • The snapshot operation fails at approximately 30%.
  • In the vSphere Client, you see an error similar to:

An error occurred while saving the snapshot: msg.snapshot.error-QUIESCING-ERROR

Cause
This issue can occur when the Virtual Disk service does not start within the Windows guest operating system on the affected virtual machine.

Resolution
To resolve this issue, start the Windows Virtual Disk service.

  1. Log in to the Windows operating system as an Administrator.
  2. Click Start, type services.msc and press Enter.
  3. Right-click the Virtual Disk service and click Start.

vCenter console fails to open: Can’t establish connection to the server at 7331

Opening the console of a VM using the vSphere Webclient with
the VMware vCenter Server Appliance 5.5, You may receive the following
error:

“can’t establish a connection to the server at host: 7331″.

The solution is described in KB2060604 “HTML5 virtual machine console fails to open after restarting vCenter Server Appliance 5.5″. The problem is that an environmental variable is not set correctly. Please follow the steps below to resolve the issue:

  • Setup an SSH connection to the vCSA
  • Edit file: /usr/lib/vmware-vsphere-client/server/wrapper/conf/wrapper.conf
  • Add line: set.default.VMWARE_JAVA_HOME=/usr/java/jre-vmware
  • Save the file
  • restart vSphere Web Client:  /etc/init.d/vsphere-client restart

Now you will be able to login to the vSphere Web Client and open the console connection.

eth0 Renamed As eth1 after cloning the VMware Image

After cloning a VMware image the Linux Server renamed eth0 as eth1, eth1 as eth2 and so
on. This is due to duplicate mac address. To fix this problem
login to your Linux server using console and type the following
commands:

# cd /etc/udev/rules.d
# cp 70-persistent-net.rules /backup_folder/
# rm -f 70-persistent-net.rules

 You also will need to remove mac address from “/etc/sysconfig/networking-scripts/ifcfg-eth*”.

Save and close the file. Restart the server.

# reboot

You can verify new settings with the following commands:

# ifconfig -a
# route -n

I have tested it on CentOS, RedHat and ClearOS.

Configure the vSphere Web Client to Bypass vCenter Single Sign On (SSO)

You can configure the vSphere Web Client
to bypass the vCenter Single Sign On server. This allows the vSphere
Web Client to connect directly to vCenter Server 5.x systems that are
registered with the vSphere Web Client.

1
On the computer where the vSphere Web Client is installed, locate the webclient.properties file.

The location of this file depends on the operating system on which the vSphere Web Client is installed.

Operating System
File path
Windows 2003
%ALLUSERPROFILE%Application DataVMwarevSphere Web Client
Windows 2008
%ALLUSERPROFILE%VMwarevSphere Web Client
vCenter Server Appliance
/var/lib/vmware/vsphere-client
2
Edit the file to include the line sso.enabled = false.

3
Restart the vSphere Web Client service.

On Windows operating systems, restart the VMware vSphere Web Client service.

On the vCenter Server Appliance, restart the vSphere-client service by typing
service vsphere-client restart.

After you have restarted the vSphere Web Client, you can select the vCenter Server 5.x system to log in to from the login page.

Install VMware Tools from the Command Line

For ClearOS, RedHat and CentOS

#yum -y update
#yum -y install gcc make kernel-headers kernel-devel –if you are using PAE kernel then use “kernel-PAE-devel instead of kernel-devel”
#untar -zxf VMwareTools-8.6.0-425873.tar.gz  –locate the actual path
#cd vmware-tools-distrib
#./vmware-install.pl
#/etc/init.d/vmware-tools status   –successful install will show the message “vmtoolsd is running”
#done