--> -->

VM Migration with VMware vMotion: How Does It Work?

No matter what kind of business you are running, even a short amount of downtime can cost your company a fortune. Unexpected downtime is nearly impossible to avoid, but you can still get prepared for a wide range of scenarios that are likely to happen occasionally. These include such downtime causes as maintenance, moves, planned power outages, and so on. To help you avoid downtime, VMware offers vSphere vMotion. This technology allows for live migration of virtual machines (VMs) without interruption in their availability. This turns VMware vMotion into a solid element for creating a dynamic, automated datacenter with self-optimization capabilities.

Download the Full-Featured Free Trial of NAKIVO Backup & Replication and see its features in action. Our product offers a set of tools to let you protect your VMware-based infrastructure. These include VM Replication and Site Recovery, features that can help you handle the process of data center migration. You can create a replica, i.e. an exact copy of your VM, and then use it to migrate workloads to a new server, thus avoiding interruptions in your business-critical operations.

What Is vMotion and How Can It Be Used?

VMware vMotion can be used for several purposes. These include:

Live migration of workloads

You can perform live migration of your VMs from one physical host to another, without any downtime. This technology allows the VM processes to keep running throughout the migration process. Simply for reference, VMware supports cold migration mode, too, which means that migration can be performed when the VM is turned off or suspended. As live migration is performed, the VM retains its current memory content, network identity and connections, and all additional information that defines it. On a gigabit Ethernet network, the process of migration takes less than two seconds, according to VMware documentation.

Overall, live migration of workloads gives you the following advantages:

  • Automatic allocation and optimization of the VMs within your resource pool;
  • Hardware maintenance with no need to schedule downtime or disrupt business operations;
  • Preventive migration of VMs away from failing or underperforming hosts.

Automatization and scheduling

To reduce the need for manual effort, you can automate and schedule the migration of your VMs. This is possible thanks to the Distributed Resource Scheduler, one of vSphere’s basic automatization features. The migration details can be set up via the Migrate Virtual Machine wizard. Depending on your needs, you can schedule the migration process to run either once or multiple times. Additionally, VMware vMotion can help you find an appropriate destination host within seconds, thus eliminating the need to do this manually.

Long-distance migration

If you are running a large infrastructure that spans across multiple locations or countries, VMware offers functionality for migrating VMs over large distances. Available since the vSphere 6.0 release, Long Distance vMotion allows for migrations between hosts separated by high network round-trip latency times. RTT, or round-trip time, is the length of time required for a signal or data packet to travel from a starting point to its destination and back again. With VMware vMotion, this is about 150 milliseconds or less. The RTT has been increased by almost 10 times, which means you can easily perform migration of live workloads between datacenters located on different continents.

Migration to new datastore

Apart from changing the host on which your VM is running, with VMware vMotion you can change the VM’s datastore. In case you only need to change the host, the entire VM’s state is moved to a new host, but the virtual disk remains in the same location that the two hosts share. If you prefer to change the host and the datastore, both the state of the VM and the virtual disk are moved. The VM’s virtual disk and configuration files can be placed in either single or separate locations.

Migration can be performed between hosts, clusters, or data centers without shared storage. This functionality, officially known as Storage vMotion, allows you to simplify the maintenance and upgrading of your VMs, optimize disks for performance, or convert disk types. It is available in VMware vSphere 5.1 and later versions.

How vMotion Works

First and foremost, you should pay attention to the list of setup vMotion requirements. Namely, you need to properly configure network interfaces on the source and target hosts. It is also recommended that you provide the required bandwidth, provision at least one additional network interface controller for the case of failover, and use jumbo frames (Ethernet frames with more than 1500 bytes of payload) for enhanced performance.

How VMware vMotion works

To perform live migration of a VM from one physical host to another, VMware vMotion relies on three technologies:

1. First of all, the feature encapsulates the entire state of the VM. It includes memory, registers, and network connections. This is possible with the collection of files that are stored on a shared storage space, for example, Fibre Channel or iSCSI Storage Area Network (SAN) or Network Attached Storage (NAS).

The VMFS (Virtual Machine File System), or the VMware’s clustered file system developed to store disk images of virtual machines, provides a way for multiple installations of VMware servers to simultaneously access the same files of the VM.

2. After that, the VM’s state information is copied to the destination host. This includes the active memory of the VM and its precise execution parameters. Data is transferred over a high-speed network, which is why the process takes just a few seconds to complete. VMware vMotion keeps track of the ongoing memory transactions in a bitmap. Upon completion of the data transfer, vMotion suspends the source VM, copies the bitmap to the target host, and resumes the VM’s activities. The entire process is performed in such a manner so as to ensure transaction integrity.

3. Since the networks used as the migration is performed are all virtualized, it is possible to preserve the VM’s network identity and active connections. As a part of the process, VMware vMotion manages the virtual MAC address. Just for reference, MAC stands for media access control. VMware software ensures that each VM is assigned a unique MAC address in a given host system. After the target host is activated, vMotion pings the network router, thus making sure that the router is aware of the new physical location of the virtual MAC address.

Data Protection with NAKIVO Backup & Replication

With VMware vMotion, the migration of a VM can be performed without downtime as the technology preserves the VM’s precise state, its network identity, and network connections. As a result, you can avoid disruption of business-critical operations.

As mentioned above, NAKIVO Backup & Replication provides functionality to help you perform data center migration in a seamless and efficient way. Here is a quick overview of our product’s several key features:

Create identical copies of your source VMs. Until needed, replicas remain in a powered-ff state and do not consume resources. VM replicas are available in your VMware vSphere client. If a disaster strikes, you can easily perform a failover, or power on the replica to have your VM running in basically no time.

Our solution allows you to automate and orchestrate disaster recovery activities across multiple sites, reducing downtime to a minimum. The feature can start both replication and failover jobs automatically, thus making the process of data center migration far less complicated.

In addition to planned migration, the feature suits other purposes, including disaster avoidance and disaster recovery.

  • Flexible data restore

NAKIVO Backup & Replication allows for cross-platform recovery, which means that your VMs can be easily migrated from one virtualization or cloud platform to another. Put differently, you can recover your source VM in a different environment, which enables not only VM data migration, but also long-term data archiving and recoverability testing.

To further simplify the data center migration process, our product offers two more features: Network Mapping and Re-IP. The first can help you make sure that the VM replicas are connected to the right network. The second feature provides a means for creating VM re-IP rules to automatically change the VM replica’s IP address upon failover.

  • Convenient scheduling

Our flexible system of scheduling allows you to create a chain of jobs and test them before performing the actual migration. With the Calendar Dashboard, you can see all your past, current, and planned jobs in a calendar view, which can help you avoid overlaps and easily find free time slots for new jobs.

To conclude, NAKIVO Backup & Replication offers a wide range of features to help you protect data in your VMware-based infrastructure, from basic backup and replication features to automation tools and disaster recovery functionality.

VMware Backup

VM Migration with VMware vMotion: How Does It Work?
5 (100%) 1 vote