Deploy a Virtual Machine from a Template and Clone a Virtual Machine
How To Configure Guest Operating System Customization on a vCenter Server System
- Log in to your vCenter Server system.
- Find Windows Sysprep CAB file and right-click the file WindowsServer2003-KB892778-SP1-DeployTools-x86-ENU and select Open.
- In Windows Explorer, open Sysprep tools installation folder.
- Copy all files from CAB file to Sysprep tools installation folder. There will be a warning for each file whose publisher is not verified. Click Save for each file.
How to Create a Template
How to create a template by cloning a virtual machine to a template.
- Log in to your desktop virtual machine.
- Use VMware vSphere Client to log in to your vCenter Server system.
- In vSphere Client, go to Home > Inventory > VMs and Templates.
- Right-click virtual machine and select Template > Clone to Template.
- Do the following when prompted by the Clone Virtual Machine to Template wizard:
- Enter a Template Name.
- Select Training datacenter (Template Inventory Location).
- Select your ESXi host (Host or Cluster on which to store template).
- Select your datastore (Datastore for the template).
- Keep default Disk Format.
- Click Finish when done.
- You can monitor progress of cloning task in Recent Tasks pane at the bottom of vSphere Client.
- The icon of the template differs from a virtual machine icon when the clone-to-template operation is done.
Deploy Virtual Machine from a Template
How to deploy a virtual machine from your template and allow vCenter Server to customize guest operating system.
- Right-click your template and select Deploy Virtual Machine from this Template.
- Do the following when prompted by wizard:
- Enter a name for your virtual machine.
- Select your LabVms folder (Inventory Location).
- Select your ESXi host (Host or Cluster to run this virtual machine).
- Select the shared datastore for virtual machines (Datastore for the virtual machine).
- Keep default Disk Format.
- Select Customize using the Customization wizard.
- Do the following when prompted by vSphere Client Windows Guest Customization wizard:
- Type in a name.
- Type in your Organization.
- Select Use the virtual machine name (NetBIOS Name).
- Type in Windows product ID (Product Key).
- Leave selected for Include Service License Information.
- Keep default Server License Mode.
- Enter the virtual machine Administrator password.
- Leave unselected for Automatically log on as administrator.
- Select your time zone.
- Keep defaults for Run Once, Network, Workgroup or Domain, and Generate New Security ID (SID).
- Leave selected for Save this customization specification for later use.
- Type in a name of customization specification.
- Type in a description (such as Windows 2003 Custom Spec).
- Click Finish [Ready to Complete (vSphere Client Guest OS Customization wizard)].
- Select Power on this virtual machine after creation check box and click Finish [Ready to Complete (Deploy Template wizard)].
- To verify that the virtual machine was created properly, you can check the following:
- The virtual machine booted up successfully. Wait at least two minutes for Sysprep to complete its tasks (including a reboot of the system).
- You can log in to guest operating system as Administrator with the virtual machine Admin password.
- VMware Tools is installed with time synchronization configured.
How to Clone a Virtual Machine that is Powered On
How to clone a running virtual machine.
- Right-click your virtual machine and select Clone.
- Do the following when prompted by the wizard:
- Create a name for your new virtual machine.
- Select a folder for Inventory Location.
- Select your ESXi host (Host or Cluster on which to run this virtual machine).
- Select a datastore.
- Keep default Disk Format.
- For Guest Customization, select Customize using an existing customization specification. Select your customization specification. Leave the Use the Customization Wizard temporarily adjust the specification before deployment check box unselected.
- Select Power on this virtual machine after creation check box and click Finish.
