Home > VMware ESX, VMware ESXi > vMotion fails saying the operation is not allowed in the current state

vMotion fails saying the operation is not allowed in the current state

I’ve had this happen several times when an ESX host is stuck thinking it is going into maintenance mode from previous maintenance. You get an error saying it cannot complete the migration and “The operation is not allowed in the current state”. Very cryptic error. Just restart the management agents on the ESX host by SSHing in and typing:

service mgmt-vmware restart

hit enter, then:

service vmware-vpxa restart

and hit enter again. You should see the services restart with an "[ OK ]" after each line.

Try to vMotion again now. If you still get an error, disconnect the ESX host from Virtual Center and then reconnect it. Try to vMotion again and it should work. You can also try restarting VC services too. If you have a better solution, let me know. I know it is a bit tedious to go through this process but it does work.


  1. No comments yet.
  1. No trackbacks yet.
*


NOTE: Due to increased spam, your comment may not immediately appear on the site until validated.