We have a specific folder used for certain vm's that I need to deploy to.
As an example I can view the current list of vm's with:
ovftool vi://myadmin:mypass@ourvcenter/DATACENTER/vm/myvms
Error: Found wrong kind of object (Folder). Possible completions are:
vmname1
vmname2
vmname3
Now let’s say I want to import an ovf to myvms/vmname4 I get a "Locator does not refer to an object" error.
ovftool --datastore=mydatastore --network=mynetwork vi://myadmin:mypass@ourvcenter/DATACENTER/vm/myvms/vmname4 newvm.ovf
Opening VI source: vi://myadmin:mypass@ourvcenter/DATACENTER/vm/myvms/vmname4
Error: Locator does not refer to an object: vi://myadmin:mypass@ourvcenter/DATACENTER/vm/myvms/vmname4
Completed with errors
I have tried variations of using —name and —vmfolder and changing the vi: path without success.
I can import directly to esxi and to host through vcenter but we are then having to go back into vcenter to move these vms to the correct folder.
Is there a way to get this into the "right" place up front?
↧
Unable to deploy an ovf to datacenter folder
↧