Powering off a virtual machine fails with the error: Cannot power Off: Another task is already in progress
search cancel

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/4b8bd18f-c1f89b5a-1914-002219c8e7a3/vmware.log"

    However, the storage [/vmfs/volumes/4b8bd18f-c1f89b5a-1914-002219c8e7a3/] 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:

  1. Open the .vmx file of the virtual machine using a text editor.
  2. Comment this line:

    #log.fileName = "/vmfs/volumes/4b8bd18f-c1f89b5a-1914-002219c8e7a3/vmware.log"

  3. 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).

    1. 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

    2. 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).

  1. Reload the virtual machine's vmx for the changes to take affect.

    1. 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

    2. 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>


Additional Information

Unable to power off the virtual machine in an ESXi host
Using Tech Support Mode in ESXi 4.1, ESXi 5.x, and ESXi 6.x
Using ESXi Shell in ESXi 5.x and 6.x
Enabling SSH for non-root users in ESXi 4.x fails with the error: Access denied
仮想マシンのパワーオフが次のエラーで失敗する: Cannot power Off: Another task is already in progress
关闭虚拟机电源失败,并显示以下错误:无法关闭电源: 另一个任务已在进行中