I cannot figure out the correct syntax to export a VM to an OVA/OVF into a datastore in ESXi. It is a stand alone host and NOT in vCenter.
C:\Users\>"C:\Program Files\VMware\VMware OVF Tool\ovftool.exe" -ds=datastore1 vi://root:pass@192.168.1.1:443/MyVmFolder vi://root:pass@192.168.1.1:443
Opening VI source: vi://root@192.168.1.1:443/MyVmFolder
Opening VI target: vi://root@192.168.1.1:443/
Error: Duplicate name 'MyVmFolder' on target. Use --overwrite option to delete it.
Completed with errors
I have also tried the syntax for destination to include the host and Resource, but this is what I see:
C:\Users\>"C:\Program Files\VMware\VMware OVF Tool\ovftool.exe" -ds=storage vi://root:pass@192.168.1.1:443/MyVmFolder vi://root:pass@192.168.1.1:443/VMFolder1/ExportedVM.ova
Opening VI source: vi://root@192.168.1.1:443/MyVmFolder
Error: Locator does not refer to an object: vi://root@192.168.1.1:443ha-datacenter/host/localhost./Resources/VMFolder1/ExportedVM.ova
Completed with errors