Thursday, March 7, 2013

vCenter server heartbeat 6.5 plugin manual registration error, vcenter serve heart beat 6.5 icon not visible in vsphere client. VCHB 6.5 plugin not registered in vsphere client.

My lab setup, upgraded vcenter server 5.0 U1 to vcenter server 5.0 U2 and vcenter server heatbeat version 6.5 used.

This is a virtual to virtual configuration for vcenter server high availability.
Installation was success full, configured heartbeat and every thing was working fine.
But heart beat icon is missing in vsphere client when i connected to vcenter.
checked if the vcenter server heart beat plugin is visible in plugin manager and i don't see it there.
searched and found this KB LINK about Registering vCenter Server Heartbeat plug-in manually

followed the steps in the KB
To manually register the vCenter Server Heartbeat plug-in manually:
  1. With the vCenter Server Heartbeat pair in sync, on the active server, open an elevated command prompt and navigate to C:\Program Files\VMware\VMware vCenter Server Heartbeat\tomcat\apache-tomcat-6.0.32\bin.
  2. Run the command:RegExt -register vchost[:port] username password hbconf.xml PublicServiceName
    Where:
    • vchost is the name/IP of the vCenter Server to which you want to register
    • port is the https port on which vCenter Server is running
    • username is the valid username with administrator privileges on the vCenter Server
    • password is the password of the user with administrator privileges on the vCenter Server
    • PublicServiceName is the public name of the vCenter Server Heartbeat server pair
  3. Copy the hbconf.xml file created at the previous step to C:\Program Files\VMware\VMware vCenter Server Heartbeat\tomcat\apache-tomcat-6.0.32\webapps\vcshb.
  4. Perform a switchover to make the Secondary server active.
  5. Repeat Steps 1-3 on the Secondary server.

Got the following error when i run the regext command, mentioned the KB

C:\Program Files\VMware\VMware vCenter Server Heartbeat\tomcat\apache-tomcat-6.0.32\bin>RegExt -register LABVC01:443 vchbtev VC@123 hbconf.xml LABVC01N1
Connecting to vCenter via: https://LABVC01/sdk/vimService
inside connect, url is: https://LABVC01/sdk/vimService
session manager was non-null
connect succeeded
server type is VirtualCenter
API version is 5.0
DomainName: lab.com
Registering as LABVC01N1.lab.com with non-local vCenter at LABVC01:443
Searching for VM with host name: LABVC01N1
Searching for VM with host name:LABVC01N1.lab.com
Found 0 matching VM(s)
No VMs matching LABVC01N1 found. Unable to register the vSphere client extension
Management through the vSphere client is not available, use the Heartbeat management Client instead
No vSphere plugin registered
disconnecting from vCenter
disconnect succeeded
disconnect succeeded


Finally the issue its a KB update needed, instead of using vcenter public name labvc01, we need to use "localhost" as follows.

instead of below.
C:\Program Files\VMware\VMware vCenter Server Heartbeat\tomcat\apache-tomcat-6.0.32\bin>RegExt -register LABVC01:443 vchbtev VC@123 hbconf.xml LABVC01N1

 user the following on the active node and switch to secondary perform the same to successfull register vcenter server heart beat to vsphere client.

C:\Program Files\VMware\VMware vCenter Server Heartbeat\tomcat\apache-tomcat-6.0.32\bin>RegExt.exe -register localhost:443 vchbtev VC@123 hbconf.xml
Connecting to vCenter via: https://localhost/sdk/vimService
inside connect, url is: https://localhost/sdk/vimService
session manager was non-null
connect succeeded
server type is VirtualCenter
API version is 5.0
DomainName: lab.com
Setting VC custom attribute for vSphere client
Removing existing web client extension com.vmware.hbwc
unregister extension succeeded
register web client extension succeeded
Removing existing extension com.vmware.heartbeat
unregister extension succeeded
register extension succeeded
Writing XML config file to hbconf.xml
Persisting vcConnection info
Persisting vCenter host: localhost:443
Persisting vCenter connection info
register extension succeeded
disconnecting from vCenter
disconnect succeeded
disconnect succeeded

That's it the vcenter heartbeat was started visible here.
login to vcenter via vsphere client and see if the plugin is visible as follows;


now got home -- inventor -- host and cluster.
click on vcenter server and in the right side you will see the heartbeat tab as follows.
 
