Tag Archives: Virtual machine

Troubleshooting Hyper-V Integration Component Issues

Three old virtual servers were showing as VM Additions Not Detected in System Center Virtual Machine Manger 2012 SP1 (VMM).

Hyper-V_Int1

Choosing to Install Virtual Guest services didn’t resolve the problem as they were already listed in Add Remove Programs and installed.  Mouse integration was working without having to use CTRL-ALT-LEFT, but I was unable to use the Shut Down command from VMM.

Device Manager showed no errors, but the Event Log was showing errors for the failure of the following services to start: Hyper-V Heartbeat, Hyper-V Data Exchange, Hyper-V Guest Shutdown, Hyper-V Time Synchronization and Hyper-V Volume Shadow Copy Requestor.

A closer looked showed two Hyper-V integration components entries in Add Remove Programs: Hyper-V Integration Services (version 6.2.9200.16384) and Microsoft Hyper-V Guest Components.

Hyper-V_Int2I chose to uninstall both components.  Following a reboot I re-installed the Hyper-V Integration Services using VMM.  Following this everything worked correctly.

Advertisement

Improving Virtual Server Deployment Time With Unattend.xml

As all the virtual machines I create using Hyper-V have the same hardware I decided to investigate the PersistAllDeviceInstalls option for unattend.xml.

The PersistAllDeviceInstalls setting configures whether the Plug and Play devices are uninstalled during the generalize phase and then reinstalled during the specialize pass of the sysprep process.  As all the virtual machines have the same hardware there’s no need to reinstall the Plug and Play devices and the result is a faster virtual machine deployment.

I created a fresh virtual server template with the PersistAllDeviceInstalls setting set to true and compared the setup time to the same template with PersistAllDeviceInstalls set to false.

With PersistAllDeviceInstalls set to false the setup time was 2:28.  With PersistAllDeviceInstalls set to true the setup time was 1:54, a small, but 23% saving in setup time.

If you want to add the PersistAllDeviceInstalls setting to unattend.xml here’s my example.

Unattend_xml

 

System Center Virtual Machine Manager 2012 SP1 Permission Issues

I recently had to troubleshoot an issue on a System Center Virtual Machine Manager 2012 (SCVMM) SP1 server.

All the managed hosts were in a state of “Needs Attention”.  When viewing the status screen for the host, the WinRM status was critical.  Pressing refresh in the host status screen resulted in the error message:

VMM does not have appropriate permissions to access the resource  on the %SCVMMSERVER% server.

Also, verify that CredSSP authentication is currently enabled on the service configuration of the target computer %HOSTSERVER%. To enable the CredSSP on the service configuration of the target computer, run the following command from an elevated command line: winrm set winrm/config/service/auth @{CredSSP=”true”}

The event log also contained the error:

The Virtual Machine Manager management server could not copy a required Hyper-V authorization file to %HOSTSERVER%.

After trying many things without success, I attempted a re-install of SCVMM.  This also failed with the message:

VMM does not have appropriate permissions to access the resource  on the %SCVMMSERVER% server.

The SetupWizard.log contained the message:

VMMPostinstallProcessor threw an exception: Threw Exception.Type: Microsoft.Carmine.WSManWrappers.WSManProviderException, Exception.Message: VMM does not have appropriate permissions to access the resource  on the %SCVMMSERVER%

The problem turned out to be caused by the proxy configuration on the SCVMM server.  In order to reset the proxy configuration I opened an elevated command prompt and ran “netsh winhttp reset proxy”. I was then able to re-install SCVMM successfully.

Microsoft System Center Virtual Machine Manager 2012 Cookbook

I was lucky enough to be asked to join the technical review panel for the Microsoft System Center Virtual Machine Manager 2012 Cookbook by Edvaldo Alessandro Cardoso and published by Packt.

This is a fantastic book if you’re already using SCVMM 2012, or thinking about doing so.  It covers aspects of SCVMM 2012 from installation through to creating Hyper-V clusters and managing fabric updates with VMM.  Be sure to give it a look http://link.packtpub.com/POCsIQ

6327EN