deploy a VMWare ESX ofv template directly from a local datastore

I have an ovf template sitting on an esx's local datastore and am looking to deploy it to that same data store. can I do this directly?


Solution 1:

OVFs aren't really made for deploying over and over again. I would recommend that you deploy the OVF once (but don't power it on [Unless you need to make customizations]) and do one of two things with the new VM:

  1. If you're using vCenter convert the VM to template and then deploy the template whenever you need a new instance. This is the best option.
  2. Copy the VM folder into a new folder whenever you need a new copy of the VM and select "I moved it" when the vSphere client prompts you.

Solution 2:

I haven't tried this myself (as I don't have a local OVF at the moment). But you might be able to deploy by grabbing the OVF from the local HTTP server. See http://blogs.vmware.com/esxi/2010/01/scripting-datastore-access.html for information on accessing the datastore over the HTTP server.

If you OVF was called vm.ovf in the root of datastore1 the URL would look something like:

http://localhost/folder/vm.ovf?dcPath=ha-datacenter&dsName=datastore1

I am not sure if this requires authentication or not for localhost or if the Deploy OVF dialog allows you to enter HTTP authentication credentials. Worth a try.