Creating Generation 2 Virtual Machine Templates on SCVMM
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
- Creating Generation 2 templates on SCVMM for Windows 2012, 2012 R2, or 2016
- Creating Generation 2 templates on SCVMM for Linux
- Where to go from here
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.
Creating Generation 2 templates on SCVMM for Linux
The following sections describe how to create a generation 2 template for Linux.
Before you begin
- Download and install the roll-up package from the Microsoft support site.
- Download and install the Server update package.
- Download and install Administrator Console update package.
- Download the Guest Agent update package.
- Download the Linux Integration tools from the Microsoft download center.
To create a Linux VM template with an RSCD agent
You can find detailed instructions for creating the template on the Microsoft technical support site. The following procedure provides the high-level steps.
- Create a new VM (from blank hard disk), mounting Linux installation media.
- Specify the VM name.
- Attach the Linux ISO for the OS installation.
- Ensure that the secure boot is disabled, as shown below:
- Confirm the settings, and click Create.
- Install the Linux distro, configure disks, sudoers, packages, and so on.
- Install or update the latest Linux Integration Services (Hyper-V drivers).
- Install the Linux Agent for SCVMM, according to the instructions on the Microsoft technical support site.
- Install the BladeLogic RSCD agent, configure the exports file, and restart the agent.
- Shut down the VM, copy the VHD to a SCVMM library share and refresh the SCVMM library.
- Create a new VM template, selecting the VHD in the library as the starting point, as shown below:
- Enter a name for the template.
- Ensure that the secure boot is disabled, as shown below:
- For the Guest OS Profile, select the Linux option from the drop-down list:
- Complete the wiard, confirm the settings, and click Create.
Where to go from here