Would you like to learn how to create a Linux virtual machine template on Vmware ESXi? In this tutorial, we are going to show you how to create an Ubuntu Linux virtual machine template using Vmware ESXi server.

This tutorial was tested on Vmware ESXi 6.5

This tutorial was tested on Vmware ESXi 6.7

This tutorial does not use Vcenter.

Vmware ESXi Playlist:

On this page, we offer quick access to a list of videos related to Vmware ESXi.

Don’t forget to subscribe to our youtube channel named FKIT.

Tutorial – Create the Original Linux Virtual Machine

First, you need to create the original Linux virtual machine.

Access the Vmware web interface.

Open a browser software, enter the IP address of your Vmware ESXi server and access web interface.

vmware web interface

On the prompt screen, enter the administrative login information.

After a successful login, the Vmware dashboard will be displayed.

Vmware ESXi Dashboard

On the Vmware Dashboard, Access the Virtual Machines menu Menu.

Click on the Create / Register VM button.

Vmware ESXi New VM

On the Vmware creation assistant, select the following options:

• Compatibility – ESXI 6.7 Virtual Machine
• Guest OS Family – Linux
• Guest OS Version – Ubuntu Linux

In our example, we are installing a new Ubuntu Linux virtual machine.

Vmwre ESXI Linux Virtual machine

Next, select the datastore where the virtual machine should be created.

Vmware Virtual machine Datastore

On the Setting customization screen, you need to change the following configuration:

• CD/DVD Drive – Host device
• Status – Connect at power on.

Vmware host device

Finish the Virtual machine creation assistant.

Insert the Ubuntu Linux installation CD/DVD on the Vmware ESXi driver.

Turn on the new Virtual Machine.

The system should start automatically a new operating system installation.

Ubuntu Installation

Perform a regular Linux installation.

At the end of this process,  you will have a clean installation of a new Linux virtual machine.

In our example, we created a Linux virtual machine named UBUNTU18.

Tutorial – Customize the Linux Virtual Machine

Now, you need to customize the Linux virtual machine to fit your needs:

• Perform the installation of Linux updates

• Perform the installation of desired packages

• Perform the modification of other Linux settings

After finishing the customization, power off the Linux virtual machine.

Caution! Do not turn on this computer anymore.

Tutorial – Create the Vmware ESXi Linux Template Repository

Now, you need to create a Vmware Datastore repository to the template.

On the Vmware Dashboard, Access the Storage Menu.

Access the Datastores tab and select the Datastore browser option.

Vmware ESXi Template Datastore

On the Vmware datastore browser screen, click on the Create directory option.

Vmware ESXi Datastore folder

Enter the desired name to the template repository folder.

In our example, we created a directory named TEMPLATES.

Vmware ESXI Templates folder

Now, you need to access the datastore folder of your Linux virtual machine.

Copy the VMX file from the original Linux virtual machine to the template folder.

Vmware linux Template VMX

Copy the VMDK file from the original Linux virtual machine to the template folder.

Vmware Linux Template VMDK

Don’t forget to select the TEMPLATES folder as the copy destination.

Vmware linux Template copy

Congratulations! You created a Linux virtual machine template on Vmware ESXi.

Tutorial – Create a Linux Virtual Machine from a Template

Now, we are going to show you how to create a new Linux virtual machine from our template.

On the Vmware Dashboard, Access the Storage Menu.

Access the Datastore tab and select the Datastore browser option.

Vmware ESXi Template Datastore

On the Vmware datastore browser screen, click on the Create directory option.

Vmware ESXi Datastore folder

Enter the desired name to the new virtual machine folder.

In our example, we created a directory named NEW-VM.

Vmware new VM folder

Now, you need to access the datastore folder where your virtual machine template is located.

In our example, the virtual machine template files are located inside the TEMPLATES folder.

Copy the VMX and VMDk files from the template folder to the new virtual machine folder.

Vmware ESXi Linux Template Virtual Machine

On the new virtual machine folder, right click on the VMX file and select the Register VM option.

Vmware Template Linux Register VM

Access the Vmware Dashboard and power on the new virtual machine.

The system will display the following warning.:

Virtual machine template question linux

Select the option Named: I Copied it and click on the Answer button.

You are now able to use your new virtual machine.

Congratulations! You created a new virtual machine from a template.