From: John C. <jc...@vm...> - 2006-11-03 00:19:03
|
Hi Mike, =20 These issues are definitely bugs in this sample. Can you copy this information and file a bug at http://sourceforge.net/tracker/?atid=3D878638&group_id=3D176787&func=3Dbr= owse =20 I will follow up with the person who wrote this sample and get it = resolved. =20 =20 Thanks. =20 =20 ________________________________ From: vip...@li... [mailto:vip...@li...] On Behalf Of Hayward, Michael A (Mike) Sent: Thursday, November 02, 2006 3:42 PM To: vip...@li... Subject: [Viperltoolkit-user] Error running vmprovision.pl sample =20 I'm attempting to create a VM using the perl toolkit with the sample. = The first invocation tries to take a default VM config and complains about = args. It appears though that the args are the same as the example, only = modified to run against a esx machine in this environment. The second example also fails, but this time with a parsing error. =20 - Mike =20 # ./vmprovision.pl --service_url http://donjulio/sdk/vimService --userid = root --password rootpassword --vmname PerlVM --vmhost donjulio --datacenter DefaultDatacenter --operation create =20 ERROR: Missing --datacenter or --disksize name =20 USAGE: vmprovision.pl --service_url <SDK service URL> --userid <user login> --password <password> --vmname <vm name> --vmhost <vm host name> = --operation [create | clone] [--datacenter <datacenter name> --vmname_destination = <name of new vm clone> --vmhost_destination <host of new vm clone> --datastore <datastore name> --disksize <vm disk size in KB> --guestid <guest = operating system identifier> --memory <vm memory in MB> --num_cpus <number of = virtual processors in vm> --nic_network <name of nic> --nic_poweron <[0|1] to = disable or enable network adapter>] =20 Examples: vmprovision.pl --service_url https://localhost/sdk/vimService = --userid administrator --password mypassword --vmname new-vm --vmhost myhost --datacenter DefaultDatacenter --operation create =20 vmprovision.pl --service_url https://localhost/sdk/vimService = --userid administrator --password mypassword --vmname new-vm --vmhost myhost --datacenter DefaultDatacenter --operation create --datastore ds1 = --disksize 2097152 --guestid winNTGuest --memory 256 --num_cpus 2 --nic_network "VM Network" --nic_poweron 0 vmprovision.pl --service_url https://localhost/sdk/vimService = --userid administrator --password mypassword --vmname vm1 --vmhost host1 --vmname_destination vm2 --vmhost_destination host1 --operation clone =20 ---------------------------------------------------------------------- =20 # ./vmprovision.pl --service_url http://donjulio/sdk/vimService --userid = root --password rootpassword --vmname PerlVM --vmhost donjulio --datacenter DefaultDatacenter --operation create --datastore local --disksize = 2097152 --guestid winNTGuest --memory 256 --num_cpus 1 --nic_network "VM = Network" --nic_poweron 0 SOAP request error: at /usr/lib/perl5/site_perl/5.8.8/VMware/VIStub.pm = line 168. =20 |