Menu

Server version unavailable at 'https://x.x.x.x:443/sdk/vimService.wsdl' at /usr/share/perl/5.20/VMware/VICommon.pm line 545, <STDIN> line 2.

claenjoy
2016-03-15
2020-01-17
  • claenjoy

    claenjoy - 2016-03-15

    unable to access to ESXi 5.0.0

    Distro: Ubuntu 15.04 64bit

    vmware-cmd --version
    vSphere SDK for Perl version: 5.1.0
    Script 'vmware-cmd' version: 5.1.0
    
    vEMan_v0.9.6/vmapps/general# ./connect.pl --server 192.168.x.x
    Enter username: root
    Enter password: 
    Server version unavailable at 'https://192.168.x.x:443/sdk/vimService.wsdl' at /usr/share/perl/5.20/VMware/VICommon.pm line 545, <STDIN> line 2.
    
    /Downloads/vEMan_v0.9.6# ./vEMan
    DEBUG: User variable file /home/username/Downloads/vEMan_v0.9.6/etc/uservars_vEMan.cfg found.
    DEBUG: User variable file /home/username/Downloads/vEMan_v0.9.6/etc/uservars_vEMan.cfg included successfully.
    DEBUG: System variable file /home/username/Downloads/vEMan_v0.9.6/etc/sysvars_vEMan.cfg included successfully.
    DEBUG: included >F_MKCFG< successfully
    DEBUG: included >F_PARENTF< successfully
    DEBUG: included >F_HELP< successfully
    DEBUG: included >F_VERSION< successfully
    DEBUG: included >F_LICENSE< successfully
    DEBUG: included >F_INSTALLER< successfully
    DEBUG: included >F_ERR< successfully
    DEBUG: included >F_REVIEWER< successfully
    DEBUG: Requirement /home/username/Downloads/vEMan_v0.9.6/vEMan met.
    DEBUG: Requirement /usr/bin/yad met.
    DEBUG: Requirement /home/username/Downloads/vEMan_v0.9.6/vmapps/general/connect.pl met.
    DEBUG: Requirement /home/username/Downloads/vEMan_v0.9.6/libs/getx509certificate.vEMan met.
    DEBUG: Requirement /usr/bin/ovftool met.
    DEBUG: Requirement /usr/bin/vncviewer met.
    DEBUG: Requirement /usr/bin/ovftool met.
    DEBUG: Requirement /usr/bin/vmware-cmd met.
    DEBUG: Requirement /bin/nc met.
    DEBUG: Requirement /usr/bin/esxcli met.
    DEBUG: Requirement /home/username/Downloads/vEMan_v0.9.6/libs/runFUNCTION.vEMan met.
    DEBUG: Requirement /usr/bin/openssl met.
    DEBUG: Requirement /home/username/Downloads/vEMan_v0.9.6/vmapps/vm/vminfo.pl met.
    DEBUG: Requirement /home/username/Downloads/vEMan_v0.9.6/vmapps/vm/vmcontrol.pl met.
    DEBUG: Requirement /home/username/Downloads/vEMan_v0.9.6/vmapps/vm/snapshotmanager.pl met.
    DEBUG: vEMan has been executed before. Skipping installer.
    DEBUG: starting auth popup
    DEBUG: Argument given is valid (F_GETCFG)
    DEBUG: User variable file /home/username/Downloads/vEMan_v0.9.6/etc/uservars_vEMan.cfg included successfully.
    DEBUG: System variable file /home/username/Downloads/vEMan_v0.9.6/etc/sysvars_vEMan.cfg included successfully.
    DEBUG: setting file included successfully
    DEBUG: selected x.x.x.x, root, XXXXXXX (PW hidden), button id: 0
    DEBUG: making config
    DEBUG: Hashed pass is: (hide)=
    SRV="x.x.x.x"
    DEBUG: Certificate already fetched and available
    DEBUG: skipping certificate activation
    No session file detected. Creating one..
    HASH is (hide)=
    DEBUG: Error (1) checking authentication or creating session cookie file (F_CRTCOOKIE)
    DEBUG: Return message was: Server version unavailable at 'https://x.x.x.x:443/sdk/vimService.wsdl' at /usr/share/perl/5.20/VMware/VICommon.pm line 545.
    DEBUG: Argument given is valid (F_ERR Target said:\n\nServer version unavailable at 'https://x.x.x.x:443/sdk/vimService.wsdl' at /usr/share/perl/5.20/VMware/VICommon.pm line 545.\n)
    
     
  • secure diversITy

    Hi claenjoy,

    this error indicates a problem with the damn (sorry) Perl SDK. The reasons varies but normally there is something missing or went wrong regarding the installation of the SDK.

    Please re-install the SDK and keep an eye at the last messages!! This is very important because even when it looks like there was no error the installer sometimes states that it misses some perl modules. Those modules need to be installed manually when the SDK installer is not able to do so. If you like paste the whole output of the installation at http://pastebin.com/ and link it here.

    when it comes to a manual perl module installation try to "apt-cache search modulename" first. In most cases there are Ubuntu packages available.

     

    Last edit: secure diversITy 2016-03-16
  • Simon Quigley

    Simon Quigley - 2020-01-16

    I realise this thread is from 4 years ago, however I'm having the same issue, and can't find any other references to this issue.
    I think my cause may be different however, as I can retrieve the vimService.wsdl file manually, and it doesn't contain anything that looks like a version (to me anyway), eg:

    <?xml version="1.0" encoding="UTF-8" ?>
    <!--
       Copyright 2005-2013 VMware, Inc.  All rights reserved.
    -->
    <definitions targetNamespace="urn:vim25Service"
       xmlns="http://schemas.xmlsoap.org/wsdl/"
       xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
       xmlns:interface="urn:vim25"
    >
       <import location="vim.wsdl" namespace="urn:vim25" />
       <service name="VimService">
          <port binding="interface:VimBinding" name="VimPort">
             <soap:address location="https://localhost/sdk/vimService" />
          </port>
       </service>
    </definitions>
    

    This is from "HP Customized Image ESXi 5.5.0 version 5.71.3 based on ESXi 5.5.0 Vmkernel Release Build 1331820."

    I think I have all the perl stuff installed correctly, but perhaps, as I did have to wrestle with some dpkg and pip3 files/commands..

     
    • Simon Quigley

      Simon Quigley - 2020-01-16

      Talking to myself possibly, however, I did find the cause of and solution to this issue.
      The newer perl LWP/https stuff forces cert verification, and our servers don't have legit certs, just the "VMware ESX Server Default Certificate".

      My fix was to modify /usr/share/perl5/LWP/Protocol/https.pm

      in the top of the file, I found:

      sub _extra_sock_opts
      {
          my $self = shift;
          my %ssl_opts = %{$self->{ua}{ssl_opts} || {}};
      

      I added below this:

      $ssl_opts{SSL_verify_mode} ||= 0;
      

      So it now accepts the invalid cert.
      Can connect, but trying to connect to the console of any VM doesn't work, but that's a different issue.

       
      • secure diversITy

        thx for reporting !
        tbh did not expect anyone uses this anymore ;)

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.