Virtual Machine Mobility

VM Migration (vMotion)

image

This walkthrough is designed to provide you a step-by-step overview on how to migrate Virtual Machines across Hosts and Storage. Use the arrow keys to navigate through the screens.

image

During the course of a virtual machine’s lifecycle, it may become necessary to migrate a VM between hosts or between different types of storage. In this example, we will migrate the virtual machine "prod-web10".

image

"prod-web10" is on the vSphere host "prod-esxi40". We will migrate this virtual machine to prod-esxi36 using vMotion. We right click on the [Host] and click on [Migrate].

image

There are options to change just the host or datastore, or change both host and datastore. We select [Host] and click on [Next].

image

We select the destination click on [Next].

image

Here we have the option to reserve CPU resources for better vMotion performance. We select it and click on [Next].

image

We keep the default settings and click on [Finish].

image

The virtual machine is now running on prod-esxi41. We open the console and see that the VM continued to run without interruption duing the vMotion migraton.

image

Note that the VM continued to run while the migration occurred without taking downtime.

image

Next, we will migrate the virtual machine from one datastore to another datastore. We click on [Virtual Machines] from the inventory.

image

We open [LinuxVM01].

image

Click on [Actions] and then on [Migrate].

image

Select [Change Datastore] and click on [Next].

image

We select the destination datastore, which is the shared [iSCSI Datastore] and we click on [Next].

image

Review the settings and click on [Finish].

image

We see that the virtual machine has been migrated. Next, we will change both the host and datastore of a virtual machine. For this, we select the host [prodweb11].

image

Go to [Actions] and click on [Migrate].

image

Select [Change Both Host and Datastore] and click on [Next].

image

We select the destination resource and click on [Next].

image

We select the host and click on [Next].

image

We select the datastore and click on [Next].

image

We choose to reserve CPU for optimal vMotion performance and click on [Next].

image

Review the settings and click on [Finish].

image

The migration may take several minutes. You can monitor it in the recent tasks column. We will launch the console to verify if the virtual machine is still active.

image

We see that the virtual machine is still running.

image

We switch back to the vSphere Web Client to see that the migration is still in progress. After the migration is complete, the virtual machine will run on the host prod-esxi41 and the datastore iSCSI-Datastore-04. This concludes the walkthrough on migrating VMs across Hosts and Clusters. Select the next walkthrough of your choice using the navigation panel.

Filter Tags