ESXi 5.0 and ESX 4.1cannot be added

Help
Maniax
2012-11-08
2013-04-13
  • Maniax
    Maniax
    2012-11-08

    Hi,

    I have installed the latest openQRM 5 from sources on a ubuntu 10.04 LTS x64 vm, and i followed the tutorial from Setup_your_own_openQRM_Cloud_on_Ubuntu_Lucid_Lynx.10052010.pdf. I also added an external ubuntu storage NFS as a physical appliance. I set up password-less loggin betwen openQRM host and my esx hosts. I try to run the command to add a new esx server and i found it impossible to add any type of esx host.

    OS : Ubuntu Lucid Lynx | openQRM 5 | VMWare Perl SDK installed ;
                                               | password-less ssh logging set from openQRM to esx hosts
              ESXi5 host             |datastore1
             default install          |VM Network

    Setup : openQRM server   IP 192.168.97.115
                  storage NFS           IP 192.168.97.114
                  esxi5                         IP 192.168.97.117

    1. * On openQRM host I ran : ssh 192.168.97.117 ls | I get the list of directories on the esxi5 machine
    2. * Now try to integrate the ESX server by running the following command :
           /usr/share/openqrm/plugins/vmware-esx/bin/openqrm-vmware-esx init -i 192.168.97.117

    Result : 

    vmware-esx plug-in parameter-check : Wrong usage, VM name missing!
    vmware-esx plug-in Usage : /usr/share/openqrm/plugins/vmware-esx/bin/openqrm-vmware-esx configure <-i esx-server-ip> <-eu esx-server-username> <-ep esx-server-password> <-eh esx-server-hostname> :
    vmware-esx plug-in         /usr/share/openqrm/plugins/vmware-esx/bin/openqrm-vmware-esx start/stop/reboot/remove/list <-i esx-server-ip> <-n vm-name> :
    vmware-esx plug-in         /usr/share/openqrm/plugins/vmware-esx/bin/openqrm-vmware-esx create/update <-i esx-server-ip> <-n vm-name> <-m mac-address> <-l datastore>       :
    vmware-esx plug-in         /usr/share/openqrm/plugins/vmware-esx/bin/openqrm-vmware-esx post_host_statistics <-i esx-server-ip> :
    vmware-esx plug-in         /usr/share/openqrm/plugins/vmware-esx/bin/openqrm-vmware-esx post_vm_list <-i esx-server-ip> :
    vmware-esx plug-in         /usr/share/openqrm/plugins/vmware-esx/bin/openqrm-vmware-esx post_vm_config <-i esx-server-ip> <-n vm-name> :
    vmware-esx plug-in         /usr/share/openqrm/plugins/vmware-esx/bin/openqrm-vmware-esx setboot <-m mac-address> <-b local/net> <-i esx-server-ip> :
    vmware-esx plug-in         /usr/share/openqrm/plugins/vmware-esx/bin/openqrm-vmware-esx setboot_by_name <-n vm-name> <-b local/net/cd/iso> <-i esx-server-ip> :
    vmware-esx plug-in         /usr/share/openqrm/plugins/vmware-esx/bin/openqrm-vmware-esx fence <-m mac-address> <-i esx-server-ip> :
    vmware-esx plug-in         /usr/share/openqrm/plugins/vmware-esx/bin/openqrm-vmware-esx host_shutdown/host_reboot <-i esx-server-ip> :

    3. Now try to integrate the ESX server by running the following command :
         /usr/share/openqrm/plugins/vmware-esx/bin/openqrm-vmware-esx configure -i 192.168.97.117 -eu root -ep password -eh esxi5

    Result :

    vmware-esx plug-in Creating configuration for VMware ESX Host 192.168.97.117 :
    vmware-esx plug-in vmware_esx_lock : Aquired the lock
    vmware-esx plug-in vmware_esx_lock : Released the lock

    >>>>> and no host or datastore is added ;

    Other details :

    openqrm-plugin-vmware-esx.conf file content :

    # This source code is released under the GNU General Public License version 2, unless otherwise agreed with openQRM Enterprise GmbH.
    # The latest version of this license can be found here: src/doc/LICENSE.txt
    #
    # By using this software, you acknowledge having read this license and agree to be bound thereby.
    #
    #           http://openqrm-enterprise.com
    #
    # Copyright 2012, openQRM Enterprise GmbH <info@openqrm-enterprise.com>
    #

    OPENQRM_PLUGIN_VERSION="5.0.2.0"

    # Those items setting up the dependencies for the package
    if ; then
            OPENQRM_PLUGIN_DEPENDENCIES="openqrm-server, screen, nmap"
            OPENQRM_PLUGIN_BUILD_REQUIREMENTS=""
    elif ; then
            OPENQRM_PLUGIN_DEPENDENCIES="openqrm-server, screen, nmap"
            OPENQRM_PLUGIN_BUILD_REQUIREMENTS=""
    elif ; then
            OPENQRM_PLUGIN_DEPENDENCIES="openqrm-server, screen"
            OPENQRM_PLUGIN_BUILD_REQUIREMENTS=""
    fi

    OPENQRM_PLUGIN_DESCRIPTION="Integrates the <a href='http://www.vmware.com/' target='_BLANK'>VMware-ESX</a> Virtualization Technology (network-deployment)."
    OPENQRM_PLUGIN_TYPE="virtualization"
    # openQRM plugin-dependencies - the following plugins must be enabled
    OPENQRM_PLUGIN_PLUGIN_DEPENDENCIES="dhcpd, tftpd, local-server"

    # the VMware perl sdk directory
    OPENQRM_VMWARE_ESX_SDK_DIR="/usr/lib/vmware-vcli/"

    # the cloud datastore is used by openQRM Cloud to automatically
    # create VMs via the Cloud interface
    OPENQRM_VMWARE_ESX_CLOUD_DATASTORE="cloud"

    # required parameter to set the internal VMware bridge
    # by default openQRM will use the internal bridge for the virtual
    # network-interface routed to the management/openQRM network on the VMware vms.
    OPENQRM_VMWARE_ESX_INTERNAL_BRIDGE="VM Network"

    # required parameter to set the external VMware bridge
    # by default openQRM will use external bridges for the virtual
    # network-interface(s) routed to the public network (internet) on the VMware vms
    OPENQRM_VMWARE_ESX_EXTERNAL_BRIDGE_2="VM Network"
    OPENQRM_VMWARE_ESX_EXTERNAL_BRIDGE_3="VM Network"
    OPENQRM_VMWARE_ESX_EXTERNAL_BRIDGE_4="VM Network"
    OPENQRM_VMWARE_ESX_EXTERNAL_BRIDGE_5="VM Network"

    # parameter for the openQRM Cloud to automatically create VMs
    OPENQRM_VMWARE_ESX_GUEST_ID="rhel4Guest"

    # the default nic for cloud VMs
    OPENQRM_VMWARE_ESX_CLOUD_DEFAULT_VM_TYPE="e1000"

    # files which should be taken to the state backup
    OPENQRM_PLUGIN_STATE_FILES="$OPENQRM_SERVER_BASE_DIR/openqrm/plugins/vmware-esx/etc/openqrm-plugin-vmware-esx.conf"

     
  • Bedrich
    Bedrich
    2012-11-09

    Hi emanuil,

    first enable a start the vmware-esx plugin. Next step go to Plugins -> Virtualization -> VMware ESX -> Discovery and click on "rescan". It should appear your ESXi 192.168.97.117. Select it and click "add".
    If the error occurs login and password, and you know you have them properly is an error in the installation of VMware Perl SDK.

    have a nice day
    Bedrich