Export OVF - OVFTOOL

1. Téléchargement à cette adresse : https://my.vmware.com/web/vmware/downloads/details?productId=614&downloadGroup=OVFTOOL420

2. Installation

3. Utilisation

Documentation : https://vdc-download.vmware.com/vmwb-repository/dcr-public/eae00242-71e7-4c2b-ae3a-30733acd237f/444d1981-8d87-4efe-9c68-4b62b7082b01/ovftool-432-userguide.pdf

C:\Program Files\VMware\VMware OVF Tool>ovftool vi://administrator@vsphere.local:<password>@<vcenter-fqdn>/<datacenter>
Error: Found wrong kind of object (Datacenter). Possible completions are:
  vm/
  host/

C:\Program Files\VMware\VMware OVF Tool>

C:\Program Files\VMware\VMware OVF Tool>ovftool vi://administrator@vsphere.local:<password>@<vcenter-fqdn>/<datacenter>/vm/<path-to-VM>
Error: Found wrong kind of object (Folder). Possible completions are:
  VM-1
  VM-2

C:\Program Files\VMware\VMware OVF Tool>

C:\Program Files\VMware\VMware OVF Tool>ovftool --X:logFile=<path-to-logfile>\log1.txt --X:logLevel=verbose vi://administrator@vsphere.local:<password>@<vcenter-fqdn>/<datacenter>/vm/<path-to-VM>/<VM-name> <localpath>\<VM-name>.ova
Opening VI source: vi://administrator%40vsphere.local@<vcenter-ip>:443/<datacenter>/vm/<path-to-VM>/<VM-name>
Error: cURL error: Server returned nothing (no headers, no data)
Completed with errors

C:\Program Files\VMware\VMware OVF Tool>

:!: Il faut mettre les options au début, à la fin ce n'est pas reconnu.

FIXME Je n'ai pas réussi à faire l'export au final, et par l'interface web ça a fini par fonctionner.