Migrate Windows VM from Hyper-V to AWS

MIGRATE WINDOWS VM FROM HYPER-V TO AWS

 

In this blog, we will show you the Migrate Windows VM from Hyper-V to AWS

 

ENVIRONMENT OVERVIEW

 

  • We have installed Hyper-V Role on windows 2016 server in our Lab environment.

Steps to Migrate Windows VM from Hyper-V to AWS

 

  • Also, we have created an external V-switch which will provide internet access to the Hyper-V VMs.

 

 

DOWNLOAD AND INSTALL SMS CONNECTOR

 

  • Open the web browser and download the SMS connector from the below URL.

https://s3.amazonaws.com/sms-connector/AWS-SMS-Connector-for-SCVMM-HyperV.zip

 

  • Extract the files to the desired drive.

 

 

IMPORT SMS CONNECTOR VM IN HYPER-V

 

  • Open the Hyper-V snap-in and click on the Import Virtual Machine.

Steps to Migrate Windows VM from Hyper-V to AWS

 

  • A new popup window will show up. Click Next to continue.

 

  • Provide the SMS connector folder which we extracted earlier.

 

  • Select the Virtual Machine from the list.

 

  • Select the Copy the virtual machine (create a new unique ID) option.

 

  • You can choose the different file location to store the VHD files or leave defaults.

 

 

  • Select the correct external virtual switch from the drop-down list.

 

  • Review the settings and click on the Finish button.

 

CONFIGURING AWS SMS CONNECTOR

 

  • Power on the SMS Connector VM.

Steps to Migrate Windows VM from Hyper-V to AWS

 

  • After a few seconds, the system will prompt for login credentials.

 

  • Type the username as ec2-user and password as ec2pass.

 

  • Run the sudo setup.rb command to display the configuration menu. Type ec2pass as a password when it prompts.

 

  • Type 2 to reconfigure the network settings on this VM.

 

  • Again type 2 to setup static IP.

 

  • Provide the IP information for this VM.

 

 

  • IP has been configured successfully.

 

INSTALLING HYPER-V CONFIGURATION SCRIPT

 

Steps to Migrate Windows VM from Hyper-V to AWS

 

  • Open the PowerShell window and type the below command to verify the MD5 Hash.

Get-FileHash aws-sms-hyperv-setup.ps1 -Algorithm MD5

Steps to Migrate Windows VM from Hyper-V to AWS

 

  • Use the below command to validate the SHA256.

Get-FileHash aws-sms-hyperv-setup.ps1 -Algorithm SHA256

Steps to Migrate Windows VM from Hyper-V to AWS

 

  • Download the below files and compare the above MD5 and SHA256 values.

https://s3.amazonaws.com/sms-connector/aws-sms-hyperv-setup.ps1.md5

https://s3.amazonaws.com/sms-connector/aws-sms-hyperv-setup.ps1.sha256

 

Steps to Migrate Windows VM from Hyper-V to AWS

 

  • Also, we need to check the digital signature of aws-sms-hyperv-setup.ps1 file and make sure it’s signed for AWS.

Steps to Migrate Windows VM from Hyper-V to AWS

 

  • We set the execution policy to unrestricted in our demo environment to execute the PowerShell Scripts.

set-executionpolicy unrestricted

Steps to Migrate Windows VM from Hyper-V to AWS

 

  • Now, execute the aws-sms-hyperv-setup.ps1 file. We select the option 1 as per our Lab environment.

Steps to Migrate Windows VM from Hyper-V to AWS

 

  • Provide the IP address of the SMS connector VM.

Steps to Migrate Windows VM from Hyper-V to AWS

 

  • Provide the username which has administrator permission for Hyper-V. Also, allow the script to make changes in windows system configuration.

Steps to Migrate Windows VM from Hyper-V to AWS

 

  • Script completed successfully.

Steps to Migrate Windows VM from Hyper-V to AWS

 

 

CONFIGURING HYPER-V SMS CONNECTOR

 

  • Browse the AWS SWS Connector VM IP through a web browser. Click on Get started now.

Steps to Migrate Windows VM from Hyper-V to AWS

 

  • Review the License Agreement and click Next.

Steps to Migrate Windows VM from Hyper-V to AWS

 

  • Provide a password for the management console.

Steps to Migrate Windows VM from Hyper-V to AWS

 

  • Verify the network configuration information.

