Converting a VM to a template with VMware vSphere vCenter 6.7
One of the benefits of virtualization, is that you can quickly deploy new systems without having to install operating systems each time. Ideally, we only want to create a VM and install an operating system once. Then we can convert it to a template, which can be used to deploy multiple virtual machines quickly.
Templates are good for automating the deployment of new virtual machines with tools like Ansible. This guide shows you how to convert a VM managed by vCenter to a template.
How to convert an existing VM to a template
If the virtual machine has just been created specifically to be used as a template, we just need to convert it by follow the steps below.
Login to vCenter.

- Click Hosts and Clusters.
- Click on the VM you want to convert.
- Click the red power off button.

Click Yes to Confirm Guest Shut Down.

- Click ACTIONS.
- Click Template.
- Click Convert to Template.

Click YES to Confirm Convert.

The VM will disappear from the Hosts and Clusters view and can no longer be powered on. You can still see the template by switching to the VMs and Templates view.
Now you can create new VMs from this template using the web client or automation tools like Ansible, which I’ll cover in a future post.
How to clone an existing VM to a template
If you have an existing virtual machine that you want to turn into a template but you still want to keep the original VM running, we can clone it to a template with the following steps.
- Click ACTIONS.
- Click Template.
- Click Clone to Template…

Select a host to clone the template to then click NEXT.

Select the storage location then click NEXT.

Click FINISH to start the clone.

Wait foe the clone task to complete.

You can now see the template by clicking on the VMs and Templates button.

Final thought
As you can see from the steps in this guide, creating templates in vCenter is very easy to do. In this tutorial, we learned how to convert a VM to a template and how to clone a VM to a template.
You may have noticed the VM was a Ubuntu Server 18.04 machine, in a future post, I’ll demonstrate how to use Ansible to automate the deployment of a web server from this template.