VMware

Instructions on how to install vCLI 32bit/64bit on Ubuntu 9.04

VERSION 3 Published

Created on: Sep 9, 2009 7:17 PM by lamw - Last Modified:  Sep 20, 2009 1:22 PM by lamw

Apparently VMware vCLI does not support Ubuntu 9.04 out of the box per Re: Installing vCLI on Ubuntu Server 9.04, but thanks to eparthuisot, it's actually only two packages that you need to install to get the latest version of vCLI installed on your minimal Ubunutu server.

Setup:
Ubuntu server 9.04 (32bit or 64bit)
VMware-vSphere-CLI-4.0.0-161974.i386.tar (32bit installer)
VMware-vSphere-CLI-4.0.0-161974.x86_64.tar (64bit installer)
libxml-libxml-perl
libclass-methodmaker-perl

Instructions:

0. Verify version of Ubuntu:

primp@ubuntu-test:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 9.04
Release:        9.04
Codename:       jaunty

Steps for installing on Ubuntu Server 9.04 32bit:


1. Download vCLI from VMware's site and upload via scp or other means to your Ubuntu system

2. Download and install libxml-libxml-perl and libclass-methodmaker-perl and libcrypt-ssleay-perl

primp@ubuntu-test:~$ sudo apt-get install libxml-libxml-perl
[sudo] password for primp:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  libxml-libxml-common-perl libxml-namespacesupport-perl libxml-sax-expat-perl libxml-sax-perl
The following NEW packages will be installed:
  libxml-libxml-common-perl libxml-libxml-perl libxml-namespacesupport-perl libxml-sax-expat-perl libxml-sax-perl
0 upgraded, 5 newly installed, 0 to remove and 51 not upgraded.
Need to get 523kB of archives.
After this operation, 2064kB of additional disk space will be used.
Do you want to continue [Y/n]? y
.......

primp@ubuntu-test:~$ sudo apt-get install libclass-methodmaker-perl
.......


primp@ubuntu-test:~$ sudo apt-install libcrypt-ssleay-perl 
.......

Note: If you're doing this as a regular user, you may need to use sudo or switch over to root to perform these elevated operations

3. Extract vCLI tar file

primp@ubuntu-test:~$ tar -zxvf VMware-vSphere-CLI-4.0.0-161974.i386.tar.gz
.......

4. Install vCLI

primp@ubuntu-test:~$ cd vmware-vsphere-cli-distrib/

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

Installing vSphere CLI.

Installing version 161974 of vSphere CLI


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

......
<stick with the defaults>
......

Please wait while copying vSphere CLI files...

The installation of vSphere CLI 4.0.0 build-161974 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.

Enjoy,


5. Verify vCLI

primp@ubuntu-test-32bit:~$ esxcfg-nas -l --server himalaya.primp-industries.com --username root
Enter password:

dlgCore-NFS-bigboi.VM-Backups is /exports/XXXXXX from A.B.C.D mounted

Steps for installing on Ubuntu Server 9.04 64bit:


1. Download vCLI from VMware's site and upload via scp or other means to your Ubuntu system

2. Download and install libxml-libxml-perl and libclass-methodmaker-perl

primp@ubuntu-test:~$ sudo apt-get install libxml-libxml-perl
[sudo] password for primp:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  libxml-libxml-common-perl libxml-namespacesupport-perl libxml-sax-expat-perl libxml-sax-perl
The following NEW packages will be installed:
  libxml-libxml-common-perl libxml-libxml-perl libxml-namespacesupport-perl libxml-sax-expat-perl libxml-sax-perl
0 upgraded, 5 newly installed, 0 to remove and 51 not upgraded.
Need to get 523kB of archives.
After this operation, 2064kB of additional disk space will be used.
Do you want to continue [Y/n]? y
.......

primp@ubuntu-test:~$ sudo apt-get install libclass-methodmaker-perl
.......

Note: If you're doing this as a regular user, you may need to use sudo or switch over to root to perform these elevated operations

3. Extract vCLI tar file

