Converting VMX Format to an OVF Package
To convert a virtual machine in VMware runtime format (.vmx and .vmdk files) to an OVF package, use the following syntax:
> ovftool /vms/my_vm.vmx /ovfs/my_vapp.ovf
The result is located in
/ovfs/my_vapp.ovf