Importing a VM/Media with OVFTool

OVF Tool is a free tool provided by VMware.
It is a command-line only tool that allows you to import and export OVF/ISO packages between environments or from third party providers.
A user guide is available on the OVT Tool help page here

Prerequisites

Importing an OVA file

1. Now, pleas open a DOS/PowerShell window as follows:

From the installation directory you can use ovftool.exe.

2. Now rSun the above command with the following options:

  • –vCloudTemplate: specifies that it is a new Template
  • -acceptAllEulas: accepts all types of licenses
  • –overwrite: replaces file if present
  • < path. ova > : location of OVA file to Uploader
  • < login > :< pwd >: Login/Password vCD (Advanced Organization Admin rights)
  • < apiURL >: console1/console2/console4.cloudavenue.orange-business.com
  • < vOrg >: Name of Organization
  • < Template >: Name of the Template in the Catalog
  • < catalogue >: Name of the Target Catalogue

Résultat 

Importing an ISO file

  1. Open a DOS/PowerShell window

From the installation directory you can use ovftool.exe. Here are the steps to take:

2. Run the above command with the following options:
  • –sourceType: Specifies the source file type (ISO)
  • < path. iso > : location of the ISO file to upload
  • < login >:< pwd > : Login/Password vCD (Advanced Organization Admin rights)
  • < apiURL > : 3.flexible-computing-advanced.orange-business.com
  • < oVDC > : Virtual DataCenter name
  • < vOrg > : Name of Organization
  • < media > : Name of the Media in the catalogue
  • < catalogue > : Name of the Target Catalogue

Résultat 

Exporting a vApp to an OVF package

Please launch the following code :

cd ‘C:\Program Files\VMware\VMware OVF Tool’

.\ovftool.exe vcloud://username:password@3.flexible-computing-advanced.orange-business.com?org=OrgName“&”vdc=VDCName“&”vapp=vAppName C:\Users\username\Desktop\vAppName.ovf => (dossier de destination)