title: ovftool export from esxi4 always locator not refer to an object error
body: <p>I am using ESXI 4 and I have a VM what I want to export to OVF every week or two.  I am trying to use ovf tools and write a script to make this easier.  No matter what I do, I always get the error "locator does not refer to an object".  </p>
  
  <p>My setup is ESXI 4.<br>
  VM Name is: SUGARCRM<br>
  Datastore path is: [datastore1]/debian/debian.vmx  </p>
  
  <p>According the to the instructions, the following should work, but they do not work for me.  What is the correct command syntax?</p>
  
  <pre><code>$ ovftool.exe vi://root:mypassword@192.168.1.60/ha-datacenter/?ds=[datastore1]/debian/debian.vmx c:\vm\sugarcrm.ovf
  Error: Locator does not refer to an object
  
  $ ovftool.exe vi://root:mypassword@192.168.1.60/ha-datacenter/vm/debian/debian c:\vm\sugarcrm.ovf
  Error: Locator does not refer to an object
  
  $ ovftool.exe vi://root:mypassword@192.168.1.60/ha-datacenter/vm/debian/SUGARCRM c:\vm\sugarcrm.ovf
  Error: Locator does not refer to an object
  
  $ ovftool.exe vi://root:mypassword@192.168.1.60/ha-datacenter/SUGARCRM c:\vm\sugarcrm.ovf
  Error: Locator does not refer to an object
  </code></pre>