You can configure HA and admission control. Or Verify your DRS rules affnity.
how can i configuer HA and admission control to do this
the 'Host Failure Response' of HA hast to be selected as 'Restart VMs' to restart VM on other hosts in the cluster after parent host failure.
Please refer the section 'Respond to Host Failure' in vSphere Availability guide for the detailed steps.
Hold on... you are powering off a host? If you power off a host then VMs will not be restarted as you initiated the power-off. http://www.yellow-bricks.com/2014/04/04/esxi-dcui-shutdown-vs-vcenter-shutdown-host/ Normally you use vMotion (migration) in the web client to move running VMs first.
it works correctly
normal vmotion mworks fine
i was asked how to migrate and power on vms if host failuer
thank you for help