Hi,
I have checked few posts on this forum on how to create the virtual machine via vmcreate.pl, but the responses was not so clear to me...
These are the topics I have read:
How to set up the HostSystem Managed object
So, I would like to create a virtual machine on a Cluster, not on a specified host. Does the script vmcreate.pl would do the job ? Or I should modify it ?
From the topic =>
I didn't quite get, what should I modify ...
This is what I do:
vmcreate.pl --server "ESX NAME" --username "LOGIN" --password "PASS" --filename vmcreate.xml --schema vmcreate.xsd
Result:
Error creating VM 'myTestMachine':
SOAP Fault:
-----------
Fault string: InvalidArgument
Fault detail: InvalidArgument
Here are the XML file values:
<Name>myTestMachine</Name>
<Host>blabla</Host>
<Datacenter>blabla</Datacenter>
<Guest-Id>Linioch</Guest-Id>
<Datastore>blabla</Datastore>
<Disksize>2048</Disksize>
<Memory>256</Memory>
<Number-of-Processor>1</Number-of-Processor>
<Nic-Network></Nic-Network>
<Nic-Poweron>1</Nic-Poweron>
The values are correct cause I have checked them via other perl scripts.
Thank You in advance for Your help
Michal