Translation Notice
Please note that this content includes text that has been machine-translated from English. Veritas does not guarantee the accuracy regarding the completeness of the translation. You may also refer to the English Version of this knowledge base article for up-to-date information.
Customize Amazon Machine Image (AMI) with the NetBackup client installed for the Red Hat Linux and Windows operating systems
Abstract
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.
- Create instance from Windows BASE AMI.
- Download create_ami_v2.zip from the download centre.
- Extract setAuthKeyPath_v1.ps1 and configssh_v1.cmd.
- Create a folder C:\temp and copy the above extracted scripts in the folder.
- Run configssh_v1.cmd on elevated command prompt.
- Shut down the instance.
- Generate Base AMI manually using AWS UI / CLI.
- 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:
- Expand Bare Metal Restore > Hosts > Bare Metal Restore clients.
- Select a client or a client configuration.
- Select Actions > Restore to cloud.
Applies to the following product releases:
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 |
---|