VMware {code} Community
jwmarrott
Contributor
Contributor

Perl API Silent Install

Is there any way to automate the Perl API install? I want to add it to my kickstart so it is part if the initial build. Any ideas?

7 Replies
SaranshG
Enthusiast
Enthusiast

Please refer the Miscellaneous Issues section of the following link:

http://www.vmware.com/support/developer/scripting-API/API-2.3-Release-Notes.html

If you have some further queries, revert back those to me.

Reply
0 Kudos
jwmarrott
Contributor
Contributor

It appears that that is referring to GSX. My bad, I should have specified earlier that this is an ESX kickstart I am referrring to. How can the Perl API be silently or automatically installed?

Reply
0 Kudos
kri-2
Hot Shot
Hot Shot

anything new here? We need to install the api silent on ESX too.

Reply
0 Kudos
jwmarrott
Contributor
Contributor

I hacked the vmware-install.pl. I am not great at perl but this was my attempt to include the answers in the install. I had it accept defaults.

Send me a message and I will email it to you.

Reply
0 Kudos
kri-2
Hot Shot
Hot Shot

Hi froboy,

i thought about that myself and will do so...

thanks email is not needed.

Reply
0 Kudos
kri-2
Hot Shot
Hot Shot

For those still looking for a silent install solution

-edit vmware-install.pl

-find the line " $gOption\{'default'} = 0;" and set the value to 1;

-find the function call "show_EULA();" and uncomment it using #

=>

gOption\{'default'} = 1;

#show_EULA();

!

Do not change gOption\{'eula_agreed'} = 0; (this would be to easy! Smiley Happy as changing it to 1 will lead to an endless loop (looks like a bug in the routine).

D3DAiM
Contributor
Contributor

Thank for figuring this out!

And to complete the unattended install for Perl SDK, here's the one-liner to modify:

perl -i -0pe 's/(?<a>\$gOption.*)(0;)(.*\n.*)(show)/$+{a}0;\3#\4/' /tmp/vmware-vsphere-cli-distrib/bin/vmware-uninstall-vSphere-CLI.pl

And to run/install:

perl ./vmware-vsphere-cli-distrib/vmware-install.pl <<< yes

Enjoy
Reply
0 Kudos