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

5 comments:

  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.

    ReplyDelete
  2. This worked like a charm

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

    root@debian6:~# vicfg-vswitch -l --server 192.168.0.20 --username root -password mypassword
    Server version unavailable at 'https://192.168.0.20:443/sdk/vimService.wsdl' at /usr/share/perl/5.10/VMware/VICommon.pm line 545.


    To fix it, had to do :

    root@debian6:~# export PERL_LWP_SSL_VERIFY_HOSTNAME=0
    then run the vicfg-vswitch again, and it worked :)

    ReplyDelete
  4. Got it from here btw:
    http://www.vmware.com/support/developer/vcli/vcli501/vsp5_501_vcli_relnotes.html

    ReplyDelete
  5. like a charm! thx

    ReplyDelete