VMware Cloud Community
cookieme
Enthusiast
Enthusiast

Installing vCLI on Ubuntu Server 9.04

Hi

I not very familiar with Linux/ UNIX, but I have setup an Ubuntu Server 9.04 minimal install as a VM and I am trying to install vCLI. I went through the manual and this particular Ubuntu version is not on the supported list, so I went ahead and first installed all the pre-requisites:

- 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)

- libssl-dev

After installing the above I ran the following commands:

untar -xf vmware_vcli.tar.gz

cd vmware-vsphere-cli-distrib

sudo ./vmware-install.pl

It asks me if I want to overwrite some perl modules, so I answer the default yes and then the installer finishes successfully.

However, when I cd /usr/bin and try to run any command such as vmware-cmd I get the following error:

/usr/bin/perl: symbol lookup error: /usr/lib/perl/5.10/auto/XML/LibXML/Common/Common.so: undefined symbol: Perl_Tstack_sp_ptr

What am I doing wrong?

Thanks

Reply
0 Kudos
23 Replies
lamw
Community Manager
Community Manager

There are probably some dependencies that are missing, hard to say which and it's not a fun game to go through and figure out exactly what is broken. I would highly recommend using a supported Linux OS for vCLI OR look into using VMware vMA which is just a RHEL 5 virtual appliance that has vCLI and the vSphere SDK for Perl installed that you can import within 5min and start using.

=========================================================================

William Lam

VMware vExpert 2009

VMware ESX/ESXi scripts and resources at:

VMware Code Central - Scripts/Sample code for Developers and Administrators

VMware Developer Comuunity

Twitter: @lamw

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

Reply
0 Kudos
cookieme
Enthusiast
Enthusiast

Thanks William! But I can't use VIMA or vMA if you remember my posts a while back, so that is why I've taken the steps to creating my own ghetto management assistant using Ubuntu. However, I'm struggling with the installation of vCLI.

If anyone knows how to install vCLI on Ubuntu Server 9.04 minimal installation then please help me out.

Thanks

Reply
0 Kudos
vincentho
VMware Employee
VMware Employee

You need to install this dependency module XML-LibXML-Common-0.13 for Ubuntu server 9.04 version.

cookieme
Enthusiast
Enthusiast

You need to install this dependency module XML-LibXML-Common-0.13 for Ubuntu server 9.04 version.

vincentho thanks for your reply. I'm just getting my feet wet with both Ubuntu and vCLI. Can you please tell what the name is of the package?

I tried sudo apt-get install xml-libxml-common-0.13 but it wasn't found.

Also, maybe you could tell me the "correct" steps to installing the necessary pre-requisites and vCLI? I'm not sure if what I wrote in my first post is the correct way of doing it.

Thanks

Reply
0 Kudos
vincentho
VMware Employee
VMware Employee

The module is XML-LibXML-Common and can be downloaded from CPAN:

After downloading it, you can untar and install the module as follows:

> tar -xzvf>

> perl Makefile.PL

> make

> make install

cookieme
Enthusiast
Enthusiast

The module is XML-LibXML-Common and can be downloaded from CPAN:

After downloading it, you can untar and install the module as follows:

> tar -xzvf>

> perl Makefile.PL

> make

> make install

Hi again I followed your steps, but when I try something like vmware-cmd I still get the same error message as in my first post

Reply
0 Kudos
vincentho
VMware Employee
VMware Employee

That's strange. Is it the same message or different complain now ? Did the module install successfully ? Did you install as root user ?

Reply
0 Kudos
cookieme
Enthusiast
Enthusiast

That's strange. Is it the same message or different complain now ? Did the module install successfully ? Did you install as root user ?

Yes, I had to run your last command with sudo, i.e. sudo make install.

Sorry I don't know how to copy the output to textfile, so here are screenshots of the process.

Reply
0 Kudos
eparthuisot
Contributor
Contributor

Hello,

I use vCLI on Ubuntu 9.04. FOr this install libxml-libxml-perl, libclass-methodmaker-perl end in option for documentation perl-doc, that's all !!!!

Regards .

Reply
0 Kudos
lamw
Community Manager
Community Manager

