Uploading an OVA to vSphere as template, not VM
Solution 1
You can upload a template using datastore browser. That is, either via web client or a GUI go to datastores section, right-click the datastore and select Browse. Datastore browser will open and you can upload your templates as a regular file.
You can then deploy from that file in a datastore using https URL that you can get by navigating to https://esx.ip.addr/folder
and then browsing down till you get to your template and copy its complete URL.
Solution 2
If you have a vCenter, you could use the content library to import an OVF package to use as a template for deploying virtual machines and vApps. Obviously, the tools you use to deploy VMs would have to work with the content library... but it might be a possibility.
Related videos on Youtube
![howdoievenexist](https://i.stack.imgur.com/jV0hJ.jpg?s=256&g=1)
howdoievenexist
I use Terraform to pave vSphere environments.
Updated on September 18, 2022Comments
-
howdoievenexist almost 2 years
I'm interested in uploading an OVA or OVF template on local file storage to vSphere without immediately deploying it as a VM.
Some things I've looked into:
doesn't seem like you can do this through the Flash or HTML UI
Terraform currently doesn't have the ability to upload OVAs at all, and the vSphere Terraform provider maintainer has explicitly stated that he does not plan to add it and considers it out of scope for Terraform
govc doesn't provide a way to mark VMs as templates on upload
Packer doesn't seem to currently have the ability to upload OVA/OVF templates to vSphere
I haven't used ovftool much but it doesn't seem to have the capability to mark uploads as templates
(What I'm trying to gain from doing this is to allow users to upload a template without configuring host, resource pool, network mappings, and vApp settings, and have that configuration done by an opinionated Terraform template instead. If you see a better way of enabling this that doesn't require marking a VM as template, I'm interested in that as well.)
-
howdoievenexist about 6 yearsUnfortunately, Terraform needs a template to have a UUID before it can clone a VM from a template, and this doesn't seem to assign a UUID. So this doesn't seem to work for our particular use case.
-
howdoievenexist about 6 yearsI just went ahead and made a PR to
govc
that allows me to mark VMs as templates on upload.