Creating and Deploying Virtual Machines Using Templates
A typical use for templates is to set up a master image of a frequently deployed server operating system, for example Windows Server 2008 R2.The master image will include latest Windows Updates, Antivirus software with updates and Windows Operating components such as Desktop Experience and others. Using templates, you will be able to create new virtual machines with the operating system ready within less than 5 minutes. In the Enterprise network, this is done through System Center Virtual Machine Manger 2012 (SCVMM 2012). (In VMware it is done through vCenter Server.) In our example, we will be using only Hyper-V HOST. In this scenario; we have to follow the below steps to create virtual machine template for the new virtual machine.
1. First, Create a Virtual Machine with the Operating System and Install Windows Updates and Windows features as per your requirement such as the Desktop Experience.
2. Click Start > Run and type, c:\Windows\System32\sysprep and click OK.
3. Right-click on sysprep.exe and select Run as Administrator.
4. On the System Preparation Tool dialog box, select Enter System Out-of Box Experience (OOBE) under System Cleanup Action drop-down box. In the Shutdown Options select Shutdown, select Generalize and then click OK.
5. After the shutdown process, Open the virtual machine VHD path and Rename it to identify your template.
6. To create a new virtual machine from the template, Copy one of the VHD used as template to another location.
7. Create a new virtual machine using the template virtual hard disk. The system will reboot and the sysprep process will continue, prompting the Administrator’s Password.
A significant time savings and performing the required installation without errors can be achieved using the procedure described above. This kind of installation is recommended for environments where System Center Virtual Machine Manager 2012 is not an option due to cost limitations and where the numbers of Hosts are also limited.
- Configuring a Point-to-Site Connection to a VNet using Azure Portal - November 28, 2017
- Configuring a VNet-to-VNet VPN Gateway Connection Using the Azure Portal - October 27, 2017
- Configuring Azure VNet Peering by using the Azure Portal - October 19, 2017
- Using the Azure Portal to Create Virtual Networks, Add Subnets and Setting up a DNS Server Address - October 17, 2017
- Extend Azure Virtual Machine OS drive using Azure Portal - June 30, 2017
- Creating a Windows Virtual Machine and Availability Set at the same time using the Azure Portal - June 11, 2017
- Remove a Node from a Windows Server 2016 Hyper-V Cluster and Destroy a Cluster Procedure - May 14, 2017
- Best Practices on Setting up Hyper-V Cluster Networks in Windows Server 2016 - May 10, 2017
- Implementing Failover Clustering with Windows Server 2016 Hyper-V - May 6, 2017
- Configuring iSCSI Storage and Initiator in Windows Server 2016 - April 20, 2017