This resource provides a guide to identify symptoms and align them with solutions to resolve the failure of virtual machines to power on/VM power-on issues.
Symptoms:
When attempting to start up a virtual machine (VM), it fails to power on with the above error .
The power On/Off are grayed out .
You will see following in the VSphere host UI .
You will see the following on the Vcenter .
When you click on the console of the virtual machine console you get the following error :
When you try to power on VM from cli :
#vim-cmd vmsvc/power.on 5
Powering on VM:
Power on failed: (vim.fault.InvalidState) {
faultCause = (vmodl.MethodFault) null,
faultMessage = <unset>
msg = "The operation is not allowed in the current state."
}
VMware vSphere ESXi 6.x
VMware vSphere ESXi 7.x
VMware vSphere ESXi 8.x
This issue is caused when you try to power on a virtual machine when the host is in Maintenance Mode .
Please check and validate if the ESXi host is in Maintenance Mode .
To verify if the host is in Maintenance Mode use one of the following methods :-
1.Run one of these commands to verify if the host was in Maintenance Mode:
ESXi: # vim-cmd /hostsvc/hostsummary | grep inMaintenanceMode
ESX: # vimsh -n -e /hostsvc/hostsummary | grep inMaintenanceMode
ESXi: # esxcli system maintenanceMode get
2.Check if the host is in Maintenance Mode from vcenter :
Open the vSphere Web Client: Log in to your vCenter Server using the vSphere Web Client (Flex/Flash interface).
Navigate to Hosts and Clusters: Click on “Hosts and Clusters” from the Home menu.
Select the Host: Click on the ESXi host you want to check.
Check the Host’s Summary:
In the “Summary” tab of the host, you’ll find the “Maintenance Mode” status. This will indicate if the host is currently in maintenance mode.
3.Using the ESXi Embedded Host Client (HTML5 Interface)
Log In to the Host:
Open a web browser and enter the IP address or hostname of the ESXi host in the address bar (e.g., https://<esxi-host-ip-or-name>/ui).
Log in with your root credentials.
Once logged in, you will see the ESXi Embedded Host Client interface.
Click on the “Host” option in the left navigation pane if it's not already selected.
In the main pane, you’ll find several tabs such as “Summary,” “Monitor,” “Manage,” etc.
Click on the “Summary” tab.
Look for the “Maintenance Mode” section. The UI will indicate whether the host is in maintenance mode or not. If it’s in maintenance mode, it will explicitly show “Maintenance Mode” or provide an appropriate status message.
If the host is in Maintenance Mode then please follow one of the below procedure to exit the maintenance mode :-
2. Using the vSphere Client :-
Open the vSphere Client: Log in to your vCenter Server using the vSphere Client.
Go to Hosts and Clusters: In the left-hand navigation pane, select "Hosts and Clusters."
Select the Host: Click on the ESXi host that you want to exit maintenance mode.
Click on the "Host" tab.
In the "Actions" menu (located at the top-right of the pane), select "Maintenance Mode" and then click on "Exit Maintenance Mode."
Following these steps will help you successfully exit maintenance mode on an ESXi host through vCenter.
Refarence Documents :
Enter and Exit Maintenance Mode with ESXCLI .