VMware Cloud Community
nicolaj
Enthusiast
Enthusiast

ovftool "locator does not refer to an object"

I am trying to create an OVF from a vm in vsphere - I'm running ovftool on a linux machine, and using the following syntax (I got this from the ovftool users guide):

ovftool username@myvcenter.aaa.com/"datacenter name"/vm/vmname /local/path/tostoreit/vnname.ovf

It prompts for a password, I enter the password, and it comes back with:

Opening VI source: vi://username@myvcenter.aaa.com/datacenter name/vmname
Error: Locator does not refer to an object:vi://username@myvcenter.aaa.com/datacenter name/vmname

Incidentally, I get the exact same error when I try using the mac version of ovftool, and the windows version.

Please help - I know this should work. I have no idea what I'm doing wrong, but I have to get this working pretty fast.

Thank you!!

2 Replies
admin
Immortal
Immortal

from the "Opening...." line it looks like you did not add the .../datacenter name/vm/vmname?

you should let the smart help guide you to an object

by saying:

.../datacenter name/ (without the vmname etc)

eske

nicolaj
Enthusiast
Enthusiast

Thank you for that "smart help guide". That showed me what the problem was. The virtual machine was outside of the "discovered virtual machines" folder.

0 Kudos