Cloning a virtual machine to a template creates a template copy of the virtual machine while leaving the original virtual machine in place.

You must be connected to vCenter Server to clone a virtual machine to a template. You cannot create templates if you connect directly to an ESXi host.

1

Right-click the virtual machine and select Template > Clone to Template.

2

Give the new template a name, select its inventory location, and click Next.

3

Pass through the target location page and click Next.

4

Specify in which format to store the template’s virtual 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 thick provision lazy zeroed format, the data remaining on the physical device is zeroed out during creation. It might take 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.

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

Apply a virtual machine storage policy for the virtual machine home files and the virtual disks from the VM storage policy drop-down menu.

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

b

Select a datastore and click Next.

Store all virtual machine files in the same datastore cluster.

a

Apply a virtual machine storage policy for the virtual machine home files and the virtual disks from the VM storage policy drop-down menu.

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

b

Select a datastore and click Next.

Store virtual machine configuration files and disk 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

Click Next.

6

Click Finish.

vCenter Server displays the Tasks inventory panel for reference and adds the cloned template to the list in the information panel.