Deploy an OVF template stored on a local ESXi datastore

Deploy an OVF template stored on a local ESXi datastore

 

In a branch office I recently had the demand to deploy an OVF template that is stored on the local datastore of an ESXi host.

If you try to deploy the ovf template using the webclient/vSphere Client, you can specify a location accessible from your computer (hard drive, share, CD drive,…) or a URL to the ovf file.

Specifying the path to a local source on your computer is easy: start the “Deploy OVF Template” wizzard, click “browse” and select the path to your ovf file:

browse_file

But how can you identify the path to an ovf file stored on a local ESXi datastore?

Here is the how to:

Open a browser and enter the following address: https://IP_of_ESXi_Host/folder
Probably you will now see a link to “ha-datacenter”:

ha-datacenter

Select “ha-datacenter” to get a list of the local datastores:

datastore

Now select the datastore and if necessary the folders until you can see the ovf file in your browser:

path_copy

Copy the URL path to your ovf file displayed in your browser and note the OVF filename itself, too (eg: AAA01.ovf):

copy_URL

In a last step you have to merge the filename (eg. AAA01.ovf) into the URL path:

merge
Now you can use the “Deploy OVF Template” wizzard to deploy your ovf file from the local ESXi datastore. Just enter the URL from above and follow the wizzard:

URL from example above would be:

https://192.168.10.10/folder/AAA01/AAA01.ovf?dcPath=ha-datacenter&dsName=abc

enterURL

Done!

Of course you can also use this method to deploy an ovf file stored on the local datastore of another (remote) ESXi host if you want.