// // Leave a Comment

[FIX] VMware vsphere 5 [ESXi 5] The operation is not allowed in the current state of the host


Recently I faced issue while Cloning& migrating Virtual machine from ESXi 5 host to another host. I was getting“The operation is not allowed in the current state of the host” error message. This happens when an ESX host thinks it is going into maintenance mode from previuos maintanance.
To get rid of this error you need to restart the ESXi management agents as follows,
Go to VMware ESXi 5 management console -> Go to Troubleshooting options,
 Restart Management Agents as shown below.


Now try VMotion again. If you still get an above error message. Then disconnect the ESXi 5 host from Virtual Center Server and reconnect it. Try to vMotion again and it should work.