eparthuisot,

Thanks for the info, I've verified that those are the only two packages needed and I've also written up a small doc to outline the steps at:

=========================================================================

William Lam

VMware vExpert 2009

VMware ESX/ESXi scripts and resources at:

VMware Code Central - Scripts/Sample code for Developers and Administrators

VMware Developer Comuunity

Twitter: @lamw

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

Reply
0 Kudos
cookieme
Enthusiast
Enthusiast

Hello,

I use vCLI on Ubuntu 9.04. FOr this install libxml-libxml-perl, libclass-methodmaker-perl end in option for documentation perl-doc, that's all !!!!

Regards .

Hi eparthuisot

Can you please tell me exactly what you did after installing Ubuntu 9.04? Did you only install the two packages above and then vCLI or did you install additional packages?

Thanks

Reply
0 Kudos
lamw
Community Manager
Community Manager

Please take a look at this document, it explains exactly how to get vCLI working on Ubuntu 9.04:

=========================================================================

William Lam

VMware vExpert 2009

VMware ESX/ESXi scripts and resources at:

VMware Code Central - Scripts/Sample code for Developers and Administrators

VMware Developer Comuunity

Twitter: @lamw

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

Reply
0 Kudos
cookieme
Enthusiast
Enthusiast

Please take a look at this document, it explains exactly how to get vCLI working on Ubuntu 9.04:

=========================================================================

William Lam

VMware vExpert 2009

VMware ESX/ESXi scripts and resources at:

VMware Code Central - Scripts/Sample code for Developers and Administrators

VMware Developer Comuunity

Twitter: @lamw

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

Please take a look at my comment at the bottom of your document and you will see that after following your instructions something is still not correct.

Reply
0 Kudos
lamw
Community Manager
Community Manager

Are you running Ubuntu workstation or server 9.04? You might be missing additional packages, I use the out of the box ubuntu server 9.04 and it works perfectly fine with those listed instructions. Perhaps on workstation, there are other dependencies that are required.

=========================================================================

William Lam

VMware vExpert 2009

VMware ESX/ESXi scripts and resources at:

VMware Code Central - Scripts/Sample code for Developers and Administrators

VMware Developer Comuunity

Twitter: @lamw

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

Reply
0 Kudos
cookieme
Enthusiast
Enthusiast

Please see my first post! I'm also using Ubuntu Server 9.04, but I have selected "minimal virtual machine".

Hi

I not very familiar with Linux/ UNIX, but I have setup an Ubuntu Server 9.04 minimal install as a VM and I am trying to install vCLI. I went through the manual and this particular Ubuntu version is not on the supported list, so I went ahead and first installed all the pre-requisites:

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)

libssl-dev

Reply
0 Kudos
lamw
Community Manager
Community Manager

Don't know, it works for me.

Does lsb_release -a return the same as from my document?

=========================================================================

William Lam

VMware vExpert 2009

VMware ESX/ESXi scripts and resources at:

VMware Code Central - Scripts/Sample code for Developers and Administrators

VMware Developer Comuunity

Twitter: @lamw

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

Reply
0 Kudos
cookieme
Enthusiast
Enthusiast

Don't know, it works for me.

Does lsb_release -a return the same as from my document?

=========================================================================

William Lam

VMware vExpert 2009

VMware ESX/ESXi scripts and resources at:

VMware Code Central - Scripts/Sample code for Developers and Administrators

VMware Developer Comuunity

Twitter: @lamw

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

Glad it works for you.

Yes, "lsb_release -a" returns the same as in your document.

Reply
0 Kudos
lamw
Community Manager
Community Manager

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:

VMware Code Central - Scripts/Sample code for Developers and Administrators

VMware Developer Comuunity

Twitter: @lamw

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

Reply
0 Kudos
lamw
Community Manager
Community Manager

I actually got it working, it's pretty simple. I'll re-run the steps and document the process in a bit.

=========================================================================

William Lam

VMware vExpert 2009

VMware ESX/ESXi scripts and resources at:

VMware Code Central - Scripts/Sample code for Developers and Administrators

VMware Developer Comuunity

Twitter: @lamw

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

Reply
0 Kudos