vCenter and SQL service dependencies

During several projects I noticed that for some reason the vCenter service would not start correctly. After a quick browse in “services.msc” and the eventlog I noticed that the vCenter service started before the SQL service. As you can imagine vCenter needs SQL to be up and running before it can actually start. I fixed it by creating a dependency. For some weird reason I never blogged this, but today I noticed this KB article that describes how to set up this dependency:

Adding a dependency to the VirtualCenter service so that it waits for SQL Express remedies this.

To create a service dependency:

  1. Click Start > Run.
  2. Type services.msc and press Enter.
  3. Locate the SQL Express instance for VirtualCenter. For example, SQL Server (SQLEXP_VIM).
  4. Open the SQL Express instance and note the Service Name. For example, MSSQL$SQLEXP_VIM .
  5. In the Run dialog, type Regedit.exe and press Enter. Browse to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\vpxd .
  6. Double-click the DependOnService key and add the Service name using the name identified in step 4.
  7. Close Regedit .
  8. Go back to the Services Panel and open the SQL Server properties.
  9. On the Dependencies tab, verify the VMware VirtualCenter service is listed as depending on the SQL service instance.

As you can see the solution is fairly easy. Keep in mind that you need to be running the SQL Server locally on the vCenter server for this to work, especially for larger environments I wouldn’t advise running both on the same box. For SMB environments this should work just fine.




You can skip to the end and leave a response. Pinging is currently not allowed.

6 Responses to “vCenter and SQL service dependencies”

  1. Steffen says:

    Hi Duncan, what if the database is not running locally (and maybe not even SQL…)? Are there any possibilities to configure something like a “dependency”?

  2. GaryFlan says:

    Hey Duncan,

    Excuse my ignorance but surely in the 8th step it should state to check on the Virtual Center service as opposed to the SQL instance? Pedantic I know …

  3. Duncan says:

    Well you can check at either services, there are two options, “sytem components depending on” and “service depends on”.

  4. Erik Bussink says:

    Thanks for the information.
    I have also modified my Update Manager service (vmware-ufad-vci) to be dependent of MSSQLSERVER, and I have modified the VMwareOrchestrator to be dependent of the vpxd service.

    :-)

  5. SteveR55 says:

    I am having the same problem and the above suggestions have not corrected it.
    Does anyone have any OTHER suggestions?
    I am considering removing / reinstalling the VirtualCenter software.

  6. Kikker46 says:

    SteveR55, exactly the same with me. Did the reinstall resolve the issue ?

    Kind regards,

    Kikker46

Leave a Reply

Subscribe to RSS Feed Follow me on Twitter!