Quantcast
Channel: VMware Communities : Discussion List - vSphere SDK for Perl
Viewing all articles
Browse latest Browse all 1577

Creation of the virtual machine on a cluster via vmcreate.pl script

$
0
0

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:

 

Create VM instance on Cluster

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 => Create VM instance on Cluster    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


Viewing all articles
Browse latest Browse all 1577

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>