Use the following instructions to create Generation 2 virtual machine (VM) templates that you can use for guest customization of VMs on the System Center Virtual Machine Manager (SCVMM) for Microsoft Hyper-V.
The exact instructions depend on the operating system; instructions are provided for templates for Microsoft Windows 2012, 2012 R2, or 2016, and for templates for Linux.
Before you begin
Ensure that you have reviewed the requirements for setting up a Microsoft Hyper-V environment, and have added the SCVMM server to TrueSight Server Automation.
Creating Generation 2 templates on SCVMM for Windows 2012, 2012 R2, or 2016
- On the SCVMM Admin Console, create a new VM.
- Select Generation 2 and name the template.
For instructions about customizing the start-up order and specifying the generation, see the Microsoft online technical documentation. - Ensure that the Secure Boot option is set to Enabled, as shown below:
- Connect to the Network and attach the ISO, as shown below:
Click Next, and complete the wizard.
Power on the VM.
Open the console for the VM.
Complete the installation of the Operating System.
The Virtual Guest Services and VM Additions are installed automatically by SCVMM.
Refresh the VM you created from the SCVMM Console.
Install the BladeLogic RSCD Agent. See Installing the RSCD agent (Windows).
Shutdown the new VM.
From the SCVMM Console, right-click the VM and select Create VM Template.
- Enter a template name.
- Click Next to display the Configure Operating System wizard. Do the following:
- For the Guest OS Profile, select Create new Windows operating system customization setting from the drop-down list.
- Select the OS, as shown below.
Select the Library Server for the VM.
Provide the share location to which you want to save VM.
Complete the wizard, and click Create.
After the job has finished running, the template is ready for use.