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

Installing vCLI  and VI Perl Toolkit on linux platforms has been the pain point of many users. We are able to install on Suse and will be coming up with future post for Fedora and Ubuntu.

The installer of vCLI on SUSE Enterprise Server 10 64-bit is a Perl script, vmware-install.pl, supported for use on default installations of SUSE Enterprise server.
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 (Listed below)

For Installting the modules on SUSE 10 machine we first need to install C/C++ installer modules during SUSE installation.



Installing OpenSSL
The SUSE Enterprise 10 DVD includes the OpenSSL package on the installation DVD.
Insert the SUSE installation DVD
From the terminal console execute following command:
a) cd /media/SLES10SP_001/suse/x86_64
b) rpm -i openssl-devel-0.9.8a-18.26.x86_64.rpm


Installing XML DOM/SAX libraries

The SUSE Enterprise 10 DVD includes the libxml2 package on the installation DVD.
Step Description
1 Insert the SUSE installation DVD
2 From the terminal console execute following command:
a) cd /media/SLES10SP_001/suse/x86_64.
b) rpm -i readline-devel-5.1-24.19.x86_64.rpm
c) rpm -i libxml2-devel-2.6.23-15.8.x86_64.rpm

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



Using the same procedure you can install for 32bit. 




Enjoy ... 



Copyright 2009 InterraIT template by Blogcrowds.