VMware’s OVFtool is a command line tool that allows you to convert VMware Virtual machines to Open virtualization Format (OVF). There have been some update in the latest version that enables the to upload VMs to vCloud Director.it is actually a simple procedure, OVFtool requires a source (VMF or OVF) and a destination (vCloud locator ). The vCloud locator appears like this:
the vCloud locator resembles a URL with all of the information required to upload your OVF. Many people who use windows tend to use the command prompt, though this will result in an error. There are a few reasons that can be the cause of this error like the special characters OVFtool uses in the URL but to save time just use the poweshell.
$vCloudLocator” = vcloud://tom:email@example.com:443?
$sourceFile = “C:tomMyVM.vmx”
$ovftool = “C:Program FilesVMwareVMware OVF Toolovftool.exe”
& $ovftool $sourceFile $vCloudLocator
This is because powershell handles the characters as part of the string, so the string is passed like a parameter to OVFtool.