vSphere SDK for Perl Installation Guide ESXi 6.0 vCenter Server 6.0 This document supports the version of each product listed and supports all subsequent versions until the document is replaced by a new edition. To check for more recent editions of this document, see http://www.vmware.com/support/pubs.
vSphere SDK for Perl Installation Guide You can find the most up-to-date technical documentation on the VMware Web site at: http://www.vmware.com/support/ The VMware Web site also provides the latest product updates. If you have comments about this documentation, submit your feedback to: docfeedback@vmware.com Copyright © 2007–2015 VMware, Inc. All rights reserved. This product is protected by U.S. and international copyright and intellectual property laws.
Contents About This Book 5 1 Installing SDK for Perl 7 Installation Overview 7 Overview of Linux Installation Process 8 Installing the SDK for Perl Package on Red Hat Enterprise Linux 10 Installing Required Prerequisite Software for Red Hat Enterprise Linux 10 Installing the SDK for Perl Package on RHEL (No Internet Access) 10 Installing SDK for Perl on Linux Systems with Internet Access 11 Installing Required Prerequisite Software for Linux Systems with Internet Access 11 Installing the SDK for Perl Pac
vSphere SDK for Perl Installation Guide 4 VMware, Inc.
About This Book This book, vSphere SDK for Perl Installation Guide, provides information about installing the vSphere SDK for Perl. VMware® provides several SDK products, each of which targets different developer communities and platforms. This guide is for administrators who want to run vSphere SDK for Perl scripts on vSphere systems and for developers who want to develop vSphere SDK for Perl scripts for vSphere systems.
vSphere SDK for Perl Installation Guide Intended Audience This book is intended for anyone who installs the vSphere SDK for Perl. All users must understand how to modify and run Perl scripts on the platform of their choice. Users who want to install the SDK for Perl from source code must also understand the source code installation process. VMware Technical Publications Glossary VMware Technical Publications provides a glossary of terms that might be unfamiliar to you.
2 Installing vSphere SDK for Perl 2 You can install a vSphere SDK for Perl package on a Linux or a Microsoft Windows system, or deploy the vSphere Management Assistant (vMA) on an ESXi host.
Getting Started with vSphere Command-Line Interfaces Platform Installation Process Red Hat Enterprise Linux You must install required software. See “Installing Required Prerequisite Software for Red Hat Enterprise Linux” on page 18. The installer for RHEL prompts you whether you want to install other missing modules from the Internet or from the package. SLES and Ubuntu If you have Internet access, you can have the installer download Perl modules from CPAN.
Chapter 2 Installing vSphere SDK for Perl Crypt‐SSLeay‐0.55 (0.55‐0.9.7 or 0.55‐0.9.8) IO‐Compress‐Base‐2.037 Compress‐Zlib‐2.037 IO‐Compress‐Zlib‐2.037 Compress‐Raw‐Zlib‐2.037 Archive‐Zip‐1.28 Data‐Dumper‐2.121 XML‐LibXML‐1.63 libwww‐perl‐5.805 LWP‐Protocol‐https‐6.02 XML‐LibXML‐Common‐0.13 XML‐NamespaceSupport‐1.09 XML‐SAX‐0.16 Data‐Dump‐1.15 URI‐1.37 UUID‐0.03 SOAP‐Lite‐0.710.08 HTML‐Parser‐3.60 version‐0.
Getting Started with vSphere Command-Line Interfaces 4 The installer proceeds depending on the Linux distribution. Linux distribution Installer behavior RHEL (No Internet access) On RHEL, the installer allows you to install Perl modules with CPAN if Internet access is available. If no Internet access is available, and a module is not currently on your system, the installer installs it. If a different version of a module is found, the installer does not install it and proceeds with installation.
Chapter 2 Installing vSphere SDK for Perl Required Software If required software is not installed, the vCLI installer stops. You can install prerequisites using yum, the RHEL package installer (recommended), or from the installation DVD, as follows: RHEL 6.3 32 bit yum install e2fsprogs-devel libuuid-devel yum install perl-XML-LibXML RHEL 6.3 64 bit yum install e2fsprogs-devel libuuid-devel yum install glibc.
Getting Started with vSphere Command-Line Interfaces After you install the vSphere SDK for Perl, you can test the installation by running a command from the command prompt. See “Running Host Management Commands from a Linux System” on page 37. Installing vSphere SDK for Perl on Linux Systems with Internet Access Before you can install the vSphere SDK for Perl package on a Linux system with Internet access, that system must meet following prerequisites. Internet access.
Chapter 2 Installing vSphere SDK for Perl Installing the vSphere SDK for Perl Package on a Linux System with Internet Access Install the vSphere SDK for Perl package and run a command to verify installation was successful. To install vSphere SDK for Perl 1 Log in as root. 2 Untar the vSphere SDK for Perl binary that you downloaded. tar –zxvf VMware-vSphere-CLI-6.X.X-XXXXX.i386.tar.gz A vmware-vsphere-vcli-distrib directory is created.
Getting Started with vSphere Command-Line Interfaces Installing and Uninstalling vSphere SDK for Perl on Windows Before you can run vSphere SDK for Perl commands from your Windows system, you must install the vSphere SDK for Perl package and test the installation by running a command. The vSphere SDK for Perl installation package for Windows includes the ActivePerl runtime from ActiveState Software and required Perl modules and libraries.
Chapter 2 Installing vSphere SDK for Perl See the Crypt::SSLEay documentation for details on setup. CAUTION If the two environment variables HTTPS_CA_FILE and HTTPS_CA_DIR are set incorrectly or if a problem with the certificate exists, vCLI commands do not complete, and do not print error or warning messages. Use HTTPS_DEBUG for troubleshooting before running vCLI commands. Deploying vMA As an alternative to a package installation, you can deploy vMA on an ESXi host and run vCLI commands from there.
Getting Started with vSphere Command-Line Interfaces 24 VMware, Inc.