As we planning to migrate of some physical servers to virtual because the migration we are doing some testing. Right now we have create one virtual machine for vmotion and svmotion testing. Can you please let me know how to perform automatic vMotion and svMotion testing. is there any thing is available to perform this test.
i have exectued cpubusy.vbs script but no lukc the virutal machine consume 100% CPU utilization but VM is not migrating another esxi host
is there any other way to perform the test.
Automatic vMotion occurs in two conditions i.e. ESX getting down or resource crunch. In either case u need to check if vmotion is configured and working fine. You can just right click the esx and click Enter maintence mode. This will migrate off all VMs on this ESX to other ESX.
Automatic vmotion in case of resource crunch will also work if the above said thing worked as it will only apply the DRS recommendation to do that. If still u want to test that, you need to fill your current ESX with more VMs(u can clone the current one). Run some cpu intensive tool, keeping the DRS setting to be most aggressive....It will migrate half of those VMs to other ESX to settle down the resource crunch.
svmotion is rather a manuall thing...u need to select another datastore and perform svmotion...thats it
Please be aware that a DRS license (like in Enterprise+) is necessary for automatic vMotion of guests. And that happen only if a host gets short on ressources or you set the host in maintenance modus.
svMotion is never automatic.
But entering into maintanence mode you need manual intervention to shutdown or vmotion to another ESX server. it will not migrate automatically
Which licenses do you have?
Automatic VMotion (aka. DRS - Distributed Resources Scheduler) as well as sVMotion require at least an Enterprise license (see http://www.vmware.com/products/vsphere/buy/editions_comparison.html) whereas manual vMotion is already included in Essentials Plus.
Upon having the right license for DRS, you can run the below cpubusy script. copy and paste into a file and execute it. it will make the CPU busy and then DRS will kick in to VMotion the VM.
goal = 2181818
Do While True
before = Timer
For i = 0 to goal
x = 0.000001
y = sin(x)
y = y + 0.00001
y = y + 0.01