Deploying a virtual machine from a template creates a new virtual machine that is a copy of the template. The new virtual machine has the virtual hardware, installed software, and other properties configured for the template.

Verify that you are connected to vCenter Server. You cannot work with templates if you connect the vSphere Client directly to an ESXi host.

You must be connected to vCenter Server to deploy a virtual machine from a template. You cannot deploy from a template if you connect the vSphere Client directly to an ESXi host.

To customize the guest operating system of the virtual machine, check that your guest operating system meets the requirements for customization. See Guest Operating System Customization Requirements.

To use a customization specification, you must first create or import the customization specification.

1

Right-click the template, and select Deploy Virtual Machine from this Template.

2

Enter a virtual machine name, select a location, and click Next.

3

Select a host or cluster on which to run the new virtual machine.

Option

Action

Run the virtual machine on a standalone host.

Select the host and click Next.

Run the virtual machine in a cluster with DRS automatic placement.

Select the cluster and click Next.

Run the virtual machine in a cluster without DRS automatic placement.

a

Select the cluster and click Next.

b

Select a host within the cluster and click Next.

4

Select a resource pool in which to run the virtual machine and click Next.

5

Select the datastore location where you want to store the virtual machine files.

Option

Action

Store all virtual machine files in the same location on a datastore.

a

(Optional) Apply a virtual machine storage profile for the virtual machine home files and the virtual disks from the VM Storage Profile drop-down menu.

The list of datastores shows which datastores are compatible and which are incompatible with the selected virtual machine storage profile.

b

Select a datastore and click Next.

Store all virtual machine files in the same datastore cluster.

a

(Optional) Apply a virtual machine storage profile for the virtual machine home files and the virtual disks from the VM Storage Profile drop-down menu.

The list of datastores shows which datastores are compatible and which are incompatible with the selected virtual machine storage profile.

b

Select a datastore cluster.

c

(Optional) If you do not want to use Storage DRS with this virtual machine, select Disable Storage DRS for this virtual machine and select a datastore within the datastore cluster.

d

Click Next.

Store virtual machine configuration files and disks in separate locations.

a

Click Advanced.

b

For the virtual machine configuration file and for each virtual disk, click Browse and select a datastore or datastore cluster.

c

(Optional) Apply a virtual machine storage profile from the VM Storage Profile drop-down menu.

The list of datastores shows which datastores are compatible and which are incompatible with the selected virtual machine storage profile.

d

(Optional) If you selected a datastore cluster and do not want to use Storage DRS with this virtual machine, select Disable Storage DRS for this virtual machine and select a datastore within the datastore cluster.

e

Click Next.

6

Select the format for the virtual machine's disks and click Next.

Option

Action

Same format as source

Use the same format as the source virtual machine.

Thick Provision Lazy Zeroed

Create a virtual disk in a default thick format. Space required for the virtual disk is allocated during creation. Any data remaining on the physical device is not erased during creation, but is zeroed out on demand at a later time on first write from the virtual machine.

Thick Provision Eager Zeroed

Create a thick disk that supports clustering features such as Fault Tolerance. Space required for the virtual disk is allocated at creation time. In contrast to the flat format, the data remaining on the physical device is zeroed out during creation. It might take much longer to create disks in this format than to create other types of disks.

Thin Provision

Use the thin provisioned format. At first, a thin provisioned disk uses only as much datastore space as the disk initially needs. If the thin disk needs more space later, it can grow to the maximum capacity allocated to it.

7

Select a guest operating system customization option.

Option

Description

Do not customize

Select Do not customize and click Next.

Does not customize any of the guest operating system settings. All settings remain identical to those of the source virtual machine.

Customize using the Customization Wizard

Opens the Customization Wizard so that you can select customization options for the guest operating system.

Select this option and click Next to launch the Customization Wizard.

To customize a Linux guest operating system, see Customize Linux During Cloning or Deployment in the vSphere Client.

To customize a Windows guest operating system, see Customize Windows During Cloning or Deployment in the vSphere Client.

Customize using an existing customization specification

Uses the settings in a saved customization specification to customize the guest operating system.

a

Select Customize using an existing customization specification.

b

Select the customization specification that you want to use.

c

(Optional) Select Use the Customization Wizard to temporarily adjust the specification before deployment if you want to make changes to the specification for this deployment only.

d

Click Next.

8

Review your selections and select whether to power on the virtual machine or edit virtual machine settings.

Option

Action

Power on this virtual machine after creation

Select this option and click Finish.

The virtual machine powers on after the deployment task completes.

Edit virtual hardware

a

Select this option and click Continue.

b

In the Virtual Machine Properties dialog box, make any changes and click OK.

Show all storage recommendations

This option appears only when the virtual machine disks are stored on a datastore cluster and Storage DRS is enabled.

When you select this option, the Virtual Machine Storage Placement Recommendations dialog box appears when you click Continue. The dialog box lists the datastores in the datastore cluster that are recommended for virtual machine placement.

Edit Storage DRS rules

This option appears only when the virtual machine disks are stored on a datastore cluster.

This option is selected when you select Edit virtual hardware. You can edit Storage DRS rules on the Options tab of the Virtual Machine Properties dialog box.

When you select the Edit Storage DRS rules check box, the Storage DRS rules dialog box appears when you click Continue.

The virtual machine is deployed. You cannot use or edit the virtual machine until the deployment is complete. This might take several minutes if the deployment involves creating a virtual disk.