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?
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.
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?
anything new here? We need to install the api silent on ESX too.
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.
Hi froboy,
i thought about that myself and will do so...
thanks email is not needed.
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!
as changing it to 1 will lead to an endless loop (looks like a bug in the routine).
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
