Error occurred during vCenter operation when editing a VMware Horizon View pool

When editing a VMware Horizon desktop pool in some situations the server error ‘Error occurred during vCenter operation’. appears.

1

The error hasn’t any useful information that says what is wrong. When this error occurs the vCenter Server is unable to find one or more objects listed in the desktop pool. When changing datacenter, cluster or host settings in vCenter the desktop pool must be updated to.  To resolve this error open the desktop pool, select the vCenter settings tab an check or update the Parent VM, Snapshot, Host or cluster, Resource pool and datastores. Also check if the ESXi host with local storage are not in maintenance mode! After updating these settings the error must be gone.

2

 

 

The VMware VirtualCenter Server service terminated unexpectedly

After rebooting the VMware VirtualCenter (VC) server, i was unable to logon using the VI-client in VC. In the Windows event log the following  Error is listed:

Event Type: Error
Event Source: Service Control Manager
Event Category: None
Event ID: 7031
Date:  25-9-2008
Time:  13:39:58
User:  N/A
Computer: VC1
Description:
The VMware VirtualCenter Server service terminated unexpectedly.  It has done this 1 time(s).  The following corrective action will be taken in 300000 milliseconds: Restart the service.

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

It seems that the VC server service is started before the SQL 2005 service is started. The solution is the delay the VirtualCenter service from starting till the Microsoft SQL 2005 service is started. Microsoft has a KB article “How to delay loading of specific services”.

I did the following:

Open the regedit.exe and browse to the HKLM\SYSTEM\CurrentControlSet\Services\MSSQLSERVER (for MS SQL 2005 standard). So you know the name of the service.

image

Browse to HKLM\SYSTEM\CurrentControlSet\Services\vpxd and open the DependOnService property

image

Add the name MSSQLSERVER to this multi-string. Ensure that the last line is empty.

image

Close the Registry Editor and restart the VirtualCenter server and test if it VMware VirtualCenter service starts.

[ad#verticaal]