How to install VMware vSphere SDK on Debian GNU Linux


I wanted to setup Nagios monitoring for my VMware host and found this nifty little Perl plugin check_vmware_api (you can find it here).

In order to run this plugin you will need the VMware vSphere SDK for Perl.
You can search for it on VMware’s download page here.

I searched for “vsphere sdk” and choose the first result VMware vSphere SDK for Perl 5.5 and downloaded the x64 Linux version.
The problem here is that it’s not originally for Debian but for Ubuntu so we’ll have to do some adjustments later on.

1. We need to make sure we have the following packages.

apt-get install build-essential gcc uuid uuid-dev perl libssl-dev perl-doc liburi-perl libxml-libxml-perl libcrypt-ssleay-perl

2. When you have downloaded the vSphere SDK for Perl we need to untar it, do some modifications then install.

tar xvf VMware-vSphere-Perl-SDK-5.5.0-1384587.x86_64.tar.gz
cd vmware-vsphere-cli-distrib

3. Do the following changes, open in your favored text editor (I’m using nano)


Change this line

if ( direct_command("cat /etc/*-release | grep -i ubuntu") || direct_command("cat /proc/version | grep -i ubuntu") ) {


if ( direct_command("cat /etc/*-release | grep -i debian") || direct_command("cat /proc/version | grep -i debian") ) {

4. This step is pretty much optional but to prevent recieving some warnings because of undefined exportvariables you can set the following or just ignore this step.

export http_proxy=
export ftp_proxy=

5. Now you should be good to go, so go on and execute the installation.


Thanks for reading and please comment if you have any corrections or questions


Leave a Reply

Your email address will not be published.