I have requested for a kb to be updated as localhost instead of vchost, but still i dont see it is updated. mean time just for reference.
 
 
  1. With the vCenter Server Heartbeat pair in sync, on the active server, open an elevated command prompt and navigate to C:\Program Files\VMware\VMware vCenter Server Heartbeat\tomcat\apache-tomcat-6.0.32\bin.
  2. Run the command:RegExt -register vchost[:port] username password hbconf.xml PublicServiceName
  • vchost is the name/IP of the vCenter Server to which you want to register
  • port is the https port on which vCenter Server is running
  • username is the valid username with administrator privileges on the vCenter Server
  • password is the password of the user with administrator privileges on the vCenter Server
  • PublicServiceName is the public name of the vCenter Server Heartbeat server pair



  •  

    Thursday, February 21, 2013

    vCenter Server Heart Beat 6.5 with vCenter 5.0 U2 Installation verification testing results auto fail over issues.

    vCenter Server heart beat 6.5 installation verification testing.

    Not going to discuss on installation procedure, Refer installation document for pre requites and procedure, here i am going to detail only about the testing and verification that was done for vCSHB with VC 5.0 U2, in my lab.
    vCenter server heart beat provides uses 4 terms for switch over and failover process as follows.

    Managed switchover - Manually making the passive server to active and vice versa, with in the summary tab.
    Automatic switchover - Automatically triggered when there is a failure in protected services detected.
    Managed Failover -  If the passive server detect that the active server has failed, can send alerts to administrators, there administrator has to perform a manual failover.
    Automatic Failover - Automatic failover same as automatic switchover, triggers when passive detects that active is not reachable.

    1. Testing Managed Switchover\failover:

    Usually performed when there is a maintenance or reboot required for the active nodes.

    Connect vCenter server heart beat via Manage Server ( Considering that the groups are added already).
    Click on connection under server tab in summary, you will see node, select the passive node and click on make active.
    Successfull completion of switch over indicates the managed switchover completion.

    2. Automatic switchover\failover:

    Here come's the issue.

    Logged on to the active server and did a shutdown of the server and failover didn't happen, was surprised and investigate further, later got a update from vmware support saying that its expected and only in case of power failure or a server crash the auto fail over or switchover will happen.

    So incase of server shutdown, there is no auto failover.

    then powered off the VM and clicked on edit setting, under option tab, clicked on vmware tools and changed the stop option from shutdown to power off.

    then tested power off(that is unplug power cord), auto failover was successful.

    Note: as per the installation document, it is mentioned that VMware recommends against
    attempting to test failover on a properly operating Pair by methods such as unplugging a power cord. At the
    moment power is lost, any data not written to the passive server is lost. VMware recommends that all actions intended to verify operation of the passive server be performed as a switchover rather than a failover.

    Let me know your test out come or issue to discuss more.










    Saturday, February 9, 2013

    vCenter Support Assistant 5.1

    vCenter support Assistant release 24 Jan 2013,


    This is a free plugin for vcenter, to create support request, upload logs, view and update services request etc.

    Tried this at my lab and following are the one that has to noted for successful installation of this plugin.

    1. vcenter support assistant is a appliance, download it from here.
    2. easy installation and configuration refer this.
    3. Appliance need Internet access, make sure if you have proxy you have provide with the right credentials for authentication. If it dont have access to Internet then this will not work.
    4. DNS resolution is important between appliance and vcenter vice versa.
    5. Make sure you have network communication between vcenter and appliance works fine and if there is a firewall necessary ports are open.
    6. on successful installation and configuration, a icon in the vsphere client under solutions and applications will show vcenter support assistant as follows.

    7. click on that and provide the valid login for vmware support.
    8. In the diagnostics all the below should be passed for uploading logs, creating services request.
     
    

    after the appliance configuration few things to be tested to make sure the appliance works fine.

    We need to make sure if the appliance is able to communicate to the below web address and then to vcenter.
       * Connectivity to https://supportassistant.vmware.com and
         https://*.nirvanix.com

       * Connectivity to the vCenter Server and ESX/ESXi hosts
         that you wish to generate log bundles from
    you should pass the below when used wget command.

     # wget https://supportassistant.vmware.com
    --2013-02-10 07:49:08--  https://supportassistant.vmware.com/
    Resolving supportassistant.vmware.com... XX.XX.XX.XX
    Connecting to supportassistant.vmware.com|XX.XX.XX.XX|:443... connected.

    faced lot of issue while configure this, below are once that made issue to me.

    1. issue is while to try to register support assistant, error as "failed to register."
    Fix was communication between vc and appliance was not there.
    used domain account, changed that to local account worked fined.

    2. connectivity of virtual appliance to vmware.com.
    Issue with proxy connection, create a exception for this appliance and resolved.

    DNS resolution between VC and appliance.
    Internet connectivity to appliance.

    Thursday, September 27, 2012

    vShield Manager 5.0.1 Installation and Configuration Part 1


    vShield Manager 5.0.1 Installation and Configuration Part 1

    VMware vShield Manager

    vShield Manager is the centralized network management component of vShield, and is installed as a virtual appliance on any ESXi host in your vCenter Server environment. A vShield Manager can run on a different ESXi host from your vShield agents. The requirements to install vShield Manager are:

    System Requirements

    Component
    Minimum
    Memory
    8GB for all vShield components
    vShield Manager: 8GB allocated, 3GB reserved
    vShield App: 1GB allocated, 1 GB reserved
    vShield Edge compact: 256 MB, large: 1 GB, x-large: 8 GB
    vShield Data Security: 512 MB
    Disk Space
    vShield Manager: 8GB
    vShield App: 5 GB per vShield App per ESX host
    vShield Edge compact: 200 MB, large and x-Large: 256 MB
    vShield Data Security: 6GB per ESX host
    vCPU
    vShield Manager: 2
    vShield App: 1 per vShield App per ESX host
    vShield Edge compact: 1, large and x-Large: 2
    NICs
    2 gigabit NICs on an ESX host for all vShield components

     Software Requirements 
    These are the minimum required versions of VMware products.
    1.VMware vCenter Server 4.0 Update 2 or later
    2.VMware ESX 4.0 Update 2 or later for each server
    NOTE vShield Endpoint and vShield Data Security require ESXi 5.0 Patch 1 and later or ESXi 4.1 Patch 3
    and later.
    3.VMware Tools
    I am using ESXI 5.0.1 and vCenter 5.0.1
    ·         The network port requirements are:

    Port

    Description

    443/TCP

    Secure communication from, to, and among the ESXi host, the vCenter Server, and vShield Data Secrity

    123/UDP

    Communicates between vShield Manager and vShield App for time synchronization

    443/TCP

    Secure communication from the REST client to vShield Manager for using REST API calls

    80 and 443/TCP

    Used for the vShield Manager user interface and initiating connection to the vSphere SDK

    22/TCP

    Communication between the vShield Manager and vShield App and troubleshooting the CLI
    Download the vShield manager ova from VMware website here.
    Installation is valid for both version of vshield Manager 5.0.1 and 5.0.2.
    Log in to the vSphere Client.

    Select File > Deploy OVF Template.
    Click Deploy from file and click Browse to locate the folder on your PC that contains the vShield Manager OVA File.
     
    
     
     
     
    Give the vshield Manager Name as below and click next.

     
    Select the sharded storage, so the vshield manager takes advantage of vmotion and click next.

     
    I will be selecting thin provision, please select as needed and click next.

     
    Select port group that has access to esxi management and vcenter server, Click Next.

     
    Review the information of Name, Folder, Network and finish to complete the deployment.
     
     

     
     

    Complete the installation. The vShield Manager is installed as a virtual machine in your inventory.

    Power on the vShield Manager virtual machine.
    Configuring the Network Settings of the vShield Manager
     
    You must use the command line interface (CLI) of the vShield Manager to configure an IP address, identify the default gateway, and set DNS settings. You can specify up to two DNS servers that the vShield Manager can use for IP address and host name resolution. DNS is required if any ESX host in your vCenter Server environment was added by using the hostname (instead of IP address).
     
    Procedure
    Right-click the vShield Manager virtual machine and click Open Console to open the command line interface (CLI) of the vShield Manager. The booting process might take a few minutes.
    After the manager login prompt appears, log in to the CLI by using the user name admin and the password default.
     
    
    Default username (admin) and password (default) combination as the
    vShield Manager user interface. Entering Enabled mode also uses the password default.
    Enter Enabled mode by using the password default.
    manager> enable
    Password:
    manager#Setup
     
    Now configure the IP addess in the below screen.
     
     
    (Optional) If you have configured network settings for the vShield Manager before, you must reboot the system.
    Log out and log back in to the CLI by using the user name admin and the password default.
     Ping the default gateway to verify network connectivity.



    Log In to the vShield Manager User Interface

    After you have installed and configured the vShield Manager virtual machine, log in to the vShield Manage user interface, vai web browser.

    Procedure
    1.Open a Web browser window and type the IP address assigned to the vShield Manager. The vShield Manager user interface opens in a web browser window using SSL.

    2.Accept the security certificate.

    3 Log in to the vShield Manager user interface by using the user name admin and the password default.

    First thing to change the password, click on setting & reporting and in the right side top, click on change password.





    4. Now logout and login with the changed password.
    Synchronize and Register the vShield Manager with the vCenter Server and Plug-In with the vSphere Client
    You must have a vCenter Server user account with administrative access to complete this task to synchronize. The vSphere Plug-in option lets you register the vShield Manager as a vSphere Client plug-in. After the plugin is registered, you can configure most vShield options from the vSphere Client.
    Procedure
    1 Click Settings & Reports from the vShield Manager Inventory panel.
    2 Click the Configuration tab.
    3 Click the vCenter tab and provide all required information and click on save. 
     

    After synchronize with vCenter inventory will appear under setting & Reports in the left side refer below.
    4 Click vSphere Plug-in in the right side next to vcenter server information and  Click Register.
    4 If you are logged in to the vSphere Client, log out and Log in.
    5 Select an ESX host.
    6 Verify that the vShield tab appears as an option.
     
     
    Date and Time configuration:
    vShield Manager can sync to the NTP server for date and time.
    Procedure:
    1 Logon to vShield Manager.
    2 Click on setting & reporting go to configuration and Date\Time
    Configuring backup for vShield manager database
    Click on setting & reports
    In the right side click on backups, fill the host ip and name details.
     
    This installation and configuration is done with reference to quick start guide in VMware:
     
    This covers Part 1 and Soon with installation of vshield endpoint and permission in part 2.