AWS Classroom series – 13/Feb/2021

Migration

  • In the Enterprise setup we have pool of servers which help in creating virtual machines, databases, storage servers etc Preview
  • The goal of this discussion is to migrate the workloads to AWS
  • AWS provides the following Migration Strategies named as 6 R’s of Migration

The 6 R’s

  • Six R’s are mentioned below Refer Here for official documentation
    • Re-host: Moving application as it is from on-premise to cloud. This is referred and "lift and shift" migration
    • Re-Platform: Referred as lift tinker and shift. Make few cloud optimizations and retain the core architecture of application and migrate.
    • Re-factor/Re-architect:
      • Rewrite or change the architecute to use cloud native features
    • Re-purchase: Move to a software-as-service by purchasing licenses.
    • Retire: Removing the applications that are no longer needed
    • Retain: Referred as re-visit Preview
  • The migrations which we will be doing will be lift and shift (Re-host)
  • The migrations which we will look into
    • Migrate from Hyper-V to AWS
    • Migrate from VmWare to AWS
    • Migrate from on-prem mysql to RDS
    • Migrate from on-prem postgres to RDS
    • Migrate storage from on-prem to AWS Storage Services

Lab Environment for On-premise

  • To create a lab environment for On-premise
    • We will create an azure account
    • We will create a windows server and enable hyper-v
    • We will be creating two vms and install some software and config into it
    • Then we use AWS Server Migration Service to migrate the vm’s created on Hyper-V into AWS

Lets create a lab environment

  • Lets Create a Windows server as mentioned in the document Refer Here Preview Preview Preview Preview Preview Preview Preview Preview Preview
  • Now wait till the vm is created and login into the vm and do the following steps
    • Launch Powershell as Admin
    • Install Chocolatey Refer Here
    • Install Google Chrome choco install googlechrome -y
  • Now Enable Hyper-V by executing the powershell command Refer Here
Install-WindowsFeature -Name Hyper-V -IncludeManagementTools -Restart

Preview

  • Post restart connect to this mahcine and setup internet connectivity to guest vm Refer Here Preview Preview
  • Now to assign ip to guest vm follow the steps in option 1 Refer Here
  • Now we need to create virtual machines on this server
  • To create vm’s easily on the hyperv host, lets use vagrant Refer Here & Refer Here for vagrant tutorial
  • Install vagrant using chocolatey on the hyper-v host choco install vagrant -y
  • After vagrant installation. Relaunch powershell as admin.
vagrant --version
mkdir c:\vms
mkdir c:\vms\ubuntu
mkdir c:\vms\centos
cd c:\vms\ubuntu
vagrant init generic/ubuntu2004
vagrant up --provider hyperv
cd c:\vms\centos
vagrant init centos/7
vagrant up --provider hyperv
  • Ensure both vms are running. Now shutdown the vms from hyper v manager and stop the azure vm

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

About continuous learner

devops & cloud enthusiastic learner