This content originally appeared on DEV Community and was authored by Prakash Rao
This post provides the necessary documentation for migrating a simulated deployment of SAP NetWeaver OnPrem (simulated) to a different AWS environment.
Overview
The migration process involves the following high-level steps:
- Launch an EC2 instance and install SAP NetWeaver on it.
- Create a simulation as in on-prem, the SAP NetWeaver deployment in the AWS environment.
- Convert the EC2 instance into an OVA file and store it in Amazon S3.
- Create an Amazon Machine Image (AMI) and EBS snapshot.
- Launch a new EC2 instance from the AMI and EBS snapshot in the new AWS environment.
Prerequisites
Before you can begin the migration process, you will need to have the following:
- An AWS account with sufficient privileges to create and manage the necessary resources.
- Access to the AWS Management Console and AWS CLI.
- Familiarity with AWS services and concepts such as EC2, S3, and VPC.
Migration Process
Step 1,2: Launch an EC2 instance and install SAP NetWeaver on it
Launch an EC2 instance in the AWS environment and install SAP NetWeaver on it. Ensure that the instance is properly configured and that SAP NetWeaver is running correctly.
Now, let's install the necessary packages require for the SAP:
sudo apt-get install libaio1
sudo apt-get install csh
sudo apt install libc6
sudo apt-get install uuid
sudo service uuidd start
sudo update-locale LANG=”en_US.UTF-8"
For setting up VNC:
sudo apt update && sudo apt upgrade
sudo sed -i 's/^PasswordAuthentication no/PasswordAuthentication yes/' /etc/ssh/sshd_config
sudo /etc/init.d/ssh restart
sudo passwd ubuntu
sudo apt install xrdp xfce4 xfce4-goodies tightvncserver
echo xfce4-session> /home/ubuntu/.xsession
sudo cp /home/ubuntu/.xsession /etc/skel
sudo sed -i '0,/-1/s//ask-1/' /etc/xrdp/xrdp.ini
sudo service xrdp restart
tightvncserver
For downloading the SAP netweaver let's install firefox:
sudo add-apt-repository ppa:ubuntu-mozilla-security/ppa
sudo apt-get update
sudo apt-get install firefox
Now let's edit system configuration needed for SAP:
Update Hostname
sudo vim /etc/hostname
Check the IP Address
sudo ip addr show
sudo vim /etc/hosts
sudo cat /etc/hosts
Check Hosts and Hostname
sudo cat /etc/hosts
sudo cat /etc/hostname
Restart System after changes and validate the changes
sudo reboot
Now the installation of netWeaver is completed, let's install SAP frontend GUI to access the netweaver.
Give the connection a name, and add the public ip address assigned to the SAP and save it.
Now add the credentials, generally if it is developer ABAP SPO2 7.52 version, the default details are
Client: 001
username: SAP*
password: Appl1ance
Now, let's add a user, type SU01 in the searchbox, Select create user
Now the user is created.
we'll use this created user to login to SAP now
Now we're logged in as created user.
Step 3: Convert the EC2 instance into an OVA file and store it in Amazon S3
Use the AWS CLI to convert the EC2 instance into an OVA file and store it in Amazon S3. Ensure that the OVA file is stored in a secure and accessible location.
for this step if we want to convert manually to let's say to VMware platform we can use below cli to convert format and export it.
https://docs.aws.amazon.com/vm-import/latest/userguide/vmexport.html
But in my case to make it easier, I am just creating image from the current VM in next step utilizing AWS automation to reduce manual overhead.
Step 4: Create an Amazon Machine Image (AMI) and EBS snapshot
Ensure that the AMI and EBS snapshot are properly configured and tagged for easy identification.
Wait until the AMI becomes available, it will take a while.
Step 5: Launch a new EC2 instance from the AMI and EBS snapshot in the new AWS environment
Now, let's Launch a new EC2 instance from the AMI and EBS snapshot in the new AWS environment with same config as previous instance.
wait until it comes to active status
Now note down the new public ip of the migrated instance
Now let's create a new connection to the new instance with the noted ip address.
Now instead of default login credentials, let's use the user and it's credentials we created to check if the migrated VM is same as the previous VM.
Now we Ensured that the instance is properly configured and that SAP NetWeaver is running correctly.
Step 6: Cleanup
Now to reduce any further costs, delete the EC2 instances launched, deregister AMI and delete the snapshot.
This content originally appeared on DEV Community and was authored by Prakash Rao
Prakash Rao | Sciencx (2024-08-31T16:24:13+00:00) SAP NetWeaver Migration from On-Prem to AWS. Retrieved from https://www.scien.cx/2024/08/31/sap-netweaver-migration-from-on-prem-to-aws/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.