ofv. ofvtool.
from the man help page:
ovftool "vi://username:pass@my_vc_server/my_datacenter?ds=\
[Storage1] foo/foo.vmx" c:\ovfs\
(VM on ESX/vCenter server to OVF using datastore location query)
not really sure what the "my_datacenter" really is but found a few posts here that had "ha-datacenter" in that place so i tried getting an ovf like this:
C:\caca>ovftool -tt=ovf "vi://user:pass@xxx.xxx.xxx.xxx/ha-datacenter?ds=[datastore1] caca01a/caca01a.vmx" cacas.ovf
Opening VI source: vi://user@xxx.xxx.xxx.xxx/ha-datacenter
Opening OVF target: cacas.ovf
Writing OVF package: cacas.ovf
Disk Transfer Completed
[haaaanging - no prompt.....]
Terminate process signal received - aborting operation^C
C:\caca>
C:\caca>
........
i got [datastore1] caca01a/caca01a.vmx from the properties off the vsphere for that vm. did this a few times...
what happens is instead of the generation of an ovf file i get something that ends with .vmdk. and the process hangs without getting back to the prompt....
my question is: why? what has to happened to get an ovf file?
i shall appreciate an answer...