0

I have already opened a issue for pyvmomi (https://github.com/vmware/pyvmomi/issues/312), but no answer so far.

Basically what I want to do is run the Guest customization after I have deployed a OVF to the ESXi. On a vCenter server, this is working as expected. But it is failing on ESXi

I guess the main question is, if Guest customization is working or not on a single ESXi server.

If anyone can answer this, or even better, has experience with using PowerCLI or PyVmomi to do this with ESXi.

I'm out of ideas.

Thanks, Christian

1 Answer 1

0

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.

2
  • Thanks. But I have no issue with the deployment of the VM. I already use OVA files as there is no clone or anything. But I need a means of doing the same customisation I already do for normal vCenter clones.
    – derchris
    Jan 8, 2016 at 16:39
  • Could you please be more clear on what you want? You need to customize the vm AFTER you deploy an OVA, or a third part feature that is simmilar to Clone on ESXi?
    – user122772
    Jan 11, 2016 at 19:23

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .