How vMotion Works ?

What is vMotion?

  • vMotion  enables live migration of a running virtual machine between ESXi Hosts
  • It is transparent to the Virtual Machine’s OS and applications.
  • Invaluable tool to admin to achieve the followings;
    • Avoid Server Downtime
    • Allow Troubleshooting
    • Provide Flexibility
  • Key enabler of DRS, DPM, and FT

vMotion works

What needs to be migrated?

  • Processor and devices state  – CPU, Network, SVGA
  • Disk – Use shared storage between source and destination
  • Memory – Pre copy memory while Virtual Machine is running

How vMotion Works?

  • Quiesce Virtual Machine on source machine.
  • Transfer memory and device state(checkpoint) from source to destination.
  • Resume Virtual Machine on Destination
  • Copy remainder of memory from source to destination
  • Free Virtual Machine resources on source machine.

vMotion Step by Step

Other Interesting Facts, Problems, and Troubleshooting: –

  • Virtual  Machine remains suspended during memory transfer
  • Copying Virtual Machine with large memory size may problematic.
  • 64 GB Virtual Machine requires around 57 seconds on 10 GbE NIC.
  • VMotion will check the remote system to make sure there is enough RAM and CPU before it begins the process.

Troubleshooting: –

  • Migration ID is same on source and destination.
    • Go to VMkernel log (/var/log/vmkernel.log)
    • Grep the migration ID for all vMotion related timing and statistics.

That’s it from here. Stay connected.

 

vSphere 6.7 ICM – Topic 7.8 – Perform vSphere vMotion and vSphere Storage vMotion migrations

Storage vMotion helps you to migrate a virtual machine and its disk files from one datastore to another while the virtual machine is running.

vMotion helps you to migrate a virtual machine from one ESXi host to another ESXi host while virtual machine is running.

Continuing to the learning of vSphere 6.7 – Install, Configure, and Manage modules, we are going to cover below points in this blog.

Point to Cover: –

  1. Perform Storage vMotion
  2. Perform vSphere vMotion

1. Perform Storage vMotion

Migrating virtual machine from one data store to another data store is known as storage vMotion  while your machine is running.

Step to perform Storage vMotion:

  • To perform storage vMotion go to inventory in your virtual center and select virtual machine.

2018-07-28 18_22_19-vSphere - test-vm-02 - Summary

  • Right click on virtual machine and click on migrate.

2018-07-28 18_22_23-vSphere - test-vm-02 - Summary

  • You will get three option in this window. Select change storage only to perform Storage vMotion.

2018-07-28 18_22_28-vSphere - test-vm-02 - Summary

  • Select the datastore where you want to move for virtual machines disk files.

2018-07-28 18_22_36-vSphere - test-vm-02 - Summary

  • Verify it again and click finish.

2018-07-28 18_22_39-vSphere - test-vm-02 - Summary

  • Monitor task in recent task pane and wait to get  it complete.

2018-07-28 18_22_47-vSphere - test-vm-02 - Summary

  • Another way to monitor virtual machine is from monitor tab. Go to to monitor tab and select task under task and events.

2018-07-28 18_24_39-vSphere - test-vm-02 - Tasks

  • Once task is complete verify the datastore in summary tab.

2018-07-28 18_24_47-vSphere - test-vm-02 - Summary

2. Perform vSphere vMotion

Migrating virtual machine from one data store to another data store is known as storage vMotion  while your machine is running.

Step to perform vMotion:

 

That’s all from this topic. Refer to next topics to explore more.

Thanks for visiting here. Share this article if you found it useful. Be sociable.