OVFTOOL
convert local vmx to vsphere:
$ ovftool -ds=ntnx1 -n=vm1 -nw="VM Network" CentOS.vmx vi://root:vmware@192.168.0.200/Datacenter/host/Cluster/
Opening VMX source: CentOS.vmx
Opening VI target: vi://root@192.168.0.200:443/Datacenter/host/Cluster/
Deploying to VI: vi://root@192.168.0.200:443/Datacenter/host/Cluster/
Transfer Completed
Completed successfully
$ ovftool -tt=vmx xvm1.ova .
$ ovftool vi://root:vmware@192.168.0.200/Datacenter/host/Cluster/Resources/vms/gw .
refer:
http://fosshelp.blogspot.com/2013/06/how-to-use-ovftool-command-line-utility.htm