This post demonstrates a live migration of a VMware Virtual Machine (VM) from an on-premise VMware infrastructure, to VMware Cloud on AWS. The steps below will demonstrate how quick and easy it is to move Virtual Machines between on-premise and VMware Cloud on AWS environments using VMware HCX migrations, without the need to re-IP or re-architect applications.
You may also want to review further reading: How to Deploy and Configure VMware Cloud on AWS (Part 1), How to Migrate VMware Virtual Machines to VMware Cloud on AWS (Part 2), plus additional demo posts: Watch VMware vSphere HA Recover Virtual Machines Across AWS Availability Zones and Watch a Failover from Direct Connect to Backup VPN for VMware Cloud on AWS. For further reading on Stretched Clusters for VMware Cloud on AWS see Overview and Documentation, as well as the following:
The VMware Cloud environment in this demo is setup as follows:
- SDDC deployed consisting of a 6 host stretched cluster in eu-west-2
- On-premise connectivity provided by Direct Connect
- On-premise vCenter and SDDC vCenter in hybrid linked mode
- HCX Cloud add-on enabled, and appliances deployed on-premise
- On-premise networks are VLAN backed port groups in a distributed switch
- VLAN_98 has been stretched for the purposes of this demo
The virtual machine I am going to migrate is the web server from a 3-tier application: VMC-DEMO-WEB-01, with a private IPv4 address of 192.168.98.15.
In the on-premise vCenter Server I have selected the HCX plugin from the Menu drop-down. The dashboard shows my site pairing and cloud overview. Under Network Extension I can see that VLAN_98 has been stretched to VMware Cloud on AWS.
From the Migration screen I can see previous migration history, and I select Migrate Virtual Machines.
The migration interface loads and I search for the virtual machine.
Having selected the virtual machine to migrate I can now go ahead and select the folder, resource pool, and datastore to use. In this example the machine is already thin provisioned and I am using the vMotion migration type. The network has automatically been populated with the stretched network VLAN_98.
HCX will perform some validation checks and then I click Finish to start the migration.
The virtual machine migration progress is now underway.
After 4 minutes, the migration is complete.
The virtual machine did not drop any pings during the migration, the web site is still accessible and able to pull data from the database.
A HTTP monitor setup in Solarwinds shows that there was no loss of service during the migration.
The virtual machine is now running in VMware Cloud on AWS and is visible in the SDDC vCenter.
Should the machine need moving back on-premise the same process can be followed, with the Reverse Migration tick-box.
Once virtual machines are running in VMware Cloud on AWS they have access to native AWS services using the 25 Gbps Elastic Network Interface (ENI): Connecting VMware Cloud on AWS to Amazon EC2, Load Balancing VMware Cloud on AWS with Amazon ELB.