Hi,
I am trying to create a VM on vCenter->DC->Cluster->Host using ovftool. I have OVF image saved at my desktop. When i am trying to give below command, is not giving results.
ovftool --X:logFile=ovf.log --acceptAllEulas desktop_location\test.ovf vi://VC_name:443/DC/host/Host_name -n="test2" -ds="Datastore" --net:"Network_name"
getting below error:
Error: Unexpected option: vi://VC_name:443/DC/host/Host_name
Completed with errors
Can anyone help me in correcting above command to get expected results.
I don't have access to a test environment at the moment, but you may try to change the command line match the usage.
Usage: ovftool [options] <source> [<target>]
ovftool --X:logFile=ovf.log --acceptAllEulas -n="test2" -ds="Datastore" --net:"Network_name" desktop_location\test.ovf vi://VC_name:443/DC/host/Host_name
André
Hi Andre,
I have tried it with same command but that also didn't work. Its showing vi:// error. Not getting exact command for using VC and giving host name or cluster name in it.
Thanks
You may need to include the cluster name in the path:
e.g.: vi://<vcenter-server-name-or-ip>/<datacenter-name>/host/<clustername>/<hostname>
André