Thursday, 24 February 2011

VMWare Vsphere CLI install on Debian

I just installed the VMWare vSphere Command Line Interface on Debian and had a headache because it kept reporting missing packages and RPM errors. BAsically the script looks for a file /etc/*-release and uses this to determine what type of system it is installing on. Since Debian does not have this file it falls back to assuming a RedHat based system and uses RPM to check for required dependencies. Not suprisingly this fails.

The quickest way to get round this is to pretend the system is ubuntu and install, then delete the ubuntu file:
# echo ubuntu > /etc/temp-release
Install using ./vmware-install script
# rm /etc/temp-release
The dependencies I had to install were libssl-dev and perldoc


  1. Thankkkk's it works great!

    The dependencies for me was libxml-libxml-perl, and the other perl pkg is "perl-doc" instead of perldoc.

  2. This worked like a charm

  3. I faced this when I wanted to test 'vicfg-vswitch':

    [email protected]:~# vicfg-vswitch -l --server --username root -password mypassword
    Server version unavailable at '' at /usr/share/perl/5.10/VMware/ line 545.

    To fix it, had to do :

    [email protected]:~# export PERL_LWP_SSL_VERIFY_HOSTNAME=0
    then run the vicfg-vswitch again, and it worked :)

  4. Got it from here btw:

  5. like a charm! thx