Using PowerCli built-in CmdLet Import-vApp
could help you a lot. However, it needs to connect to a vCenter server, not an ESXi host. So, no donut for you
However, if you look at the VirtuallyGhetto blog, you will find tips to another tool that is suitable for your needs: ovftool
. It is a Vmware command-line utility that allows you to import and export OVF packages from Vmware products. You could even host the ovf file on a http mirror or directly download if from the internet to deploy your machines as the example from the blog:
/vmfs/volumes/datastore1/vmware-ovftool/ovftool -dm=thin -ds=datastore1 "--net:access333=VM Network" "http://air.primp-industries.com/SLES-VM/SLES-VM.ovf" "vi://root:[email protected]"
Means: Deploy this ovf with thin provisioning, on datastore datastore1, map the net name access33 from the ovf to VM Network, get the ovf from this http server, and this is the server, use these credentials on host(ESXi).
Disclaimer: It works on ESXi but it is not officially supported by VMware. It´s a workaround to use ovftool
directly inside the ESXi host. That is the reason why, for example, you have to type your password on the last field because if you dont, it will print a loop of *
on your screen.
Related documentation: OVFTool vmware doc.