Sunday, July 12, 2009

VMware Perl toolkit tutorial (1) installation

Well, when I first study the vmware perl, it was called VI Perl Toolkit. After the vSphere 4 was released, the name has changed to vSphere SDK for Perl 4.0. When I went through all the installation steps, I found there was no much difference from the older version to the new version.
VMware Perl is just like other perl version, except it has VMware specific components. So don't think it too complicate. Compared to other perl, the grammar, the infrastructure and the standard library should be the same.
The vmware perl toolkit can be installed on a standalone linux box, or as a virtual machine (VIMA). I do not like VIMA since it does not give me the flexibility. I like to install the vmware perl toolkit on standalone linux box, since I can bundle other software with the vmware perl toolkit together.
So, here I will introduce how to install the vmware perl toolkit on linux, or I should say vSphere SDK perl 4.0 in the new release.
1. Supported Linux Platforms
Red Hat Enterprise Linux (RHEL) 5.2 (64 bit)
Red Hat Enterprise Linux (RHEL) 5.2 (32 bit)
SUSE Enterprise Server 10 SP1 32 bit
Ubuntu 8.04 32 bit

2. Preparation:
Download the vSphere SDK for Perl
Check Connectivity, make sure that the connection from your development system
to the target ESX/ESXi or vCenter Server system is working.

3. Installation:
(install OpenSSL library if the linux does not have)
To install the vSphere SDK for Perl
3.1 Untar the vSphere SDK for Perl binary
3.2 Launch the installer: //vmware-install.pl
3.3 When prompted, read the license agreement.
3.4 Specify an installation directory, or press Enter to accept the default, which is /usr/bin.
When the installation process completes: A success message appears. The installer lists different version numbers for required modules. The prompt returns to the shell prompt.
The defaults utility applications and samples sub directories are in the following locations:
Utility applications – /usr/lib/vmware-vcli/apps
Sample scripts – /usr/share/doc/vmware-vcli/samples

4. Uninstall the vSphere SDK for Perl on Linux
In order to uninstall the vSphere SDK for Perl, run the vmware-uninstall-vSphereCLI.pl script:
//bin/vmware-uninstall-vSphereCLI.pl

No comments:

Post a Comment