Im going to be upgrading some hardware in an ESX host and want to migrate all the VM's (15 in this case) to one of the other hosts in the cluster. Is this something I can do automatically, rather then an individual migrate? I tried to enter maintenance mode, which if I keep the check box checked, will move the VM's for me automatically, but thats stuck at 2%.
Thanks
puting a machine into maintenance mode should migrate the guest, however there are some exceptions to that rule, machines that have RDM's or Serial or pararel port set to local will not automatically migtrate
If I go to the Virtual Machine's tab under the ESX host, I can highlight all the powered on VM's and rt click to migrate... this might be the easiest way..... scripting might be cooler though.
you can perform a mass vmotion via this powercli script: http://runningvm.wordpress.com/2010/12/17/vmware-bulk-vmotion-via-powercli/
puting a machine into maintenance mode should migrate the guest, however there are some exceptions to that rule, machines that have RDM's or Serial or pararel port set to local will not automatically migtrate
Also if the vm's has a ISO attached to the DVD-drive - then the vm wont migrate.
If you go to the virtual machines tab on the host, you can mark all the VM's and drag´n´drop on to another host. If the VM's cant migrate and errormessage will give you a hint on whats wrong.
regards
Anders Hansen
Blog: http://www.vperformance.org