2011-12-29

Internet Access is needed to Install vCLI 5.0

I came a cross a case this week that I thought would be worthwhile sharing.

A client needed to install the vCLI on a Linux machine, and this machine was behind a firewall that was blocking access to the internet.

image

The process was supposed to be very simple. Download the Tarball, copy it to the machine, untar and then install. But during the install this message popped up:

Do you accept? (yes/no) yes

Thank you.

ping: unknown host www.vmware.com
Network is unavailable, please configure the network first otherwise please
install the following modules manually for use by vSphere CLI:

Archive::Zip 1.20 or newer
Compress::Zlib 2.005 or newer
Compress::Raw::Zlib 2.017 or newer
version 0.78 or newer
IO::Compress::Base 2.005 or newer
IO::Compress::Zlib::Constants 2.005 or newer
Class::MethodMaker 2.10 or newer
HTML::Parser 3.60 or newer
UUID 0.03 or newer
Data::Dump 1.15 or newer
SOAP::Lite 0.710.08 or newer
URI 1.37 or newer
LWP 5.805 or newer
LWP::Protocol::https 5.805 or newer
VMware::VIRuntime 0.9 or newer
WSMan::StubOps 0.1 or newer

Ok I get it – the installation wanted access to the web that would download those modules. Due to my predicament with no internet on this machine – I downloaded the all the Perl modules on another machine and copied them over.

And by the way the easiest way to download the modules is by using CPAN, but in this case - they had to be downloaded and installed manually – which by the way this is the process:

  • Download the Module
  • Unpack the tarball
  • cd <package_name>
  • perl Makefile.PL
  • make
  • make test
  • make install

But even after installing the dependencies – vCLI still would not install – either it would ask for a proxy – or throw a message simlar to the one below.

SOAP::Lite 0.710.08 or newer
LWP 5.805 or newer
LWP::Protocol::https 5.805 or newer
VMware::VIRuntime 0.9 or newer
WSMan::StubOps 0.1 or newer

Thanks to William Lam – he pointed me to a workaround that allows for the installation to continue without internet access. 

The solution is to comment out a few lines in the install script – which will allow the installation to continue. I understand that there is already a feature request to change this behavior in the next version.