Sometimes you may face this error in vCenter environment “”The operation is not allowed in the current connection state of the host (xxxx)”, I have encountered this error with powering on VMs, and with creating templates, to easily and quickly fix the error, restart the “VMware vCenter Server” service using the web client, then if the issue remains, restart the management agents on the ESXi host which has the provlem, here are the steps along with a recorded video (the video is in Arabic but the steps are clear to anyone).
Restarting vCenter service:
- login to your vCenter server via the web client.
- navigate to home >> administration >> System Configuration.
- from the left pane, select “Nodes”.
- now your vCenter server should appear on the left pane, click on it.
- on the middle part of the screen, click on “Related Objects” tab.
- find “VMware vCenter Server” service, right-click on it, then click on “Restart”.
if the issue remains, restart the management agents on your ESXi host.
- go to the direct console of your ESXi server and log in.
- go to “Troubleshooting options”.
- choose “Restart Management Agents” and press enter.
- confirm restarting the service by pressing F11.
Try again the action that triggers the error, it should work fine with you now.