In my lab environment I am running Windows Server 2012 Hyper-V systems and managing them with System Center Virtual Machine Manager 2012 SP1 Beta. I had been having issues with loss of connectivity to the Hyper-V hosts and my VMM service. I found that the SCVMMAgent and vmms services were failing occasionally and then communication was lost. To work around this issue (which I’m assuming is a temporary issue which will be resolved in the full release of SP1) I used OpsMgr 2012 to monitor the services and auto-restart the services if they failed. The Windows Service state for these services in my lab is shown below.
The Windows Service Management Pack template was used to monitor each of these services.
Then I created a recovery which would restart the service if it was not online.
An example of the recoveries are shown below to restart the vmms service.
Summary: Using OpsMgr and recoveries is a quick way to auto restart services which fail occasionally. I have exported this management pack and made it available for download on SCC at: VMM Workarounds. This management pack identifies any system with one of these two services installed on it and has the recovery configured to auto-restart the service if it stops.