Using System Center Configuration Manager (SCCM) to generate VHD image for use with Virtual Machine Manager (VMM)

Overview:

One of the new features of SCCM 2012 R2 is that it supports building Virtual Hard Disks from SCCM which can then be used for many different purposes such as testing a new image or using as a virtual machine template.

Requirements:

  • System with Hyper-V role installed (used to generate the virtual machines)
  • Virtual Machine Manager Console (required to upload the vhd)

Process to build a VHD from SCCM

  1. Build the SCCM Task Sequence
  2. Run the Task Sequence to build the VHD
  3. Upload the VHD to Virtual Machine Manager

Building the Task Sequence:

  1. Open the SCCM Console  and click on the Software Library – and expand Operating Systems – > Task Sequences.
  2. BuildTaskSequence
  3. Right Click and select Create Task Sequence.
  4. CreateTaskSequence
  5. Select the Option to install an existing package to a virtual hard disk.
  6. TaskSequence-Install and existing image
  7. Enter the task sequence name and the Boot image and click next.
  8. SCCM-TaskSequenceName
  9. Select the Image, product key (if needed), and set the administrator password (if desired) and click next.
  10. sccm-taskwindowsproperties
  11. Select either workgroup or domain (this example we are doing a domain join), and enter the domain, OU and and account that can bind, and click next.
  12. sccm-taskNetwork
  13. Select the Configuration Manager Package (probably the default), and click next.
  14. sccm-ConfigMGRClient
  15. If desired add applications to be included, and click next, and next one more time after the summary page and task will successfully be created.
  16. InstalledApplications

Building the VHD

  1. Open up the Software Library and expand Operating Systems -> Virtual Hard Disks. Right click and select create virtual hard disk.
  2. sccm-createvhd
  3. Enter a name and Path for the virtual hard disk and click next.
  4. VM-Name
  5. Select the Task Sequence and click next.
  6. sccm-selecttasksequence
  7. Select one of the distribution points with all of the content and click next.
  8. selectDP
  9. Enter Customization (if desired) and click next.
  10. sccm-customizetasksequence
  11. At the summary page review and click finish. The virtual machine will start build the vhd and upload to the sccm share. Process can take an hour depending upon image complexity.

Uploading the VHD to Virtual Machine Manger (VMM)

  1. Browse to the software library and expand Operating Systems -> Virtual Hard Disks.
  2. SCCM-VHD
  3. Right click on the desired VHD and click upload to Virtual Machine Manager.
  4. sccm-upload to vmm
  5. Select your VMM server and the desired library and click next.
  6. sccm-upload to vmm2
  7. Click next one more time and the vhd will be uploaded to the VMM library. This process can vary can take a bit, but once completed the vhd will appear in Virtual Machine Manager Library.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s