Steps to Migrate Windows VM from Hyper-V to AWS

 

  • In the Log Log Uploads and Upgrades page, select Upload logs automatically & AWS Server Migration Service auto-upgrade checkboxes.

Steps to Migrate Windows VM from Hyper-V to AWS

 

  • Select the region where our migrated VMs to be located.

Steps to Migrate Windows VM from Hyper-V to AWS

 

  • For AWS credentials, we have created a new user and its members of ServerMigrationConnector & ServerMigrationServiceRole roles.

Steps to Migrate Windows VM from Hyper-V to AWS

 

  • Provide Access & Secret key of that server in the relevant section.

Steps to Migrate Windows VM from Hyper-V to AWS

 

  • You can create a new Access & Key through the IAM console. Go to users section and click on the specified username the switch to security credentials.

Steps to Migrate Windows VM from Hyper-V to AWS

 

Steps to Migrate Windows VM from Hyper-V to AWS

 

  • You can create a new access key by clicking the create button.

 

Steps to Migrate Windows VM from Hyper-V to AWS

 

  • Choose the VM Manager Type.

Steps to Migrate Windows VM from Hyper-V to AWS

 

  • Provide the Hyper-V Host login credentials.

Steps to Migrate Windows VM from Hyper-V to AWS

 

  • Then type the IP of Hyper-V Host and Click on the Verify cert button.

Steps to Migrate Windows VM from Hyper-V to AWS

 

  • It will popup a new window, click on the Trust button.

Steps to Migrate Windows VM from Hyper-V to AWS

 

  • Make sure that you have selected Ignore Minor Errors

Steps to Migrate Windows VM from Hyper-V to AWS

 

  • AWS SMS connector configuration completed successfully.

Steps to Migrate Windows VM from Hyper-V to AWS

 

 

CREATING IAM ROLE FOR SMS

 

  • Open AWS console and search for the IAM service.

Steps to Migrate Windows VM from Hyper-V to AWS

 

  • Then click on Roles – Create Role option.

Steps to Migrate Windows VM from Hyper-V to AWS

 

Steps to Migrate Windows VM from Hyper-V to AWS

 

  • Select the SMS service and move to the permission page.

Steps to Migrate Windows VM from Hyper-V to AWS

 

  • Make sure that Server Migration Service Role has been added to the list.

Steps to Migrate Windows VM from Hyper-V to AWS

 

  • We leave the tags as default.

Steps to Migrate Windows VM from Hyper-V to AWS

 

  • Provide a name and description for this role and click on Create Role.

Steps to Migrate Windows VM from Hyper-V to AWS

 

  • The new role created successfully.

Steps to Migrate Windows VM from Hyper-V to AWS

 

MIGRATE WINDOWS VM HYPER-V TO AWS

 

  • Go to Server Migration Service (SMS) and click on the connectors link.

Steps to Migrate Windows VM from Hyper-V to AWS

 

Steps to Migrate Windows VM from Hyper-V to AWS

 

  • You will able to see our connector appliance that was installed in our on-premises environment.

Steps to Migrate Windows VM from Hyper-V to AWS

 

  • Click on the Import server catalog to get the list of VMs which are available in the Hyper-V host.

Steps to Migrate Windows VM from Hyper-V to AWS

 

  • After a few seconds, you will get the list of available VMs in your on-prem environment.

Steps to Migrate Windows VM from Hyper-V to AWS

 

Steps to Migrate Windows VM from Hyper-V to AWS

 

  • Select the server to migrate to AWS and click on Create Replication Job.

Steps to Migrate Windows VM from Hyper-V to AWS

 

  • Desire the License type from the drop-down list and click Next.

Steps to Migrate Windows VM from Hyper-V to AWS

 

  • Select the Replication Job Type & Start replication run settings based on your requirements.

Steps to Migrate Windows VM from Hyper-V to AWS

 

  • Provide the IAM role name which we created earlier and click on Next.

Steps to Migrate Windows VM from Hyper-V to AWS

 

  • Click on the create button to start the Migration process.

Steps to Migrate Windows VM from Hyper-V to AWS

 

  • Once the migration is completed, a new AMI will be available under the images section.

Steps to Migrate Windows VM from Hyper-V to AWS

 

Hyper-V AWS Migration

 

REFERENCE

https://docs.aws.amazon.com/server-migration-service/latest/userguide/HyperV.html

 

