AWS Classroom Series – 01/Oct/2020

Lab Setup

  • We will create a Windows Server 2016 With Hyper V enabled
  • In that server we will create
    • Ubuntu 18 Server
      • Tomcat
    • Centos 7 Server
      • mysql
    • Windows 2016 Server
      • IIS Server
      • SQL Server
  • Now we would like to migrate the servers and databases to AWS/Azure.
  • And the Same Setup with VM Ware ESXI and VCenter enabled.
  • If you have Physical System
    • We will create these workloads on them
    • This machine needs a decent internet connection
  • Create an Azure Free Account
    • We will create a hyperv enable Windows 2016 server.
    • Refer Here for creating a vm
    • In this class i will be using 8 vcpu and 16 GB of RAM.
    • As part of first month credit of azure (200$) you cannot create more than 4 vcpu, use a machine with 4 Vcpu (if you have newly azure account)
    • The approximate bill for migration will be less than 500 rs.

Lab Setup

  • Create a Azure VM With
    • OS: Windows Server 2016
    • Size: D4s v3
  • Now connect to the machine using Remote Desktop
  • Launch Powershell as administrator
Install-WindowsFeature -Name Hyper-V -IncludeManagementTools -Restart
  • After Restart, Relaunch Powershell as Administrator and Create a NAT virtual Network Switch to enable internet connectivity for guest virtual machine
New-VMSwitch -Name "InternalNAT" -SwitchType Internal
  • Execute Get-NetAdapter and make a note of IfIndex Preview
  • Now Create a ip address
New-NetIPAddress -IPAddress -PrefixLength 24 -InterfaceIndex <ifindex-noted>
  • Create a NAT network
New-NetNat -Name "InternalNat" -InternalIPInterfaceAddressPrefix
  • To assign IP Addresses to VMs Lets configure DHCP. Follow Option 1 in the documentation over here
  • Install DHCP as mentioned in the document
  • Next Steps:
    • Install Chocolatey and restart the machine Refer Here
    • Then install googlechrome and vagrant
    choco install googlechrome -y
    choco install vagrant -y
    • Restart if necessary, Relaunch Powershell as admin. Now lets download centos7 and ubuntu 18 images using vagrant
    vagrant box add centos/7
    vagrant box add generic/ubuntu1804

Leave a Reply

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

About learningthoughtsadmin