Monday, July 13, 2009

VirtualCenter Server will not start after server reboot

From http://networkadminkb.com/kb/Knowledge%20Base/VMWare/VirtualCenter%20Server%20will%20not%20start%20after%20server%20reboot.aspx
we read:

You may receive the following error from VirtualCenter after a the server is restarted

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

Checking the VirtualCenter log shows the following.

[2008-11-17 08:48:12.703 'App' 1800 error] ODBC error: (28000) - [Microsoft][SQL Native Client][SQL Server]Login failed for user 'NT AUTHORITY\SYSTEM'.
[2008-11-17 08:48:12.703 'App' 1800 error] Failed to intialize VMware VirtualCenter. Shutting down...
[2008-11-17 08:48:12.703 'App' 1800 info] Forcing shutdown of VMware VirtualCenter now

Cause:

The SQL Server is not available. In this case the SQL Server is installed on the same server as VirtualCenter and has not started by the time the VirtualCenter Server service attempts to start.

Solution:
Add the local SQL Server as a dependency to the VirtualCenter Server service. Perform the following on the VirtualCenter Server.
1) Start Regedit
2) Browse to the following key

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\vpxd

3) Double Click the DependOnService value name
4) Add the SQL Service key name to the list of services.
By default this is MSSQL$SQLEXP_VIM
5) Click Ok
6) Restart the computer

No comments:

Post a Comment