VMware Cloud Community
coeio
Contributor
Contributor
Jump to solution

Error installing CLI on Ubuntu

Hello

I'm trying to install vSphere Command-Line Interface "vmware-vsphere-cli-distrib" on Ubuntu Server 12.04 LTS but I'm getting the folowing error when I execute "sudo ./vmware-install.pl":

Uninstalling the tar installation of vSphere CLI.

Unable to find the tar installer database file (/etc/vmware-vcli/locations)

Execution aborted.

Is there something that I'm missing?

Thanks

0 Kudos
1 Solution

Accepted Solutions
CHUNTAO56
Enthusiast
Enthusiast
Jump to solution

Hello coeio

Hope doing great

Please find below stesp to perform the task

sudo aptitude install build-essential linux-headers-$(uname -r)

   sudo aptitude update

   sudo aptitude install build-essential linux-headers-$(uname -r)

   cp -a /media/cdrom/VMwareTools* /tmp/

  cd /tmp/

  tar -vxzf VMwareTools*.gz

  cd vmware-tools-distrib/

  sudo ./vmware-install.pl

"You must BE the change you wish to see in the world."

View solution in original post

0 Kudos
9 Replies
LucD
Leadership
Leadership
Jump to solution

Thread moved to the CLI Community


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
CHUNTAO56
Enthusiast
Enthusiast
Jump to solution

Hello coeio

Hope doing great

Please find below stesp to perform the task

sudo aptitude install build-essential linux-headers-$(uname -r)

   sudo aptitude update

   sudo aptitude install build-essential linux-headers-$(uname -r)

   cp -a /media/cdrom/VMwareTools* /tmp/

  cd /tmp/

  tar -vxzf VMwareTools*.gz

  cd vmware-tools-distrib/

  sudo ./vmware-install.pl

"You must BE the change you wish to see in the world."
0 Kudos
coeio
Contributor
Contributor
Jump to solution

Thank for your response.

After re-installing VMwaretools and installing the Linux headers like you told I'm still getting the error:

coelho@UbuntuServerTeste:~/vmware-vsphere-cli-distrib$ sudo ./vmware-install.pl
Uninstalling the tar installation of vSphere CLI.
Unable to find the tar installer database file (/etc/vmware-vcli/locations)
Execution aborted.

I'm using the VMware Tools 8.4.0 that is included with VMware ESXi 5.0.0, 469512.

My vm:

Linux UbuntuServerTeste 3.2.0-23-generic-pae #36-Ubuntu SMP Tue Apr 10 22:19:09 UTC 2012 i686 athlon i386 GNU/Linux

Thanks

0 Kudos
coeio
Contributor
Contributor
Jump to solution

UPDATE:

I have installed it on Ubuntu 12.04 LTS DESKTOP with very little problems, but when I try on Ubuntu 12.04 Server gives the error above.

I'm trying to monitor some ESXi servers using cacti templates that uses CLI...

Thanks

0 Kudos
coeio
Contributor
Contributor
Jump to solution

UPDATE 2:

OK, I was installing the wrong version (64bit instead 32bit), now its OK.

The only problem is this error:

http_proxy not set. please set environment variable 'http_proxy' e.g. export
ftp_proxy not set. please set environment variable 'ftp_proxy' e.g. export
And the provisory solution was to coment two lines in the file "vmware-uninstall-vSphere-CLI.pl"
      if ( !( $ftpproxy && $httpproxy)) {
      #   uninstall_file($gInstallerMainDB);
      #   exit 1;
      }

Thanks

0 Kudos
Mike_Th
Contributor
Contributor
Jump to solution

My machine:

Linux S1013 3.5.0-25-generic #39-Ubuntu SMP Mon Feb 25 19:02:34 UTC 2013 i686 i686 i686 GNU/Linux

Trying to install:

VMware-vSphere-Perl-SDK-5.1.0-780721.i386.gz

sudo ./vmware-install.pl fails with:

./vmware-install.pl: 1: ./vmware-install.pl: bin/vmware-uninstall-vSphere-CLI.pl: Permission denied

doing sudo chmod 777 ./bin/vmware-uninstall-vSphere-CLI.pl followed by sudo ./vmware-install.pl results in:

Uninstalling the tar installation of vSphere CLI.

Unable to find the tar installer database file (/etc/vmware-vcli/locations)
Execution aborted.

I have reinstalled vmware tools which were delivered with 5.1.0, but no effect.

Something I missed to do?

0 Kudos
nielse
Expert
Expert
Jump to solution

Can you try removing the dir /etc/vmware-vcli/ and try again?

@nielsengelen - http://foonet.be - VCP4/5
0 Kudos
Mike_Th
Contributor
Contributor
Jump to solution

I have no such folder

0 Kudos
Mike_Th
Contributor
Contributor
Jump to solution

Might there be something wrong in the script? If I don't have the folder, why it depends on deleting it?

0 Kudos