VMware {code} Community
listener
Contributor
Contributor

problem running vmcreate.pl

I am having a problem running the vmcreate.pl script. The url is my Virtual Center Server. I am running the script from my desktop that has Virtual Center and the perl toolkit on it. Is there something else I was suppose to install? Thanks.

C:\Program Files\VMware\VMware VI Perl Toolkit\Perl\apps\vm>perl vmcreate.pl --u

rl https://10.60.17.122:443/sdk/webService -username admin -password password --

filename vm.xml --schema vmcreate.xsd

Error connecting to server at 'https://10.60.17.122:443/sdk/webService':

SOAP request error:

SoapClient::request('SoapClient=HASH(0x390da44)', 'RetrieveServiceConten

t', '&lt;_this type="ServiceInstance"&gt;ServiceInstance<!_this>\x') called at C:/P

rogram Files/VMware/VMware VI Perl Toolkit/Perl/lib/VMware/VIM2Stub.pm line 2672

1

0 Kudos
3 Replies
jnhall
Enthusiast
Enthusiast

This is the type of message you would see if your server was configured for http rather than https access, or if you misspelled 'sdk'. Other problems like wrong username/password, wrong IP, or wrong port, will produce different errors.

0 Kudos
listener
Contributor
Contributor

I get the same error if I use http without the 443 too.

Are you saying that if I configure the virtual center server for https access I should be ok?

thanks

0 Kudos
jnhall
Enthusiast
Enthusiast

If your server is set up for https, and you use the URL in your original post, it should work. If it doesn't, I'll make some more suggestions.

0 Kudos