vSphere SDK for Perl Installation Guide ESXi 6.5 vCenter Server 6.5 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–2016 VMware, Inc. All rights reserved. Copyright and trademark information. VMware, Inc. 3401 Hillview Ave. Palo Alto, CA 94304 www.vmware.com 2 VMware, Inc.
Contents About This Book 5 1 Installing vSphere SDK for Perl 7 Installation Overview 7 Overview of Linux Installation Process 8 Installing the vCLI Package on Red Hat Enterprise Linux 10 Installing Required Prerequisite Software for Red Hat Enterprise Linux 11 Installing the vCLI Package on RHEL with No Internet Access 11 Installing vCLI on Linux Systems with Internet Access 12 Installing Prerequisite Software for Linux Systems with Internet Access 12 Install the vCLI Package on a Linux System with Inter
vSphere SDK for Perl Installation Guide 4 VMware, Inc.
About 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. Intended Audience This book is intended for anyone who installs the vSphere SDK for Perl.
vSphere SDK for Perl Installation Guide 6 VMware, Inc.
Installing vSphere SDK for Perl 1 You can install a vCLI package on a Linux or a Microsoft Windows system, or use vCLI as part of the vSphere Management Assistant that can be deployed on an ESXi host. The vCLI installer installs both vSphere SDK for Perl and vCLI.
vSphere SDK for Perl Installation Guide The vCLI installer installs both vSphere SDK for Perl and vCLI because many vCLI commands run on top of the vSphere SDK for Perl. The content of the installer package differs for different platforms. Platform Installation Process Windows You must install required software. The installation package includes vCLI and vSphere SDK for Perl. Red Hat Enterprise Linux You must install required software.
Chapter 1 Installing vSphere SDK for Perl 2 If the required software is found, the installer proceeds. Otherwise, the installer stops and informs you that you must install the software. See “Installing Required Prerequisite Software for Red Hat Enterprise Linux,” on page 11 and “Installing Prerequisite Software for Linux Systems with Internet Access,” on page 12 for instructions. 3 The installer checks whether the following Perl modules are found, and whether the correct version is installed.
vSphere SDK for Perl Installation Guide Earlier versions of libwww-perl include the LWP-Protocol-https module. More recent versions of libwww-perl do not include the LWP-Protocol-https module and you must install that module. Note If you intend to run vCLI commands with SSL certification, verify that LWP::UserAgent 6.00 or later is installed. The installer does not check this module, and earlier versions do not work with SSL. 4 The installer proceeds depending on the Linux distribution.
Chapter 1 Installing vSphere SDK for Perl Installing Required Prerequisite Software for Red Hat Enterprise Linux Prerequisite software on RHEL includes required software and recommended Perl modules. Required Software If required software is not installed, the vCLI installer stops. You can install the prerequisite software by using yum, the RHEL package installer, or from the installation DVD, as follows. Platform Installation RHEL 6.6 64-bit yum install e2fsprogs-devel libuuid-devel yum install glibc.
vSphere SDK for Perl Installation Guide Procedure 1 Untar the vCLI binary that you downloaded. tar –zxvf VMware-vSphere-CLI-6.X.X-XXXXX.XXXX.x86_64.tar.gz A vmware-vsphere-vcli-distrib directory is created. 2 Log in as superuser and run the installer. //sudo vmware-vsphere-cli-distrib/vmware-install.pl 3 To accept the license terms, enter yes and press Enter. 4 To install Perl modules locally, enter yes and press Enter.
Chapter 1 Installing vSphere SDK for Perl Platform Installation RHEL 6.6 64-bit Find the required modules on the installation DVD, or use yum to install them. yum install e2fsprogs-devel libuuid-devel yum install glibc.i686 yum install perl-XML-LibXML RHEL 7.1 64-bit Find the required modules on the installation DVD, or use yum to install them. yum install e2fsprogs-devel libuuid-devel openssl-devel perl-devel yum install glibc.i686 zlib.i686 yum install perl-XML-LibXML libncurses.so.
vSphere SDK for Perl Installation Guide Install the vCLI Package on a Linux System with Internet Access You can install the vCLI package and run a command to verify that installation was successful. Prerequisites Verify that you have installed the required prerequisite software. Procedure 1 Log in as root. 2 Untar the vCLI binary that you downloaded. tar –zxvf VMware-vSphere-CLI-6.X.X-XXXXX.i386.tar.gz A vmware-vsphere-vcli-distrib directory is created.
Chapter 1 Installing vSphere SDK for Perl Uninstall the vCLI Package on Linux You can use a script included in the installation to uninstall the vCLI package. Procedure 1 Navigate to the directory where you installed vCLI. The default directory is /usr/bin. 2 Run the vmware-uninstall-vSphere-CLI.pl script. The command uninstalls vCLI and the vSphere SDK for Perl.
vSphere SDK for Perl Installation Guide Uninstall the vCLI Package on Windows You can uninstall the vCLI package by following the standard Windows procedure. Procedure 1 Find the option for adding and removing programs on the Windows operating system that you are using. 2 In the panel that appears, select VMware vSphere CLI and click Remove. 3 Click Yes when prompted. The system uninstalls vCLI and vSphere SDK for Perl.
Index E enable certificate verification 16 G glossary 5 I installation Linux process overview 8 overview 7 Red Hat Enterprise Linux 10 Red Hat Enterprise Linux prerequisites 11 Red Hat Enterprise Linux with no Internet access 11 remove previous RHEL versions 11 vCLI prerequisite software on Linux with Internet access 12 vCLI on Windows 15 vCLI on Linux with Internet access 12 vCLI on RHEL with no Internet access 11 installing vCLI on Linux with Internet access 14 vCLI package on Windows 15 intended audie
vSphere SDK for Perl Installation Guide 18 VMware, Inc.