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:
The service was not successfully deployed. Review the event log to determine the cause before you take corrective action.
The deployment can be restarted by retrying the job.
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).
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).
This is by design. Service templates using Windows Core operating systems are not currently supported.
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
Steps to reproduce.
Product Bug Number: Virtual Manager 77622, 76682
Author ID (email alias): alvinm
Writer ID(email alias): alvinm
Tech Review ID (email alias):
Confirm Article has been Tech Reviewed: Yes/No
Confirm Article released for Publishing: Yes/No
Article ID: 2680242 - Last Review: Apr 3, 2012 - Revision: 1