Menu

vEMan can't manage my ESXi 5.5 host VMs

Vithal
2014-01-21
2014-01-27
  • Vithal

    Vithal - 2014-01-21

    I have a ESXi 5.5 host running and windows ESXi client can successfully manage host/VMs (with respect to creating/deploying VMs, [re]booting VMs, console access etc].
    Today, moved to vEMan and installed it on CentOS6 workstation. While vEMan connects to my ESXi host and lists all the VMs over GUI, unable to manage the VMs. For instance, console connection is failing (VNC throwing connection refused error (111)), power options not working. I have tried disabling firewall completely on ESXi host using esxcli. Logs as below, any help on this will be greately appreciated.


    This is vEMan v0.9.6_BETA


    DEBUG: included >F_CHKESXVER< successfully
    DEBUG: included >F_MGUSR< successfully
    DEBUG: included >F_ADDUSR< successfully
    DEBUG: included >F_MSG< successfully
    DEBUG: included >F_CHGUSR< successfully
    DEBUG: included >F_USERMGR< successfully
    DEBUG: included >F_REVIEWER< successfully
    DEBUG: included >F_NOTREADY< successfully
    DEBUG: included >F_SCANNET< successfully
    DEBUG: included >F_SCANDS< successfully
    DEBUG: included >F_HOSTMGR< successfully
    DEBUG: included >F_SAVEOVFSET< successfully
    DEBUG: included >F_VERSION< successfully
    DEBUG: included >F_HELP< successfully
    DEBUG: included >F_SNAPMGR< successfully
    DEBUG: included >F_VMEDITOR< successfully
    DEBUG: included >F_VMMGR< successfully
    DEBUG: included >F_POWERACT< successfully
    DEBUG: included >F_MAINLOOP< successfully
    DEBUG: included >F_ACTIONS< successfully
    DEBUG: included >F_AUTH< successfully
    DEBUG: included >F_CHKCFG< successfully
    DEBUG: included >F_CONSOLEMGR< successfully
    DEBUG: included >F_CRTCOOKIE< successfully
    DEBUG: included >F_CRTVMLIST< successfully
    DEBUG: included >F_DEPLOVF< successfully
    DEBUG: included >F_DEPLVMX< successfully
    DEBUG: included >F_DETECTVNC< successfully
    DEBUG: included >F_DISABLEVNC< successfully
    DEBUG: included >F_ENABLEVNC< successfully
    DEBUG: included >F_ERR< successfully
    DEBUG: included >F_ESXMGR< successfully
    DEBUG: included >F_GETCFG< successfully
    DEBUG: included >F_GETFREEPORT< successfully
    DEBUG: included >F_GETVMMANUAL< successfully
    DEBUG: included >F_GETVMPATH< successfully
    DEBUG: included >F_LOGIN< successfully
    DEBUG: included >F_MKCFG< successfully
    DEBUG: included >F_MKOVFCFG< successfully
    DEBUG: included >F_OPENCONSOLE< successfully
    DEBUG: included >F_POWER< successfully
    DEBUG: included >F_SELECTVM< successfully
    DEBUG: included >F_SPACECONV< successfully
    DEBUG: included >F_SUSPEND< successfully
    DEBUG: included >F_PARENTF< successfully
    DEBUG: included >F_DEC< successfully
    DEBUG: included >F_DELETEVM< successfully
    DEBUG: checking config...
    DEBUG: checking config reqs..
    DEBUG: Setting file included..
    DEBUG: No source file detected.
    DEBUG: Can't find /home/vithals/.vEMan/10.16.32.25/lastovf.cfg file, nothing to include.
    DEBUG: config reqs checks (F_CHKCFG) finished.
    DEBUG: DEBUG: CANS is 11
    DEBUG: closing console manager
    r/share/perl5/VMware/VIMRuntime.pm line 52.
    DEBUG: Cannot detect ESX version.
    DEBUG: checking config...
    DEBUG: checking config reqs..
    DEBUG: Setting file included..
    DEBUG: No source file detected.
    DEBUG: Can't find /home/vithals/.vEMan/10.16.32.25/lastovf.cfg file, nothing to include.
    DEBUG: config reqs checks (F_CHKCFG) finished.
    DEBUG: config ok.
    DEBUG: AOS-ESXi-VM-TEMPLATE_2
    DEBUG: FULLVMPATH is:
    DEBUG: woops VM is offline?!
    DEBUG: Detected a VM path (/vmfs/volumes/526e7094-63e4f60b-19fe-002590c40812/AOS-ESXi-VM-TEMPLATE_2/AOS-ESXi-VM-TEMPLATE_2.vmx)
    DEBUG: open console for AOS-ESXi-VM-TEMPLATE_2
    DEBUG: checking config...
    DEBUG: checking config reqs..
    DEBUG: Setting file included..
    DEBUG: No source file detected.
    DEBUG: Can't find /home/vithals/.vEMan/10.16.32.25/lastovf.cfg file, nothing to include.
    DEBUG: config reqs checks (F_CHKCFG) finished.
    DEBUG: config ok.
    DEBUG: Using specific VM AOS-ESXi-VM-TEMPLATE_2 for detection
    Can't load class 'HostSriovInfo' at /usr/share/perl5/VMware/VIMRuntime.pm line 52.
    No VNC port found or VNC isn't active atm.
    DEBUG: checking config...
    DEBUG: checking config reqs..
    DEBUG: Setting file included..
    DEBUG: No source file detected.
    DEBUG: Can't find /home/vithals/.vEMan/10.16.32.25/lastovf.cfg file, nothing to include.
    DEBUG: config reqs checks (F_CHKCFG) finished.
    DEBUG: config ok.
    tail: /home/vithals/.vEMan/10.16.32.25/progress.tmp: file truncated
    DEBUG: checking config...
    DEBUG: checking config reqs..
    DEBUG: Setting file included..
    DEBUG: No source file detected.
    DEBUG: Can't find /home/vithals/.vEMan/10.16.32.25/lastovf.cfg file, nothing to include.
    DEBUG: config reqs checks (F_CHKCFG) finished.
    DEBUG: config ok.
    DEBUG: AOS-ESXi-VM-TEMPLATE_2
    DEBUG: FULLVMPATH is:
    DEBUG: woops VM is offline?!
    DEBUG: Detected a VM path (/vmfs/volumes/526e7094-63e4f60b-19fe-002590c40812/AOS-ESXi-VM-TEMPLATE_2/AOS-ESXi-VM-TEMPLATE_2.vmx)
    DEBUG: F_ENABLEVNC - current VNCPORT is
    DEBUG: F_ENABLEVNC - Enforcing console activation without checking...
    DEBUG: checking config...
    DEBUG: checking config reqs..
    DEBUG: Setting file included..
    DEBUG: No source file detected.
    DEBUG: Can't find /home/vithals/.vEMan/10.16.32.25/lastovf.cfg file, nothing to include.
    DEBUG: config reqs checks (F_CHKCFG) finished.
    DEBUG: config ok.
    Doing a full Scan. This will take a while..
    nc: connect to 10.16.32.25 port 5900 (tcp) failed: Connection refused
    Find free port at: 5900
    Can't load class 'HostSriovInfo' at /usr/share/perl5/VMware/VIMRuntime.pm line 52.
    DEBUG: port is 5900, server is 10.16.32.25
    DEBUG: Opening console without pw.

    TigerVNC Viewer for X version 1.1.0 - built Apr 29 2013 11:33:36
    Copyright (C) 1999-2011 TigerVNC Team and many others (see README.txt)
    See http://www.tigervnc.org for information on TigerVNC.

    Tue Jan 21 22:51:40 2014
    main: unable connect to socket: Connection refused (111)
    DEBUG: Console ended with <1>. This can be ok but since VNC export not a valid return code we will raise a warning only..\n
    DEBUG: If you cannot open a console it is possible that the ESX firewall is blocking the VNC ports: 5900-5999.
    DEBUG: Check /tftpboot/esxi_client/vEMan_v0.9.6/docs/README_ESX5.1 for details on how to fix that

     
    • secure diversITy

      Hi! And many thanks to give vEMan a try!

      Even the following guide is not yet released yet you may foudn some hints about troubleshooting atm here;

      https://sourceforge.net/p/veman/git/ci/vmeditor/tree/docs/TROUBLE

      and there is also a compendium / manual available on my site.

      About your current problem I have an idea what it could be but first of all please send me the output of:

      1) Version of VMware SDK Toolkit

      vmware-cmd --version

      2) Version of YAD

      yad --version

      3) Version of ESX (tell the exact build)

      Thanks
      Thomas

       
  • Vithal

    Vithal - 2014-01-22

    Hi Thomas,
    Thanks for the quick response. Please see the details as below:
    1) vmware-cmd --version
    vSphere SDK for Perl version: 5.1.0
    Script 'vmware-cmd' version: 5.1.0

    2) yad --version
    0.25.1

    3) Version of ESXi
    5.5.0, build 1331820

    Yes, have already followed up TROUBLE and compendium, with respect to firewall setup for vnc, but didn't help. As mentioned, I've completely disabled firewall itself using esxcli.

     
  • secure diversITy

    The firewall is an issue when you have trouble with console only - but you have also other problems e.g. especially power options are independent from the esx firewall.

    well this here from your log is strange:
    Can't load class 'HostSriovInfo' at /usr/share/perl5/VMware/VIMRuntime.pm line 52.

    According to http://pubs.vmware.com/vsphere-51/index.jsp?topic=%2Fcom.vmware.vsphere.networking.doc%2FGUID-CC021803-30EA-444D-BCBE-618E0D836B9F.html&lang=en
    it has something to do with a shared physical PCIe device can it be true in your case?

    Do you try to access with an admin user or with the "root" user? Sometimes it is an issue even when you are using a full admin user so if you can try with root instead it could help to find out where the problem is..

    another thing to do would be to start vEMan from commandline which will give some extra output may helping, too.

    Thanks
    Thomas

     
  • Vithal

    Vithal - 2014-01-23

    Thomas,

    I am not sure if it is really sr-iov related issue. NIC being used it 82474L (e1000) driver which doesn't support sr-iov. Using esxcli, queried for parameter of this module and confirmed that sr-iov doesnt exist in the list.
    Access using admin/root - Did you mean for accessing ESXi host? If so, I am always accessing using root.
    Yes, I am starting vEMan from command line only, but I dont see any additional info (log below)

    [vithals@localhost vEMan_v0.9.6]$ ./vEMan
    DEBUG: User variable file /tftpboot/esxi_client/vEMan_v0.9.6/etc/uservars_vEMan.cfg found.
    DEBUG: User variable file /tftpboot/esxi_client/vEMan_v0.9.6/etc/uservars_vEMan.cfg included successfully.
    DEBUG: System variable file /tftpboot/esxi_client/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 /tftpboot/esxi_client/vEMan_v0.9.6/vEMan met.
    DEBUG: Requirement /usr/bin/yad met.
    DEBUG: Requirement /tftpboot/esxi_client/vEMan_v0.9.6/vmapps/general/connect.pl met.
    DEBUG: Requirement /tftpboot/esxi_client/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 /tftpboot/esxi_client/vEMan_v0.9.6/libs/runFUNCTION.vEMan met.
    DEBUG: Requirement /usr/bin/openssl met.
    DEBUG: Requirement /tftpboot/esxi_client/vEMan_v0.9.6/vmapps/vm/vminfo.pl met.
    DEBUG: Requirement /tftpboot/esxi_client/vEMan_v0.9.6/vmapps/vm/vmcontrol.pl met.
    DEBUG: Requirement /tftpboot/esxi_client/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 /tftpboot/esxi_client/vEMan_v0.9.6/etc/uservars_vEMan.cfg included successfully.
    DEBUG: System variable file /tftpboot/esxi_client/vEMan_v0.9.6/etc/sysvars_vEMan.cfg included successfully.
    DEBUG: setting file included successfully
    DEBUG: selected 10.16.32.25, root, XXXXXXX (PW hidden), button id: 23
    DEBUG: making config
    DEBUG: Hashed pass is: U2FsdGVkX1+qO4qojgHqXmSkDbjcuncGlyT3ltD4erU=
    SRV="10.16.32.25"
    tail: /home/vithals/.vEMan/progress.tmp: file truncated
    Connecting to 10.16.32.25 port 443
    /tftpboot/esxi_client/vEMan_v0.9.6/libs/getx509certificate.vEMan: line 48: out.txt: Permission denied
    cat: err.txt: No such file or directory
    DEBUG: WARNING - Problem while fetching the connection certificate
    No session file detected. Creating one..
    HASH is U2FsdGVkX1+qO4qojgHqXmSkDbjcuncGlyT3ltD4erU=
    DEBUG: authentication successfull (F_CRTCOOKIE)
    DEBUG: Return message was:
    Connection Successful
    Server Time : 2014-01-23T19:18:53.0765Z
    DEBUG: Starting keep-alive handler...
    DEBUG: Answer was 23
    DEBUG: Manage_VM was choosen...
    DEBUG: opening action Manage_VM
    DEBUG: FIRSTACT was 0
    DEBUG: firstrun. will skip keep-alive...
    FORCECON (0), FIRSTRUN (1)
    DEBUG: Argument given is valid (F_MAINLOOP)
    DEBUG: User variable file /tftpboot/esxi_client/vEMan_v0.9.6/etc/uservars_vEMan.cfg included successfully.
    DEBUG: System variable file /tftpboot/esxi_client/vEMan_v0.9.6/etc/sysvars_vEMan.cfg included successfully.

     
  • secure diversITy

    Thanks, yes I meant the login user.

    Ok regarding the output there seems to be a problem to write the SSL certificate but that doesnt' matter in this case.

    But according to the previous error message there can be another reason regarding the crappy (sorry) VMware SDK installer:

    Please ensure that you have installed it completeley! -> that is not such clear because it is possible that you have ran the setup but the most important thing is the messages at the end of the setup!

    Could you please reinstall the VMware SDK 5.1 and take a look on the vEMan INSTALL guide of step 1a and 1b very carefully:

    https://sourceforge.net/p/veman/git/ci/vmeditor/tree/INSTALL

    Thanks for your patience!

     
  • Vithal

    Vithal - 2014-01-23

    I un-installed the SDK and re-installed it back, end msgs are as below:
    However, result is still same, no luck yet.

    ============================================================================
    The installation of vSphere CLI 5.1.0 build-780721 for Linux completed
    successfully. You can decide to remove this software from your system at any
    time by invoking the following command:
    "/usr/bin/vmware-uninstall-vSphere-CLI.pl".

    This installer has successfully installed both vSphere CLI and the vSphere SDK
    for Perl.

    The following Perl modules were found on the system but may be too old to work
    with vSphere CLI:

    Compress::Zlib 2.037 or newer
    Compress::Raw::Zlib 2.037 or newer
    version 0.78 or newer
    IO::Compress::Base 2.037 or newer
    IO::Compress::Zlib::Constants 2.037 or newer
    LWP::Protocol::https 5.805 or newer

    Enjoy,

    --the VMware team

    I believe, above msgs related to perl doesn't related to the issues that I am facing.

    Thanks,
    -Vithal

     
  • secure diversITy

    No that looks good so far.

    You're trying to connect to 'AOS-ESXi-VM-TEMPLATE_2' . Is it true that this is not a VM but a VM template?

     
  • Vithal

    Vithal - 2014-01-27

    Name is just a misnomer. It's actually a VM (deployed using my own created OVF template).

    Thanks,
    -Vithal

     
  • secure diversITy

    Hm can you please

    uninstall 5.1 SDK
    and
    install 5.0 SDK instead?

    The root cause seems to be within the SDK - I had tested 5.5 ESXi with the SDK 5.1 and it worked for me but nevertheless everything will work even if you would use the latest 4.x SDK instead. But I'm running on Ubuntu so maybe there are other dependencies for CentOS missing the SDK needs. But the first idea would be to do the above steps and check again..

    If that doesn't help I can offer a remote session maybe. SSH would be enough or on the other hand a remote desktop session based on my desktop sharing tool (based on VisitPC).
    To do so go here https://sourceforge.net/u/jogarem/profile/send_message and send me at least 3 different dates with time in UTC where it would be possible for you including your contact details (mail).

    Regards
    Thomas

     

Log in to post a comment.