How to configure vMotion using vCenter Server 6

How to configure vMotion using vCenter Server 6

In this post, we’ll learn the steps to configure vMotion using vCenter Server 6. VMotion is required to hot migrate (powered on) Virtual Machine from one ESXi Host to another. Vmotion is the best feature that Organizations are using during planned maintenance. Besides that it needs to be enabled if we want DRS or HA to be enabled for our environment.

However before we enable vMotion please ensure that you complete all the pre-requisites that are required for vMotion to work properly. All the pre-prerequisites are explained below for your reference. In the old post, we have learned the steps to configure vCenter Server and storage vMotion.

How to Install vCenter Server 6.0 – Step by Step guide

Pre-requisites to configure vMotion

1. Shared storage must be connected to all the VMWare ESXi hosts.
2. All the Virtual Machines are hosted on Shared Storage.
3. Virtual Machine should not be using direct resources of Host e.g. CD ROM, NIC Card, etc.
4. Enable vMotion on all the Hosts.

Steps to enable vMotion using vCenter Server 6

Step 1:
Select the ESXi host on which you want to enable vMotion.
On the right pane, select configuration tab.
Select Networking
Click on the properties of vSwitch0. VSwitch is the default virtual switch that gets created and all the newly created Virtual Machines by default host on this vSwitch 0.

configure vMotion (1)-min

Step 2:
On the vSwitch0 properties, we can see that vMotion is disabled. By default it is disabled and we need to enable vMotion.
Select the Management Network Port-group
Click on Edit.

configure vMotion (1)-min

Step 3:
On the Management Network properties, on the general tab to enable vMotion.
Click on Ok to close the Management Network properties and then click on close to close the vSwitch0 properties.

configure vMotion (1)-min

Step 4:
Follow the same steps on all the VMWare ESXi hosts. Please take a note that vMotion would not work if it’s enabled only on one ESXi server and not others. We need to enable it on all the Hypervisors on which we want to hot migrate our Virtual Machines.

Migrate Virtual Machine from one VMWare ESXi Server to another Server

Step 1:
Select the Virtual Machine that you want to migrate.
Click on the Summary tab.
In this practical, we can see that this Virtual Machine is hosted on ESX01 server and using Shared Storage i.e. VOL1. We’ll migrate this Virtual Machine to another hypervisor i.e. ESX02.
It is must to host Virtual Machine on shared storage before we start the migration step.

configure vMotion (1)-min

Step 2:
As we can see that our VM is in running state. Right click the VM which you want to migrate from one ESXi host to another ESXi host and click on Migrate.

configure vMotion (1)-min

Step 3:
A wizard would be started. We can see two options that are enabled i.e. Change Host and Change Datastore and one option which is disabled i.e. Change both host and Datastore. Select the option of “Change Host” and click on next.

configure vMotion (1)-min

Step 4:
Select the destination server to which you want to migrate this VM.
For this practical, we’ll migrate this VM to ESX02.
Message “Validate Succeeded” under compatibility confirms that this VM can be migrated to ESX02.
Click on next to continue.

configure vMotion (1)-min

Step 5:
We can see two priority options i.e. High priority and Standard priority. Select the priority as per your requirements.
High priority is favoured over standard priority and are expected to perform better.
For this practical, we’ll select high priority.

configure vMotion (1)-min

Step 6:
Verify all the options and click on Finish to migrate Virtual Machine to another ESXi Server.

configure vMotion (1)-min

Step 7:
As we can see that our VM is successfully migrated to ESX02.

configure vMotion (1)-min

Hope you understood the steps listed in this article to configure and enable vMotion on VMWare ESXi Servers. Please feel free to leave your comments and suggestions in the below mentioned comment section.

3 thoughts on “How to configure vMotion using vCenter Server 6

  • Rahul Sharma

    Its helpful

  • Wallace Neverson

    Is it mandatory to have a shared storage to configure vmotion in ESXi or can we configure Vmotion using local storage?

  • Bo Gallarello

    Can we configure vmotion using Command prompt or create script to enable vmotion for all the new boxes that we add to VMWare Datacenter?

Comments are closed.