Sign In
Forgot Password

Don’t have an account? Create One.

Customize Amazon Machine Image (AMI) with the NetBackup client installed for the Red Hat Linux and Windows operating systems

Tool

Abstract

The create_ami.sh script, which is AWS CLI based, creates AMI with RHEL and Windows platform with NetBackup client installed, used by Bare Metal Restore (tm) for AWS VM recovery.

Description

The script will perform the following tasks:

  • Accept base AMI and NetBackup client installer path as input.
  • Generate new AMI with NetBackup client installed on it.
  • Provide amiid of generated AMI which is further used as input during the 'Restore to cloud' operation.

 

Preparing Base AMI for Windows platform

 

Pre-requisites:

  • Base AMI OS - Windows Server 2019 and above

 

The following are steps to make Windows AMI, SSH enabled which is required during instance creation.

 

  1. Create instance from Windows BASE AMI.
  2. Download create_ami_v2.zip from the download centre.
  3. Extract setAuthKeyPath_v1.ps1 and configssh_v1.cmd.
  4. Create a folder C:\temp and copy the above extracted scripts in the folder.
  5. Run configssh_v1.cmd on elevated command prompt.
  6. Shut down the instance.
  7. Generate Base AMI manually using AWS UI / CLI.
  8. The above created AMI will be used as input for create_ami_v2.sh script.

 

Following are the scenarios where we'll need the AMI ID:

  • bmrprep command line:

/usr/openv/netbackup/bin/bmrprep -restore -client <hostname> -config <configname> -keyfilepath <keypath> -keyname <keyname> -amiid <amiid> -cloud -logging

 

  • BMR restore to cloud using WebUI:
  1. Expand Bare Metal Restore > Hosts > Bare Metal Restore clients.
  2. Select a client or a client configuration.
  3. Select Actions >  Restore to cloud.

 

Applies to the following product releases:

NetBackup 10.5

The create_ami.zip file contains: create_ami.sh

 

Description:

create_ami.sh is AWS CLI based script to create custom AMI with NetBackup client installed on it. It supports Red Hat Enterprise Linux (RHEL) platform

 

Prerequisites:
AWS CLI configured with appropriate permissions. https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html
 

Synopsis:
create_ami.sh -b NBClient_build_location_full_path -k keyfile_full_path
                    -n name_for_the_client_ami_to_be_created -g security_group_id -i instance_type
                    -s subnet_id -r region -a base_ami_id -p os_platform -c requestor's_name  [ -t key=value -t key=value -t ... ]

Parameters:
-b NBClient_build_location_full_path: RHEL NetBackup client build location.
-k keyfile_full_path: Path of key file in pem format.
-n name_for_the_client_ami_to_be_created: Name of AMI to be created.
-g security_group_id: Security group ID for AMI to be created.
-i instance_type: Instance type of AMI to be created.
-s subnet_id: Subnet ID for AMI to be created.
-r region: Region in which newly created AMI will get located.
-a base_ami_id: Base AMI ID: AMI id of clean OS without any NBU client installation.
-p os_platform: OS platform value can be RHEL
-c requestor’s name: Requester’s name
-t key=value: Tag key and its value.

 

Note: Once the script runs successfully, it outputs the newly created AMI ID. Utilize this AMI ID as the amiid parameter for the Restore to Cloud operation.

 

The create_ami_v2.zip file contains the following scripts:

·       create_ami_v2.sh

·       configssh_v1.cmd

·       setAuthKeyPath_v1.sh

 

Description:

create_ami_v2.sh is AWS CLI based script to create custom AMI with NetBackup client installed on it. It supports Red Hat Enterprise Linux (RHEL) and Windows platforms (Windows Server 2019 and later).

 

Synopsis:

 

create_ami_v2.sh -b NBClient_build_location_full_path -k keyfile_full_path
                    -n name_for_the_client_ami_to_be_created -g security_group_id -i instance_type
                    -s subnet_id -r region -a base_ami_id -p os_platform -c requestor's_name  [ -t key=value -t key=value -t ...  -u eeb_installer_path ]

 

Updated parameter information in create_ami_v2.sh

-p os_platform: OS platform value can be RHEL or Windows

-u eeb_installer_path: Path of the eeb installer

 

setAuthKeyPath_v1.sh

  • Internally called by configssh_v1.cmd

configssh_v1.cmd

  • No parameters required
  • Creates Windows custom AMI with SSH enabled. This custom AMI is further used as base_ami_id in create_ami_v2.sh script.

 

Applies to the following product releases

Update files

File name Description Version Platform Size