You have a VM that is hard down and you are unable to restart or shutdown the VM. You are getting an error that a task is already in progress when you try to power it down or restart it.
ESXi 7.0
ESXi 8.0
There are many tasks that are queued up for the VM.
Reference KB: Collecting information about tasks in VMware ESXi
vim-cmd vmsvc/getallvms
vim-cmd vmsvc/power.getstate #
vim-cmd vmsvc/power.getstate 52
vim-cmd vmsvc/get.tasklist #
vim-cmd vmsvc/get.tasklist 52
vim-cmd vimsvc/task_info 'task_name'
vim-cmd vimsvc/task_info 'task_name'
(vmodl.fault.ManagedObjectNotFound) {
faultCause = (vmodl.MethodFault) null,
faultMessage = <unset>,
obj = 'task_name'
msg = "Received SOAP response fault from [<<io_obj p:0x0000000000000000, h:5, <TCP '127.0.0.1 : 12345'>, <TCP '127.0.0.1 : 6789'>>, /sdk>]: GetInfo
The object 'task_name' has already been deleted or has not been completely created"
}