Powering off a virtual machine fails with the error: Cannot power Off: Another task is already in progress
book
Article ID: 311620
calendar_today
Updated On:
Products
VMware vCenter Server
VMware vSphere ESXi
Issue/Introduction
Symptoms:
-
Cannot power off a virtual machine.
-
Powering off a virtual machine fails.
-
You see the error:
Cannot power Off: Another task is already in progress.
-
vCenter Server does not report any other task.
-
In the home directory of the virtual machine, there are no vmware.log files
-
In the .vmx file of the virtual machine, you see this entry:
log.fileName = "/vmfs/volumes/########-####-########e7a3/vmware.log"
However, the storage [/vmfs/volumes/########-####-########e7a3/] does not exist or is inaccessible.
Environment
VMware vSphere ESXi 5.0
VMware vCenter Server 5.1.x
VMware vCenter Server 5.5.x
VMware ESX 4.0.x
VMware ESXi 4.1.x Installable
VMware ESXi 4.0.x Installable
VMware ESX 4.1.x
Resolution
To resolve this issue, comment a line in the .vmx file.
To comment a line in the .vmx file:
- Open the .vmx file of the virtual machine using a text editor.
- Comment this line:
#log.fileName = "/vmfs/volumes/########-####-########e7a3/vmware.log"
- Shutdown the virtual machine through RDP or an SSH session. If the virtual machine fails, see Powering off a virtual machine on an ESXi host (1014165).
- List the Virtual Machine ID (VMID) with the command:
ESX(i) 4.0 and prior: vmware-vim-cmd vmsvc/getallvms | grep virtual_machine_name
ESX(i) 4.1 and later: vim-cmd vmsvc/getallvms | grep virtual_machine_name
- Restart the virtual machine with the command:
ESX(i) 4.0 and prior: vmware-vim-cmd vmsvc/power.reset <VMID>
ESX(i) 4.1 and later: vim-cmd vmsvc/power.reset <VMID>
Note: Instead of restarting the virtual machine, you can reload the .vmx file using these commands. For more information, see Using ESXi Shell in ESXi 5.0 and 5.1 (2004746).
- Reload the virtual machine's vmx for the changes to take affect.
- List the Virtual Machine ID (VMID) with the command:
ESX(i) 4.0 and prior: vmware-vim-cmd vmsvc/getallvms | grep virtual_machine_name
ESX(i) 4.1 and later: vim-cmd vmsvc/getallvms | grep virtual_machine_name
- Reload the virtual machine's vmx with the command:
ESX(i) 4.0 and prior: vmware-vim-cmd vmsvc/reload <VMID>
ESX(i) 4.1 and later: vim-cmd vmsvc/reload <VMID>
Feedback
thumb_up
Yes
thumb_down
No