Not sure if I'm not getting the syntax correct, but I am attempting to export a vm in OVF format directly from a ESXi 4.1 host.
I have tried several different commands, but all have failed.
Any help with the Syntax to export the OVF directly from a Host would be greatly apprecaited.
ovftool --compress=9 "vi://host1/ha-datacenter/3PAR-LUN6/server1" "Z:\server1.ovf"
ovftool --compress=9 "vi://host1/DC1/3PAR-LUN6/server1/server1.vmx" "Z:\server1.ovf"
ovftool --compress=9 "https://host1/DC1/server1/server1.vmx" "Z:\server1.ovf"
Try this syntax:
ovftool "vi://<username>:<pass>@<server>/ha-datacenter?ds=\[datastore\] vm/vm.vmx" <local path>
http://www.vmware.com/support/developer/ovf/ovf21/ovftool-210-userguide.pdf
If you find this helpful please consider awarding points.
I'm also trying to export an ovf, mine is standalone to esxi 5 host and I'm trying to export a vm to ovf file. I use the following command
ovftool "vi://root@<server>/ha-datacenter?ds=\datastore1\vm/vm.vmx" /export/vm.ovf
and I get prompted for password, once I enter the password, I get this error.
"Opening VI source : vi://root@server/ha-datacenter
"Error: locater does not refer to an object: vi://server/ha-datacenter?ds=\datastore1\vm/vm.vmx "
Can anyone please help me... eventhoug mine is a standalone esxi do I still have to use "vi" or can I use the following
ovftool root@server/vmfs/volumes/datastore1/vm/vm.vmx /export/vm/vm.ovf
thanks,
Let's make it simple:
ovftool "vi://VcenterServerName/DataCenterName/vm/VmName" "local Export path"
vi: is the path you would have to know. In my case it is simple
In case you only have ESXi host here is how you do it
I was get error with host could not be resolved when appending VM name so I used IP instead.
thanks a lot for you input.
I figured it out as soon as I posted the question... I started off by the ip address and then the vm name and I was able to export the vm to an ovf.
Thanks again.