Thanks for reading this blog. We hope it was useful for you to learn the steps to migrate Windows VM from Hyper-V to AWS.

Share on facebook
Facebook
Share on twitter
Twitter
Share on pinterest
Pinterest
Share on linkedin
LinkedIn
More Interested Related Posts
zfs pool usage

ZFS Pool and Dataset Usage

ZFS Pool and Dataset Usage   I am back with another blog to provide the useful script to the Freebsd users to determine the zpool

Assistanz Networks

Installing Zabbix Agent in FreeBSD 12.0

Zabbix Agent Installation and Configuration Guide on FreeBSD 12.0   Zabbix is an open-source monitoring software tool for diverse IT components, including networks, servers, virtual

DirectAdmin Server Management Plans

Premium Support

24/7 End User Support from your Helpdesk
$ 99 Monthly / Server
  • Unlimited Support Plan
  • 24/7 Emergency Phone
  • Chat Support for Admin
  • Separate Account Manager
  • NDA & SLA
  • SLA Review Meetings
  • FREE Consultancy Services
  • Simple SignUp Process
  • Instant Account Activation
  •  

Platinum Support

24/7 Proactive Support
$ 49 Monthly / Server
  • Unlimited Support Plan
  • 24/7 Emergency Phone
  • Chat Support for Admin
  • Separate Account Manager
  • Advance Proactive Monitoring
  • Guaranteed SLA
  • SLA Review Meetings
  • 3rd Party Application Support
  • FREE Consultancy Services
  • Server Migration Support
  • Weekly Status Report
  • No End User Support
Popular

Unlimited Support

24/7 Support

$ 30 Monthly / Server
  • Unlimited Support Plan
  • 24/7 Support
  • Basic Monitoring
  • 30 Minutes Response Time
  • 4 Hours Resolution time for the Possible Issues
  • Security and Performance Optimization
  • React to Customers queries
  • Simple SignUp Process
  • Instant Account Activation
  • No Third party application support
  • No Migration and End User Support

Cpanel Server Management Plans

Premium Support

24/7 End User Support from your Helpdesk

$ 99 Monthly / Server
  • 24/7 End User White Label Support
  • Unlimited Number of Tickets
  • Chat Support for Admin
  • Separate Account Manager
  • Guaranteed SLA
  • Weekly Status Reports
  • FREE Consultancy Services
  • Simple SignUp Process
  • Instant Account Activation

Platinum Support

24/7 Proactive Server Management
$ 49 Monthly / Server
  • Unlimited Support Plan
  • 24/7 Emergency Phone
  • Chat Support for Admin
  • Separate Account Manager
  • Advance Proactive Monitoring
  • Guaranteed SLA
  • SLA Review Meetings
  • 3rd Party Application Support
  • FREE Consultancy Services
  • Server Migration Support
  • Weekly Status Report
  • No End User Support
Popular

Unlimited Support

24/7 Server Management

$ 29 Monthly / Server
  • Unlimited Admin Tasks
  • 24/7 Support
  • Basic Monitoring
  • 30 Minutes Response time
  • 4 hours Response time for possible issues
  • Security and Performance Optimization
  • React to Customers queries
  • No Third party application support
  • No Migration and End User Support

Cpanel Server Management Plans

Premium Support

24/7 End User Support from your Helpdesk

$ 99 Monthly / Server
  • 24/7 End User White Label Support
  • Unlimited Number of Tickets
  • Chat Support for Admin
  • Separate Account Manager
  • Guaranteed SLA
  • Weekly Status Reports
  • FREE Consultancy Services
  • Simple SignUp Process
  • Instant Account Activation

Platinum Support

24/7 Proactive Server Management
$ 49 Monthly / Server
  • Unlimited Support Plan
  • 24/7 Emergency Phone
  • Chat Support for Admin
  • Separate Account Manager
  • Advance Proactive Monitoring
  • Guaranteed SLA
  • SLA Review Meetings
  • 3rd Party Application Support
  • FREE Consultancy Services
  • Server Migration Support
  • Weekly Status Report
  • No End User Support
Popular

Unlimited Support

24/7 Server Management

$ 29 Monthly / Server
  • Unlimited Admin Tasks
  • 24/7 Support
  • Basic Monitoring
  • 30 Minutes Response time
  • 4 hours Response time for possible issues
  • Security and Performance Optimization
  • React to Customers queries
  • No Third party application support
  • No Migration and End User Support