14. Migrating Virtual Machines

In this Lab you will learn how to migrate machine files with vSphere Storage vMotion, create a virtual machine switch and a VMkernel port group for vSphere vMotion Migration, you will see how Exsi hosts meets vSphere vMotion requirements and perform a cross-host vSphere Storage vMotion Migration to a local datastore.

To migrate a virtual Machine you should go to vCenter and select on virtual machines. to migrate your machines select your machine and click on summary tab.  Under storage and related objects panel and record the datastore that the virtual machine resides on.

right click on your machine and select migrate and select the migration type and select the destination storage as the storage you created. select the virtual disk format as default and click next.

1

As you can see the my virtual machine have migrated from Esxi1 to Esxi2.

2

3

4

Now lets see how to migrate a machine from VMkernal Port group.

1st go to vCenter > Host and clusters expand datacenter > Lab Servers > select your esxi host click on manage and click networking. Now click on the Add host Networking and select VMkernal Adapter, click next.

5

Select the target device as new standard switch and click on next.

6

create a standard adapter you need to have a free switch if not you wont be able to assign a network adapter. select the free network adapter and click on next.

7

In port properties named the network label vMotion and click on next.

8

In the IPv4 settings give a new ip address and provide the subnet mask, click on next.

9

when everything is configured properly click on finish. To check whether your esxi meets the vSphere vMotion requirements, you have to go to vCenter > host and clusters click on the summary tab and view the processor type information. click on your Esxi host’s Manage tab click on the networking button and select your vMotion port.

10

To verify that the both esxi hosts have the access to the same share datastores you have to go to vCenter > Storage > go to shared datastore you created, click on manage and on the manage tab you will be able to see settings in settings there’s connectivity and multipathing check if the both host are displayed in the table.  The below image shows that my esxi hosts are displayed in the table.

11

Its time to check whether your virtual machines meet the vSphere vMotion requirements. to check this you have to go to vCenter > VM and Template click on the virtual machine which is in your labVMs folder and click on the summary. Go to VM Hardware pane click on edit settings and make sure that CD/DVD drive is not connected.

12

13

To migrate the a machine when it is on to a shared datastore you have to follow these configuration which are shown below.

1st of all power on your virtual machine and open the console, open the cmd and type ipconfig command, ping the default gateway.

14

right click on the machine and click on migrate. the windows opens up you will have to do the following configurations.
Select the migration type as change host and select the correct destination host.

15

16

select the correct datastore and click next. when it is ready to migrate click on finish.

17

As you can see the image below shows the migrated machine from one host to another.

18

20

21.JPG

when the all the configurations are complete your done with Lab 14.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s