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.
As you can see the my virtual machine have migrated from Esxi1 to Esxi2.
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.
Select the target device as new standard switch and click on next.
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.
In port properties named the network label vMotion and click on next.
In the IPv4 settings give a new ip address and provide the subnet mask, click on next.
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.
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.
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.
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.
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.
select the correct datastore and click next. when it is ready to migrate click on finish.
As you can see the image below shows the migrated machine from one host to another.
when the all the configurations are complete your done with Lab 14.