Deploying NPS toolkit VM

This procedure is applicable for Linux host machine.
NOTE:

For Windows or other host machines, bring up virtual machine as specified in Specifications of NPS Toolkit Virtual Machine.

Prerequisites
  • Networking and switches
    • Ensure that all connections are as per the port map.

    • Ensure that the management interface of HPE FlexFabric 5900 (management switch) is connected with the customer infrastructure switch and part of iLO VLAN.

    • Ensure that M0/0/0 of HPE FlexFabric 5900 is defined and statically assigned in the range of iLO-OOBM range.

    • Ensure that the OAM and iLO IP addresses of the core switch are defined.

  • NPS toolkit host
    • Ensure that OAM IP is assigned to the NPS toolkit host.

    • Ensure that there is Internet connectivity available for NPS toolkit host.

    • Ensure that the capacity of the directory for copying the install bits is more than 300 GB.

    • Ensure that the NPS toolkit host has minimum 4GB RAM and 4 CPUs allocation.

    • Ensure that latest centOS 7 is installed in the NPS toolkit host. This must be a virtualization host.
      NOTE:

      During centOS installation in the host machine, select Software Selection > Base Environment and click Virtualization Host.

  • NPS toolkit VM
    • Ensure that you have downloaded the latest NPS and VIM bits from the My HPE Software Center kiosk.

    • Ensure that a Customer Network IP address is provided for the NPS toolkit VM in the TICG while creating the input.json file. NPS toolkit VM is accessed remotely using the assigned Customer Network IP address.

Procedure
  1. Log in to NPS toolkit host.
  2. Create a sync folder using the following commands:
    mkdir /var/nps
    cd /var/nps
  3. Copy the nps*.tar.gz and Cloud_*.tar.gz files that you downloaded from the My HPE Software Center to the sync folder.
    NOTE:

    You can change the sync folder from /var/nps to any other folder of your choice. However, ensure that the same input is mentioned in the source_input.rc for sync_folder variable, otherwise the NPS toolkit VM creation will fail.

  4. Rename nps2-*.tar.gz to nps2.tar.gz and Cloud_*.tar.gz to cloud.tar.gz using the following commands:
    mv nps2-*.tar.gz nps2.tar.gz
    mv Cloud_*.tar.gz cloud.tar.gz
    
  5. Extract the nps2.tar.gz using the following commands:
    tar -zxvf nps2.tar.gz
    
    NOTE:

    After untar operation, "nps2" folder is created.

  6. Update the source_input.rc file available in /var/nps/nps2/install/utils folder with all the information required for NPS toolkit VM installation. Navigate using the following command: .
    1. Navigate to /var/nps/nps2/install/utils/source_input.rc file using the following command:
      cd /var/nps/nps2/install/utils
    2. Edit the source_input.rc
    vi source_input.rc
    The following is a sample file and can be used for reference only:
    export customer_interface=eno1
    export customer_ip=xx.xx.xx.xx
    export customer_gw=xx.xx.xx.xx
    export vm_name=NPS
    export host_name=NPSVM
    export root_password=*****
    export sync_folder=/var/nps
    export resize=yes
    export vm_size=300
    export VIM_TYPE=vmware
    export vm_memory=2
    export vm_vcpu=2
    export infrastructure=baremetal
    export vagrant_user_password=vagrant
    export release_name=nps2
    export proxy_port=8080
    export proxy_hostname=xx.xx.xx.xx
    export pool_id_physical=""
    export pool_id_virtual=""
    export rhel_username=""
    export rhel_password=""
    export unregister_host=no
    export unregister_vm=no

    For more information about the parameters, see source_input.rc file update for deploying NPS toolkit VM.

  7. Update the packages using the following command:
    source update_packages.sh
    The following prompt is displayed:
    Reboot required !! type yes/y and press Enter to reboot now, 
    else press any other key followed by Enter key if you want to manually reboot later : 
    
  8. Type yes/y to reboot the NPS toolkit host.
  9. Log in to the NPS toolkit host.
  10. Create NPS toolkit VM using the following commands:
    cd /var/nps/nps2/install/utils
    source create_nps_vm.sh

    NPS toolkit VM is created.

  11. Navigate to <sync_folder>/nps and run the following command to verify that the NPS VM is operational:
    cd <sync_folder>/nps
    source source.rc
    vagrant status

    Where, <sync_folder> is the folder that you created to copy the NPS toolkit and VIM automation tar balls.

  12. Log in to the NPS toolkit VM.
  13. Verify the size of the root partition in the NPS toolkit VM:
    1. Login to the NPS toolkit VM using the credentials defined in the source_input.rc file and run the following command:
      df -h
      • If the <resize> parameter was set to yes the <vm_size> parameter displays the user-defined size.

      • If the <resize> parameter was set to no, the <vm_size> parameter displays the default size (29GB).