This article provides steps to determine if an ESXi host was powered off or restarted.
Symptoms:
Not Responding
.Disconnected
./var/log/hostd.logs
YYYY-MM-DDT:HH:MM:06.810Z In(166) Hostd[2099849]: --> eventTypeId = "esx.audit.host.poweroff.reason.unavailable",
YYYY-MM-DDT:HH:MM.810Z In(166) Hostd[2099849]: --> objectId = "ha-host",
YYYY-MM-DDT:HH:MM.810Z In(166) Hostd[2099849]: --> objectType = "vim.HostSystem",
YYYY-MM-DDT:HH:MM.810Z In(166) Hostd[2099849]: --> }
YYYY-MM-DDT:HH.810Z In(166) Hostd[2099894]: [Originator@6876 sub=Vimsvc.ha-eventmgr] Event 38 : Host had been powered off. The poweroff was not the result of a kernel error, deliberate reboot, or shut down. This could indicate a hardware issue. Hardware may reboot abruptly due to power outages, faulty components, and heating issues. To investigate further, engage the hardware vendor.
VMware vSphere ESXi 6.x
VMware vSphere ESXi 7.x
VMware vSphere ESXi 8.x
Note: This article assumes that you have completed the steps described in ESXi hosts do not respond and is grayed out in vCenter
/var/run/log/hostd.log
file will contain events similar to these:Hostd: [hh:mm:ss.284 27D13B90 info 'TaskManager'] Task Created : haTask-ha-host-vim.HostSystem.reboot-50
or
DCUI: reboot
/var/run/log/shell.log
.Hostd: [<YYYY-MM-DD> <time>.550 2FEDEB90 info 'TaskManager'] Task Created : haTask-ha-host-vim.HostSystem.shutdown-78</time>
DCUI: poweroff
[YYYY-MM-DDTHH:MM:SS] cpu6:8222)VMKAcpi: 217: In PowerButton Helper
vmkernel.log
[YYYY-MM-DDTHH:MM:SS] cpu0:2101545)VMKAcpi: 256: Power button pressed; requesting graceful shutdown and poweroff
hostd.log
[YYYY-MM-DDTHH:MM:SS]
info hostd[2100455] [Originator@6876 sub=Hostsvc.HaHost] ACPI power event from the vmkernel
[YYYY-MM-DDTHH:MM:SS]
info hostd[2100455] [Originator@6876 sub=Hostsvc.HaHost] Shutdown, force = true
[YYYY-MM-DDTHH:MM:SS]
warning hostd[2100455] [Originator@6876 sub=Hostsvc.HaHost] Failed to find activation record, event user unknown.
[YYYY-MM-DDTHH:MM:SS]
info hostd[2100455] [Originator@6876 sub=Vimsvc.ha-eventmgr] Event 679147 : Shut down of <ESXhostname> in ha-datacenter: Unknown
[YYYY-MM-DDTHH:MM:SS]
info hostd[2100455] [Originator@6876 sub=SysCommandPosix] ForkExec(/usr/lib/vmware/vob/bin/addvob) 214058855
[YYYY-MM-DDTHH:MM:SS]
info hostd[2516901] [Originator@6876 sub=Vimsvc.TaskManager opID=2c8f4244 user=vpxuser] Task Created : haTask--vim.event.EventHistoryCollector.readNext-13046911
[YYYY-MM-DDTHH:MM:SS]
info hostd[161861312] [Originator@6876 sub=Vimsvc.TaskManager opID=2c8f4244 user=vpxuser] Task Completed : haTask--vim.event.EventHistoryCollector.readNext-13046911 Status success
[YYYY-MM-DDTHH:MM:SS]
info hostd[2516902] [Originator@6876 sub=Hostsvc.VmkVprobSource] VmkVprobSource::Post event: (vim.event.EventEx) {--> key = 65,
--> chainId = -1897761432,
--> createdTime = "
[YYYY-MM-DDTHH:MM:SS]
",--> userName = "",
--> host = (vim.event.HostEventArgument) {
--> name = "<ESX host name>",
--> host = 'vim.HostSystem:ha-host'
--> },
--> eventTypeId = "esx.audit.hostd.host.poweroff.reason",
--> arguments = (vmodl.KeyAnyValue) [
--> (vmodl.KeyAnyValue) {
--> key = "1",
--> value = " Last reboot reason is unknown. Please check ESXi and the BMC logs for further details. "
--> },
--> (vmodl.KeyAnyValue) {
--> key = "2",
--> value = "Unknown"
--> }
--> ],
--> objectId = "ha-host",
--> objectType = "vim.HostSystem",
--> }
[YYYY-MM-DDTHH:MM:SS]
info hostd[2516902] [Originator@6876 sub=Vimsvc.ha-eventmgr] Event 679148 : The host is being powered off through hostd. Reason for powering off: Last reboot reason is unknown. Please check ESXi and the BMC logs for further details. , User: Unknown. Please consult vSphere Documentation Center or follow the Ask VMware link for more information.
[YYYY-MM-DDTHH:MM:SS]
info hostd[2100456] [Originator@6876 sub=Vimsvc.TaskManager opID=2c8f4245 user=vpxuser] Task Created : haTask--vim.event.EventHistoryCollector.readNext-13046912
[YYYY-MM-DDTHH:MM:SS]
info hostd[2516901] [Originator@6876 sub=Vimsvc.TaskManager opID=2c8f4245 user=vpxuser] Task Completed : haTask--vim.event.EventHistoryCollector.readNext-13046912 Status success
[YYYY-MM-DDTHH:MM:SS]
info hostd[2100455] [Originator@6876 sub=SysCommandPosix] ForkExec(/sbin/poweroff) 214058856
esxcfg-dumppart
command. For more information, see Extracting a core dump file from the VMKCore diagnostic partition following a purple diagnostic screen erroresxcfg-advcfg -g /Misc/BlueScreenTimeout
/var/log/vmksummary.log
shows that a core dump is found.For example:
<YYYY-MM-DD>T<time>Z bootstop: Host has booted
<YYYY-MM-DD>T<time>Z bootstop: file core dump found</time></time>
hostd.log
[YYYY-MM-DDTHH:MM:SS] In(166) Hostd[525413]: [Originator@6876 sub=Vimsvc.TaskManager opID=m046ox1m-35067-auto-r25-h5:70002004-f6-f7-2d21 sid=520de624 user=vpxuser:VSPHERE.LOCAL\Administrator] Task Created : haTask-ha-host-vim.HostSystem.reboot-1668848948
[YYYY-MM-DDTHH:MM:SS] In(166) Hostd[525377]: --> eventTypeId = "esx.audit.hostd.host.reboot.reason",
[YYYY-MM-DDTHH:MM:SS] In(166) Hostd[525377]: --> value = "The host is being rebooted through hostd."
[YYYY-MM-DDTHH:MM:SS] In(166) Hostd[525428]: [Originator@6876 sub=Vimsvc.ha-eventmgr] Event 7142 : The host is being rebooted through hostd. Reason for reboot: The host is being rebooted through hostd., User: vpxuser:VSPHERE.LOCAL\Administrator.
hostd.log
[YYYY-MM-DDTHH:MM:SS] info hostd[264466] [Originator@6876 sub=Vimsvc.TaskManager opID=esxui-c891-f8d4 user=root] Task Created : haTask-ha-host-vim.HostSystem.shutdown-1063352434
--> obj = 'vim.Task:haTask-ha-host-vim.HostSystem.shutdown-1063352434',
--> object = 'vim.Task:haTask-ha-host-vim.HostSystem.shutdown-1063352434',
--> eventTypeId = "esx.audit.host.stop.shutdown",
[YYYY-MM-DDTHH:MM:SS] info hostd[264471] [Originator@6876 sub=Vimsvc.TaskManager opID=esxui-c891-f8d4 user=root] Task Completed : haTask-ha-host-vim.HostSystem.shutdown-1063352434 Status success
[YYYY-MM-DDTHH:MM:SS] info hostd[264022] [Originator@6876 sub=Solo.VmwareCLI] (vim.EsxCLI.system.shutdown) ha-cli-handler-system-shutdown created
[YYYY-MM-DDTHH:MM:SS] info hostd[264022] [Originator@6876 sub=Solo.VmwareCLI] CreateDynMoType (Type vim.EsxCLI.system.shutdown) (Wsdl VimEsxCLIsystemshutdown) (Version vim.version.version5).