Hi !!
I am trying to use vmprovision.pl.But it is asking for Datacenter and --vihost.Can anybody please tell me what is meant by these terms?
Thanks,
Victor
For --datacenter, you need to specify the name of the datacenter object that contains the ESX host (this only applies if you are using VirtualCenter) For standalone hosts, the --datacenter option has no relevance. For --vmhost, you specify the name of the ESX host (FQDN is good, but IP or short name should work fine).
Note that, if you are using VC, I believe you need to specify the name of the host as it is recorded in VC in order for that host to be located properly. However, I suppose that depends on how the script is written to find the host objects -- the simplest is to pass the value through to find_entity_view.
Datacenter is used to organize inventory objects such as host resources and virtual machines. The "datacenter" option in vmprovision.pl is needed only when you are creating a VM. For ESX servers the value for datacenters is "ha-datacenter". However, there is no option as "--vihost" in this script. Are you referring to "vmhost" option?
Thanks for your reply.
yeah,its --vmhost.
What we should we give in --datacenter and --vmhost options?
Please help me out.
For --datacenter, you need to specify the name of the datacenter object that contains the ESX host (this only applies if you are using VirtualCenter) For standalone hosts, the --datacenter option has no relevance. For --vmhost, you specify the name of the ESX host (FQDN is good, but IP or short name should work fine).
Note that, if you are using VC, I believe you need to specify the name of the host as it is recorded in VC in order for that host to be located properly. However, I suppose that depends on how the script is written to find the host objects -- the simplest is to pass the value through to find_entity_view.
Thanks for wonderful answer