#### Stage 2: Configure the Template Once the agent is installed, and the Status field on the Check Agent wizard page confirms this, click Next. The VM will now be powered off (wait for the power off operation to finish). Once the VM is powered off, the template configuration stage begins. The subsequent wizard pages are described below. Properties On this page, specify the following options: Template name: Choose and type a template name. Maximum guest VMs: Specify the maximum number of guest VMs that can be created from this template. Number of guest VMs deployed on the wizard completion: The number of guest VMs to deploy once the template is created. Please keep in mind that this will take some time because the VMs will be created one at a time. Guest VM name: A pattern to use when naming new guest VMs. For details, see Guest VM naming. Keep available buffer: The minimum number of guest VMs to always keep on the VDI provider and ready to be used in order to provide the fastest access to end users. Delete unused guest VMs after: Specify when to delete unused guest VMs to save resources. Clone method: Whether to create linked or full clones. A full clone is a complete copy of a template. As such, it occupies as much space on the physical hard drive as the source template and takes a significant time to create. A linked clone is a copy of a template made from a snapshot that shares virtual disk with the source template, therefore it takes much less space on the physical hard drive and it takes only a couple of minutes to create. You should use full clones if your application and OS updates are too slow (full clones take longer to create, but they provide the best possible performance). Otherwise if your updates are fast enough, use linked clones as it takes much less time to create them. Note: If the Create a linked clone option is grayed out, it means that the current version or Parallels RAS does not support linked clones with the VDI provider that you are using. At the time of this writing, support for linked clones is available for VMware, Microsoft Hyper-V, KVM, Scale Computing HC3, and Nutanix. Advanced The Advanced page has different properties for different VDI providers. The differences are described below. Hypervisor-based VDI providers: Cluster Shared Volume (CSV), Network share: These two options appear if you are using Hyper-V Failover Cluster. They allow you to select a type of storage where guest VMs will be created. Select a desired option and then click the [...] button next to the edit field. Depending on the option selected, specify a Cluster Shared Volume or a network folder. Note that a shared folder must be compatible with SMB 3.0. Please also read the important note below. Note: To use this functionality, you need to set SMB constrained delegation (resource-based) using Windows PowerShell. Important: Windows Server 2012 forest functional level is required. On a server running Windows 2012 R2 and above install the Active Directory PowerShell module using Powershell. Note that you don’t need the module on a Hyper-V host or SMB file servers. Run the following cmdlet: `Install-WindowsFeature RSAT-AD-PowerShell` Delegate SMB delegation on a file server (cluster) for every node of Hyper-V cluster. For example if you are running a four-node Hyper-V cluster and you use a Scale-Out File Server cluster FS-CL01 as virtual machine storage: `Enable-SmbDelegation –SmbServer FS-CL01 –SmbClient Hyperv-01` `Enable-SmbDelegation –SmbServer FS-CL01 –SmbClient Hyperv-02` `Enable-SmbDelegation –SmbServer FS-CL01 –SmbClient Hyperv-03` `Enable-SmbDelegation –SmbServer FS-CL01 –SmbClient Hyperv-04` Mandatory: verify applied settings (the actual delegations) as follows: `Get-SmbDelegation –SmbServer FS-CL01` Folder: This option is available if you are using Hype-V, VMware vCenter, KVM, or Nutanix. It specifies a folder where guest VMs will be created. Native Pool: This option is available if you are using VMware ESXi and VMware vCenter. It specifies a native VM pool. Resource Pool: This filed is shown instead of the Native Pool filed (above) only if the VDI provider type is VMware vCenter and you have specified a resource pool when you configured the VDI provider. For more info, see Add a VDI Provider. The field allows you to select a specific vCenter resource pool that exists at the same or lower lever in the pool hierarchy. Click the [...] button to select a resource pool. Physical Host: Available for VMware vCenter. Specifies a physical host where guest VMs will be created. Microsoft Azure VDI provider: Resource group: Select an Azure resource group where the cloned VM will be created. Note that this must be a group to which you granted permissions to the Azure AD app. For details, see Create a Microsoft Azure AD Application. Size: Select a VM size to be used for cloned VMs. OS disk type: Select a disk type to be used for cloned VMs. Preparation Use the Preparation page to select and configure an image preparation tool. Note: When you specify properties on this page, they are remembered in your personal configuration file on the local machine. The next time you decide to create another template, the fields here will be populated automatically using the values you used the last time. First, select whether you want to use RASprep or Sysprep. The advantages of using RASprep and the differences between the two tools are described below. RASprep is the Parallels RAS tool for preparing Windows in a VM after cloning it from a base image. RASprep performs the following tasks during the initial startup of each new VM: Creates a new computer account in Active Directory for each guest VM. Gives the guest VM a new name. Joins the guest VM to the Active Directory domain. Compared to Sysprep, RASprep works much faster because it modifies a lower number of configurable parameters and requires less reboots. Note: Due to API limitations, RASprep cannot be used on Windows Server 2008 machines. The following table lists the main differences between RASprep and Sysprep:
Operation | RASprep | Sysprep
Delete local accounts | No | Yes
Generate new SIDs | No | Yes
Unjoin the parent guest VM from the domain | No | Yes
Change computer name | Yes | Yes
Join the new instance to the domain | Yes | Yes
Language, regional settings, date and time customization | No | Yes
Number of reboots | 1 | 2 (seal, mini-setup and domain joining)
After selecting the preparation tool, specify the following options: Computer name: A name pattern that should be used to assign a computer name. For example, Windows10-RAS-%ID%. Owner name: Owner name (optional). Organization: Organization name (optional). Administrative password: Local Windows administrator password. Join domain: A domain name for the VM to join. Administrator: Domain account. Password: Domain account password. Target OU: Full DN of an organizational unit. Click the [...] button to browse Active Directory and select an OU. License Keys On the License Keys page, specify the license key information that will be used to activate virtual machines created from this template. First, select the license key management type that you are using in your organization (KMS or MAK). Parallels recommend to use KMS because MAK has limited activations. Key Management Service (KMS): If you are using KMS, click the Finish button to save the template configuration information. Virtual machines that will be created from this template will look for KMS in DNS (at the end of the OS mini-setup and domain joining) and will be activated accordingly. Note: If you are using KMS activation and RASPrep, the source guest VM must be activated using KMS before you create a template from it. If the guest VM has already been activated using another method (retail key or MAK), you need to convert it to KMS activation. For the information on how to do it, please read the following article from Microsoft: https://technet.microsoft.com/en-us/library/ff793406.aspx Multiple Activation Keys (MAK): If you are using MAK, do the following: Click the Add button and type a valid key in the License key field. In the Max. guests field, specify the key limit. The limit should be greater than or equal to the max guests in the template (which you set on the first page of the wizard) Click OK. Note: Parallels RAS does not keep the old MAK key in guest VMs if it was updated in the Parallels template properties. Settings Specify the following additional settings on this tab: Publishing session timeout: Specifies the session timeout. Actions: Allows you to select an action that will be performed on a selected session event. The After field, specifies the time period after which the action will be initiated. Security Allows you specify the following security settings: Grant users remote desktop connection permissions: This option allows you to automatically grant a user permissions for a remote desktop connection. This is achieved by temporarily adding a user to a local group on connect and then removing him/her on logoff or disconnect. To enable this option, select the checkbox and then select one of the available local groups (Remote Desktop Users or Administrators) to which users will be added. Summary On the Summary wizard page, review the template summary information. You can click the Back button to correct some of the information if needed. Select the Launch Parallels Test Template Wizard on completion option to start a wizard allowing you to test the health of the template. The wizard allows you to see upon completion that all post-prep activities complete correctly. This includes checking DHCP settings, DNS registration, correct VLAN, joining the AD domain, correct target OU, etc. The wizard is described in the section that follows this one. Finally, click Finish to create the template and close the wizard.