I am new to the SDK. I loaded the 5.0 version of the SDK Perl scripts. I am trying to clone a VM but I want it to clone to another datacenter and esxihost. I can get it to clone locally if I do not include the --datastore parameter. It only makes a local copy. If I include --datastore I get the message Datastore xxxxx not available.
C:\Program Files\VMware\VMware vSphere CLI>perl perl\apps\vm\vmclone.pl --username uuuuuu --password ppppppp --vmhost 10.253.179.20 --vmname x-sm-template.v2.1.4 --vmname_destination vcpsrm-cmcl-3301.vtest --url https://vcpvcenter.ula.comcast.net/sdk/webService --datastore vcpresx-cmcl-33
Datastore vcpresx-cmcl-33 not available.
FYI: The VM is not a template even though we are calling it one.
I ran the script dsbrowse.pl and it works showing me the datastore.
C:\Program Files\VMware\VMware vSphere CLI>perl perl\apps\host\dsbrowse.pl --username uuuuuu --password pppppp
--url https://vcpvcenter.ula.comcast.net/sdk/vimService --name vcpresx-cmcl-33
Information about datastore : 'vcpresx-cmcl-33'
---------------------------
Summary
Name : vcpresx-cmcl-33
Location : ds:///vmfs/volumes/4f16f35c-67505413-41d2-441ea14bc92d/
File system : VMFS
Maximum Capacity : 1112.75 GB
Available space : 1090.9306640625 GB
All the examples just show the simple name of the datastore which I named the datastores the same as the esxi hostname.
Any ideas?