The VMware VirtualCenter Server service terminated with service-specific error 2 (0x2)

When trying to connect to vCenter through the vSphere Client, the connection attempt failed with error

vShere Client Error

 After investigations, it was discovered that the vCenter service stopped for no reasonable reason. Revising the VC server’s System Event Log, the next error was logged:

The VMware VirtualCenter Server service terminated with service-specific error 2 (0x2).

Event Log

Cause: You are trying to start the VC service before SQL Service starts.  The VC Service should automatically try to restart on its own after 5 minutes after starting the SQL Service.

Resolution: To avoid this and to ensure when trying to start the VC service that the SQL service will start automatically, follow these steps to configure services’ dependencies:

  1. Obtain the service name for your SQL Service – in Registry Editor, browse to HKLM\System\CurrentControlSet\Services and look for entries starting with MSSQL.  In all likelyhood, yours will be called either MSSQL or MSSQL$SQLEXPRESS (ignore MSSQLServerADHelper).
  2. Now browse to HKLM\System\CurrentControlSet\Services\vpxd
  3. Open the REG_MULTI_SZ value called DependOnService
  4. Add a line called MSSQL$SQLEXPRESS (or whatever value you determined above)
  5. Ensure that the last line in the value is blank
Advertisements

, , ,

  1. #1 by Fiona on November 11, 2011 - 11:08 AM

    After I have done this, it is the same, cannot connect to vCenter server

  2. #2 by cash advance online on June 12, 2013 - 11:33 PM

    I do not know if it’s just me or if perhaps everybody else experiencing problems with your blog. It appears like some of the text within your content are running off the screen. Can somebody else please provide feedback and let me know if this is happening to them as well? This could be a problem with my browser because I’ve had this happen previously.
    Thanks

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: