ESXi BareMetal Provisioning with SAN Boot and N1Kv Workflow on Vblock 3XX

Version 15

    Workflow Name:


    Deploy_ESXi_Host_On_Vblock_3XX


    Description: 


    This workflow provisions ESXi Host booting from SAN and Integrates with vCenter Server and Nexus 1000v DVSwitch on Vblock 3XX Converged Stack.


    Compatible UCS Director Versions:


    UCS Director 5.0.x


    Category:   


    Virtualization, Compute, Network and Storage 


    Components:

     

    Cisco UCS Director

    Cisco UCS Director Baremetal Agent

    VCE Vblock 3XX

     

    Prerequisites:

     

    • The Vblock 3XX Infrastructure components (VMware vCenter, Cisco UCSM, Cisco Nexus 5Ks, MDS Switches (If any), Cisco Nexus 1000v & EMC VNX Storage Array) are added into UCS Director
    • UCS Director BMA is integrated into UCS Director
    • VMware ESXi Image (with N1Kv) from VCE is configured in BMA. For more information please refer 'Configure ESXi PXE Image'
    • Modify 'ks.cfg' file under /opt/cnsaroot/templates/<ESXi_Image_Name> folder to enable ESXi Install on SAN Boot LUN
      • Comment the below line with '#"
        # install --firstdisk --overwritevmfs
      • Uncomment the below line by removing '#"

                    install --firstdisk=remote --overwritevmfs


    • UCS Service Profile Template is created with 2 vNICs & 2 vHBAs, Boot Order is configured with FC Boot First and LAN Second, FC Target Ports are added into SAN Boot Policy and Boot LUN ID is set to '0'. vHBA-0 desired order set to '0' and vHBA-1 desired order set to '1'. Service Profile's Power State set to 'Off'.
    • UCS Service Profile Template vNICs are configured with BMA PXE VLAN and set it as Native VLAN.
    • Create 'Port Group to DV Port Group Mapping Policy' in UCS Director to Migrate ESXi default vSwitch0 to N1Kv DVSwitch during workflow execution.

             

      • Policies --> Virtual/Hypervisor Policies --> Network --> Port Group to DV Port Group Mapping Policy
      • Click on 'Add' --> Enter 'Policy Name' as 'Mgmt_DV_PortGroup_Mapping_Policy'
      • Add comments to 'Description' field (optional)
      • Select ‘Cloud Name’ from dropdown (vCenter Account)
      • Click on 'Next'
      • Click on “+” button to add the Mapping.
      • Enter ‘Port Group Name’ as ‘Management Network’
      • Select appropriate ‘DV Port Group Name’ from the drop down. (This port group should be for ESXi Management Network on DVSwitch)
      • Click on 'Submit' and Click on 'Submit'


     

    Workflow Tasks Included:

     

    1. Create UCS Service Profile from Template
    2. Select UCS Server
    3. Setup PXE Boot with BMA Selection
    4. Generic Configure SAN Zoning
    5. Create VNX LUN
    6. Create VNX Storage Group
    7. Add VNX Host Initiator Entry - vHBA1
    8. Add VNX Host Initiator Entry - vHBA2
    9. Add VNX Hosts to VNX Storage Group
    10. Add VNX LUN to Storage Group
    11. Associate UCS Service Profile
    12. Reset UCS Server
    13. Monitor PXE Boot
    14. Reset UCS Server
    15. Wait for Specified Duration
    16. Register Host with vCenter
    17. Create VMware Port Group
    18. Add Hosts to DVSwitch
    19. Migrate vSwitch VMkernel Port to DVSwitch (Custom Task)
    20. Migrate Default vSwitch to DVSwitch by Mapping Policy
    21. Add Virtual Adapter (vMotion Interface)


    User Inputs:

     

    The below user inputs should be provided by user after executing the workflow.

     

    User InputUser Input Description
    ESXI_HOSTNAMEEnter ESXi Hostname
    ESXI_CLUSTERSelect ESXi Cluster to which it need to be added
    ESXI_MANAGEMENT_IPEnter ESXi Management Network IP Address
    ESXI_VMOTION_IP_OR_IPPOOLEnter an IP Address or IP Pool range for VMotion interface
    N1KV_L3_CONTROL_IP_OR_IPPOOLEnter IP Address or IP Address Pool Range for N1Kv L3 Control Access Interface.
    UCS_SERVER_BLADESelect UCS Server Blade to install VMware ESXi Hypervisor

     

     

    Admin Inputs:


    The Admin Input values are pre-defined in the workflow by the admin user. Edit the Workflow properties, go to user inputs section and modify the below inputs appropriately.


     

    User InputUser Input Description
    ESXI_ROOT_PASSWORDEnter ESXi root user password
    ESXI_MANAGEMENT_SUBNETMASKEnter VMware ESXi Management Network's Subnet Mask
    ESXI_MANAGEMENT_GATEWAY_IPEnter VMware ESXi Management Network's Gateway IP
    ESXI_MANAGEMENT_VLANEnter ESXi Management VLAN ID
    ESXI_VMOTION_IP_POOLEnter ESXi VMotion IP Pool (Ex: 192.168.100.100-192.168.100.200)
    ESXI_VMOTION_SUBNET_MASKEnter ESXi VMotion Subnet Mask
    DOMAIN_NAME_SERVER_IPEnter DNS Server IP Address
    ESXI_HOST_LICENSEEnter ESXi Host License Key
    ESXI_VMOTION_DV_PORTGROUPSelect N1Kv DV Port Group for vMotion Interface
    VCENTER_ACCOUNTSelect VMware vCenter Account
    VCENTER_DATACENTER_NAMEEnter VMware vCenter Datacenter Name (The Datacenter in which the ESXi Host is going to be added)
    ESXI_CLUSTERSelect ESXi Cluster to which host need to be added
    N1KV_DVSWITCHSelect N1Kv DV Switch Name
    N1KV_L3_CONTROL_PORTGROUPSelect N1Kv L3 Control Access Port Group
    N1KV_MGMT_UPLINK_PORTGROUPSelect N1Kv Management Uplink Port Group
    N1KV_L3_CONTROL_VLANEnter VLAN ID for N1Kv L3 Control Access Interface
    N1KV_L3_CONTROL_IP_RANGEEnter IP Range for N1Kv L3 Control Access Network (Ex: 192.168.99.100-192.168.99.200)
    N1KV_L3_CONTROL_SUBNET_MASKEnter Subnet Mask for N1Kv L3 Control Access Network
    MGMT_PORTGROUP_MAPPING_POLICYSelect N1Kv Management Portgroup Mapping Policy
    UCS_ORGANIZATIONSelect UCS Organization
    UCS_SP_TEMPLATESelect UCS Service Profile Template
    SAN_FABRIC_SWITCH_A1Select SAN Fabric Switch A
    SAN_FABRIC_SWITCH_B1Select SAN Fabric Switch B
    SANBOOT_TARGET_PORTS_FABRIC_ASelect VNX FC Target Port for SAN Zoning on Fabric A
    SANBOOT_TARGET_PORTS_FABRIC_BSelect VNX FC Target Port for SAN Zoning on Fabric B
    SAN_CONTROLLER_ACCOUNTSelect SAN Boot Storage Controller
    SANBOOT_LUN_SIZESelect SAN Boot LUN Size (GB)
    SANBOOT_HOST_LUN_IDEnter SAN Boot LUN Host ID (Should match UCS Service Profile Template Boot Policy)
    VNX_FC_TARGET_PORT_FABRIC_ASelect VNX FC Target Port for SAN Boot on Fabric A
    VNX_FC_TARGET_PORT_FABRIC_B

    Select VNX FC Target Port for SAN Boot on Fabric B



    Workflow Additional Configuration:


    After configuring the admin inputs, open the workflow using workflow designer and modify the below "TASKS" with appropriate user inputs. (Note: In upcoming versions, the below inputs should be able to configured as admin input values)


    • Select UCS Server (Select UCS Server for ESXi Host): Open the Task ---> Click 'Next' ---> Click 'Next' ---> Click on 'Revalidate' button --> Select appropriate 'UCSM' account, Click 'Next' ---> Click 'Submit'
    • Setup PXE Boot with BMA Selection (Configure PXE Server for ESXi Install):   Open the Task ---> Click 'Next' ---> Click 'Next' ---> Select BMA Account ---> Select configured ESXi OS Image in BMA and Set appropriate 'Timezone', Click 'Next' ---> Click 'Submit'
    • Create VNX LUN (Create SANBoot LUN for ESXi Host):   Open the Task ---> Click 'Next' ---> Click 'Next' ---> Select EMC VNX Account, Select Storage Pool Type, Select RAID Type, and Select RIAD Group Name for New LUN, Click 'Next' ---> Click 'Submit'
    • Add VNX Host Initiator Entry (Add ESXi vHBA-1 Host Initiator):   Open the Task ---> Click 'Next' ---> Click 'Next' ---> Select EMC VNX Account, Click 'Next' ---> Click 'Submit'
    • Add VNX Host Initiator Entry (Add ESXi vHBA-2 Host Initiator):   Open the Task ---> Click 'Next' ---> Click 'Next' ---> Select EMC VNX Account, Click 'Next' ---> Click 'Submit'
    • Register Host with vCenter (Add ESXi Host to Cluster on vCenter):   Open the Task ---> Click 'Next' ---> Click 'Next' ---> Click on 'Revalidate' button, Click 'Next' ---> Click 'Submit'



    Instructions for Use:


    1. Download the attached .ZIP file below to your computer. *Remember the location of the saved file on your computer.
    2. Unzip the file on your computer. Should end up with a .WFDX file.
    3. Log in to UCS Director as a user that has "system-admin" privileges.
    4. Navigate to "Policies-->Orchestration" and click on "Import".
    5. Click "Browse" and navigate to the location on your computer where the .WFDX file resides. Choose the .WFDX file and click "Open".
    6. Click "Upload" and then "OK" once the file upload is completed, Select 'Deploy_ESXi_Host_On_Vblock_3XX' and Then click "Next".
    7. Click "Submit".
    8. A new folder called 'Vblock-3XX-Validated' should appear in "Policies-->Orchestration" that contains the imported workflow. You will now need to update the included tasks with information about the specific environment. (See Above)