The installer of vCLI for Linux platform is a Perl script, vmware-install.pl, supported for use on default installations.
The VI Perl Toolkit installer for Linux distributions requires Perl 5.8, plus these libraries: 
  • Linker utility (binutils package) 
  • GNU C libraries (glibc or libc6 package) 
  • OpenSSL library (libssl-dev package) 
  • XML DOM/SAX libraries (libxml2 package) 
  • Some perl modules 

Install Ubuntu Operating System 
Install vsftpd or any other ftp client so that builds and perl modules can be put in the machine.  One can download the builds etc directly on the ubuntu machine also.

Installing OpenSSL

Ubuntu uses apt (advanced packaging tool) to keep a local repository of libraries up-to-date. The libssl-dev and libxml2-dev packages are not available for install until this local repository is updated via the 'apt-get update' command. Before running apt to update the repository (and subsequently, install the OpenSSL and libxml2 library), the system must be properly configured and connected to the Internet.

Step 
From the terminal console execute following command:
  • sudo apt-get update
  • sudo apt-get install libssl-dev

Installing XML DOM/SAX libraries

From the terminal console execute following command:
  • sudo apt-get update
  • sudo apt-get install libxml2-dev

Installing Pre-Requisite Perl Module
Following module needs to be installed separately.
  • Class::MethodMaker 2.08
  • Crypt::SSLeay 0.51
  • LWP 5.8.05
  • XML::LibXML 1.58
  • Archive::Zip

Class::MethodMaker
Execute the following commands to install module Class-MethodMaker-2.15.tar.gz
  • tar -zxvf Class-MethodMaker-2.15.tar.gz
  • cd Class-MethodMaker-2.15
  • perl Makefile.PL
  • make
  • make install

Crypt::SSLeay
Execute the following commands to install module Crypt-SSLeay-0.57.tar.gz
  • tar -zxvf Crypt-SSLeay-0.57.tar.gz
  • cd Crypt-SSLeay-0.57
  • perl Makefile.PL
  • Make
  • Make install

LWP
Execute the following commands to install module libwww-perl-5.825.tar.gz:
  • tar -zxvf libwww-perl-5.825.tar.gz
  • cd libwww-perl-5.825
  • perl Makefile.PL
  • make
  • make install

XML::LibXML
Execute the following commands to install module XML-NamespaceSupport-1.09.tar.gz:
  • tar -zxvf XML-NamespaceSupport-1.09.tar.gz
  • cd XML-NamespaceSupport-1.09
  • perl Makefile.PL
  • make
  • make install
 
Execute the following commands to install module XML-LibXML-Common-0.13.tar.gz:
  • tar -zxvf XML-LibXML-Common-0.13.tar.gz
  • cd XML-LibXML-Common-0.13
  • perl Makefile.PL
  • make
  • make install
 
Execute the following commands to install module XML-SAX-0.96.tar.gz:
  • tar -zxvf XML-SAX-0.96.tar.gz
  • cd XML-SAX-0.96
  • perl Makefile.PL
  • make
  • make install
 
Execute the following commands to install module XML-LibXML-1.69.tar.gz:
  • tar -zxvf XML-LibXML-1.69.tar.gz
  • cd XML-LibXML-1.69
  • perl Makefile.PL
  • make
  • make install
Archive::Zip
Execute the following commands to install module Archive-Zip-1.26.tar.gz:
  • tar -zxvf Archive-Zip-1.26.tar.gz
  • cd Archive-Zip-1.26
  • perl Makefile.PL
  • make
  • make install

Installing vCLI 
Download the latest RCLI build.

1 tar -zxvf VMware-vSphere-CLI-.i386.tar.gz it will create the vmware-vsphere-vcli-distrib folder

2 From the terminal console execute following command:
a) cd vmware-vsphere-vcli-distrib.
b) perl vmware-install.pl


Test Cases

1 vmware-cmd perl vmware-cmd  -H -U root -P myuser -l Pass
2 vicfg-vmknic perl vicfg-vmknic -url https:// /sdk -username root --password myuser  -l Pass
3 vicfg-nics perl vicfg-nics -url https:///sdk --username root --password myuser -l Pass
4 vifs perl vifs -url https:///sdk --username root --password myuser -C Pass

3 comments:

  1. Anonymous said...

    You should try installing those modules by running cpan. The way you're doing it is the old/hard way.

  2. jk said...

    I am getting an error whle installing like

    http_proxy not set. please set environment variable 'http_proxy' e.g. export
    http_proxy=http://myproxy.mydomain.com:0000 .

    ftp_proxy not set. please set environment variable 'ftp_proxy' e.g. export
    ftp_proxy=http://myproxy.mydomain.com:0000 .

  3. Anonymous said...

    type this before running the installer script:

    export http_proxy=
    export ftp_proxy=



Copyright 2009 InterraIT template by Blogcrowds.