primp@ubuntu-test:~$ tar -zxvf VMware-vSphere-CLI-4.0.0-161974.x86_64.tar
.......

4. Install vCLI

primp@ubuntu-test:~$ cd vmware-vsphere-cli-distrib/

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

Installing vSphere CLI.

Installing version 161974 of vSphere CLI


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

......
<stick with the defaults>
......

Please wait while copying vSphere CLI files...

The installation of vSphere CLI 4.0.0 build-161974 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.

Enjoy,


5. Verify vCLI

primp@ubuntu-test-64bit:~$ esxcfg-nas -l --server himalaya.primp-industries.com --username root
Enter password:

dlgCore-NFS-bigboi.VM-Backups is /exports/XXXXXX from A.B.C.D mounted


and now you're on your way to using vCLI on Ubuntu!
Average User Rating
(1 rating)




Sep 17, 2009 8:32 AM cookieme  says:

Hi William.

I followed your document and started with a new fresh Ubuntu minimal server installation and after that I installed the two packages libxml-libxml-perl and libclass-methodmaker-perl. Next I installed vCLI and I was able to run vmware-cmd --help without issues.

However, when I tried to run the following:

vmware-cmd --server <ip_address> 'datastore1 test1/test1.vmx' getstate

I get the following error:

"Hiding the command line arguments: symbol lookup error: /usr/lib/perl/5.10/auto/Crypt/SSLeay/SSLeay.so: undefined symbol: Perl_Tstack_sp_ptr"

I installed package libssl-dev but this did not help. I assume that it is still necessary to install the following packages:

Linker utility (binutils package)
GNU C libraries (glibc or libc6 package)
XML DOM/SAX libraries (libxml2 package)
Perl documentation (perl-doc) package
Perl URI library (liburi-perl package)

As I wrote in my post: http://communities.vmware.com/thread/230428?tstart=0

Any ideas?

Sep 17, 2009 9:25 PM lamw  says: in response to: cookieme

I'm using 9.04-server-amd64.iso downloaded at: http://ftp.ucsb.edu/pub/mirrors/linux/ubuntu/jaunty/ubuntu-9.04-server-amd64.iso


=========================================================================
William Lam
VMware vExpert 2009
VMware ESX/ESXi scripts and resources at: http://engineering.ucsb.edu/~duonglt/vmware/
vGhetto Script Repository
VMware Code Central - Scripts/Sample code for Developers and Administrators
VMware Developer Comuunity
Twitter: @lamw

http://engineering.ucsb.edu/~duonglt/vmware/vexpert_silver_icon.jpg

If you find this information useful, please award points for "correct" or "helpful".

Sep 18, 2009 4:53 AM cookieme  says: in response to: lamw

I'm using ubuntu-9.04-server-i386.iso downloaded from Ubuntu's website.

Sep 18, 2009 7:01 AM lamw  says: in response to: cookieme

Looks like 64bit is ubuntu-9.04-server-amd64.iso and 32bit is ubuntu-9.04-server-i386.iso

If I have some time this weekend, I'll try the 32bit installer and see where that goes.


=========================================================================
William Lam
VMware vExpert 2009
VMware ESX/ESXi scripts and resources at: http://engineering.ucsb.edu/~duonglt/vmware/
vGhetto Script Repository
VMware Code Central - Scripts/Sample code for Developers and Administrators
VMware Developer Comuunity
Twitter: @lamw

http://engineering.ucsb.edu/~duonglt/vmware/vexpert_silver_icon.jpg

If you find this information useful, please award points for "correct" or "helpful".

More by lamw

VMware Developer

SDKs, APIs, Videos, Learn and much more in the Developer community.

Learn More

Developer Sample Code

Increase your developer productivity with VMware API sample code.

Learn More

VMworld Sessions & Labs

Online access to the latest VMworld Sessions & Labs and online services.

Learn more

Purchase PSO Credits Online

Purchase credits to redeem training and consulting services online.

Buy Now

Community Hardware Software

View reported configurations or report your own.

Learn More

VMware vSphere

Come witness the next giant leap in virtualization.

Register Today

Communities