Install VMware vSphere Perl SDK 7.0 on Ubuntu 22.04

1. Download the latest vSphere Perl SDK from vmware website. As of now the latest version is VMware-vSphere-Perl-SDK-7.0.0-16815913.x86_64.tar.gz.

2. Install the perl pre-requirement package.

sudo apt-get install libmodule-build-perl libssl-dev libarchive-zip-perl libclass-methodmaker-perl libuuid-perl libsoap-lite-perl liburi-perl libxml-libxml-perl libcrypt-ssleay-perl libpath-class-perl libsocket6-perl libio-socket-inet6-perl libnet-inet6glue-perl perl-doc

3. Untar the perl tarball.

tar -zxvf VMware-vSphere-Perl-SDK-7.0.0-16815913.x86_64.tar.gz

4. Install the SDK perl package.

administrator@nagios:~/vmware-vsphere-cli-distrib$ sudo ./vmware-install.pl
Creating a new vSphere CLI installer database using the tar4 format.

Installing vSphere CLI 7.0.0 build-16815913 for Linux.

You must read and accept the vSphere CLI End User License Agreement to
continue.
Press enter to display it.

[...]

Do you accept? (yes/no) yes

Thank you.

Not tested with Net::FTP version 3.11 at /usr/share/perl5/Net/INET6Glue/FTP.pm line 15.
somebody else already implements FTP IPv6 support - skipping Net::INET6Glue::FTP
In which directory do you want to install the executable files?
[/usr/bin]

Please wait while copying vSphere CLI files...

The installation of vSphere CLI 7.0.0 build-16815913 for Linux completed
successfully. You can decide to remove this software from your system at any
time by invoking the following command:
"/usr/bin/vmware-uninstall-vSphere-CLI.pl".

This installer has successfully installed both vSphere CLI and the vSphere SDK
for Perl.

The following Perl modules were found on the system but may be too old to work
with vSphere CLI:

Socket6  0.28 or newer

Enjoy,

--the VMware team
5. If you encounter problem starting cloud-init.service after install the vmware sdk. Just follow link to disable cloud-init if not using it.
 

Comments

skuppyJ said…
Thank you. Have you been able to figure out how to get rid of the "Socket6" error that remains? Even though it's installed this error still displays.