Deploying a service template in System Center 2012 Virtual Machine Manager using a Windows Core VHD fails

Article ID: 2680242
Expand all | Collapse all

Symptoms

When attempting to deploy a service template in System Center 2012 Virtual Machine Manager using a Windows Core VHD, the process fails with the following errors:

Error (22042)
The service was not successfully deployed. Review the event log to determine the cause before you take corrective action.

Recommended Action
The deployment can be restarted by retrying the job.

Information (21947)
The script command (dism.exe dism.exe /online /NoRestart /enable-feature /featurename:NetFx2-ServerCore /featurename:MicrosoftWindowsPowerShell /featurename:ServerManager-PSH-Cmdlets) was executed on the computer  and returned a result exit code (87).

Error (22010)
VMM failed to enable Server Manager PowerShell on the guest virtual machine. Please log into the virtual machine and look in the event logs (%WINDIR%\Logs\Dism\dism.log).

Cause

This is by design.  Service templates using Windows Core operating systems are not currently supported.

Resolution

The following work arounds are available:

- Enable all the roles/features in the virtual machine prior to creating the sysprep VHD.

- Run DISM.exe as part of the application deployment using a pre-install script. 

Executable Program: C:\Windows\system32\dism.exe
Parameters: /online /norestart /enable-feature /featurename:NetFx2-ServerCore /featurename:NetFx3-ServerCore /featurename:DNS-Server-Core /featurename:DirectoryServices-DomainController-ServerFoundation
Timeout: 240 seconds

Note This is a "FAST PUBLISH" article created directly from within the Microsoft support organization. The information contained herein is provided as-is in response to emerging issues. As a result of the speed in making it available, the materials may include typographical errors and may be revised at any time without notice. See Terms of Use for other considerations.

Properties

Article ID: 2680242 - Last Review: April 3, 2012 - Revision: 3.0
Keywords: 
KB2680242

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com