One of the new Features Microsoft is bringing with System Center 2012 Configuration Manager R2 is the capability to create a VHD out of an Task Sequence with operating System deployment. This allows you to simplify your process of a Virtual Desktop Infrastructure. It is not possible to create a vhdx, but after creation you can convert your vhd if you like to, use this blog if you Need help for this: http://www.thomasmaurer.ch/2012/05/windows-server-2012-hyper-v-convert-vhd-to-vhdx/
In this blog, I would like to Show how you create a vhd, and what the requirements are.
You will Need a Computer or Server, which has a Hyper-V Role installed. On Client side you can use a Windows 8 or later and on Server side you can use a Windows Server 2008 R2 or later (http://technet.microsoft.com/en-us/library/dn448591.aspx).
If your machine meets the requirements, you can install the SCCM Console, to create the Task sequence and the VHD afterwards. You can start with the wizard of “Create Task sequence” and select “Install an existing Image package to a virtual hard disk”:
The process of creating the Task sequence is very similar to a normal Task sequence, and I’m not pointing this out. When your Task Sequence is created, you can start to create your virtual hard disk:
This Option is not selectable or grayed out, when you not have installed a supported Hyper-V Version. I used my Client with Windows 8.1. The wizard starts, and you have to give some Information for creating the VHD:
Click on Browse to select your Task sequence created before, and you will see the installed Software:
Add your preferred Distribution Point to the List:
In the last step, you have the well-known Options to set before the Task sequence starts:
In the last step, you will see the summary, and by clicking on Next, the Console starts the necessary commands, to create a VHD to the Location you want:
First you will be asked for administrative rights, and then you will see the Progress:
And:
You can even open the virtual machine through Hyper-V Manager and view the Progress of the Task Sequence:
Be Aware, the vhd will be created in the AppDataLocal, so you should have enough space on your System drive. It does not care about the Setting in Hyper-V Manger where to create new Virtual Machines.
You should then receive a success Status from the wizard:
Your created virtual hard disc is also shown in the console, where you can upload it directly to virtual machine Manager: