介绍vmotion

vmotion provides the ability to perform a live migration of a vm from one esxi host to another esxi host without service interruption.this is a no-downtime operation;network connections are not dropped and applications continue running uninterrupted.in fact,the end users do not know and are not aware that the vm has been migrated between physical esxi hosts.when you use vmotion to migrate a vm from one esxi host to another esxi host,this means you also migrate the resource allocation-cpu and memory-from one host to another.

优势如下:

1.load-balancing

2.hardware maintenance

vmotion步骤一

step 1:在vm出去"power on"状态,发起vmotion迁移.

step 2:开始内存拷贝,并且创建一个内存bitmap.

step 3:vmotion迁移静默vm1并且传输内存bitmap文件从源esxi到目的

step 4:在bitmap文件里边罗列的内存从源主机拷贝到目的

step 5:vcenter从源主机删除vm

实现vmontion的需求

1.shared storage for the virtual machine files(vmfs or nfs datastore)(共享存储)

2.a gigabit ethernet network interface card(nic) with a vmkernel port defined and enabled for vmotion on each host.(被指派用于vmotion的vmkernel接口)

vmotion对cpu要求

1.cpus must be from the same vendor(intel or amd).

2.cpus must be from the same cpu family(pill,p4,opteron).

3.cpus must support the same features,such as the pressence of sse2,sse3,and sse4,and nx or xd(see the sidebar"processor instruction")

4.for 64-bit virtual machines,cpus must have virtualization technology enabled(intel vt or amd-v)(启用blos cpu虚拟化)vmotion建议使用分布式交换机.

主机迁移

存储迁移

主机和存储迁移:需要关闭设备