[Redirected] Unable to power on a suspended virtual machine using vSphere Client
search cancel

[Redirected] Unable to power on a suspended virtual machine using vSphere Client

book

Article ID: 341075

calendar_today

Updated On:

Products

VMware vSphere ESXi

Issue/Introduction

This article explains powering on a suspended virtual machine if it is not responding to a power on command from VMware Infrastructure/vSphere Client.


Symptoms:

virtual-machine-unknown-invalid virtual-machine-not-starting virtual-machine-vmx-file

Environment

VMware vSphere ESXi 5.1
VMware ESXi 3.5.x Installable
VMware ESX Server 2.5.x
VMware ESXi 3.5.x Embedded
VMware ESXi 4.1.x Embedded
VMware ESX 4.0.x
VMware ESX Server 3.0.x
VMware vSphere ESXi 5.0
VMware ESX 4.1.x
VMware ESXi 4.0.x Embedded
VMware ESX Server 3.5.x
VMware ESXi 4.1.x Installable
VMware ESXi 4.0.x Installable

Resolution

To power on a suspended virtual machine using the command line:
  1. Connect to the host where the suspended virtual machine resides.
  2. Log in as a user with administrator privileges.
  3. Run the command to get the virtual machine world ID:

    vim-cmd vmsvc/getallvms
     
  4. Run this command to power on the virtual machine:

    vim-cmd vmsvc/power.on <vmid from previous step>
If the virtual machine does not power on:
 
Caution: These steps cause all unsaved data to be lost.
  1. Connect to the host where the suspended virtual machine resides.
  2. Log in as a user with administrator privileges.
  3. Run this command to change directory to the folder of the suspended virtual machine:

    cd /vmfs/volumes/<Datastore name>/<virtual machine name>
     
  4. Open the .vmx file in a text editor.
  5. Remove the .vswp reference under sched.swap.derivedName.
  6. Remove the .vmss reference under checkpoint.vmState.
  7. Save the changes and exit the text editor.
  8. Run this command to get the virtual machine world ID:

    vim-cmd vmsvc/getallvms
     
  9. Run this command to reload virtual machine .vmx file:

    vim-cmd vmsvc/reload <vmid from previous step>

    Within a minute the virtual machine's status in vCenter Server shows as powered off instead of suspended. You can then power up the machine as normal.


Additional Information

Using Tech Support Mode in ESXi 4.1, ESXi 5.x, and ESXi 6.x
Connecting to an ESX host using an SSH client
vSphere Client を使用してサスペンド状態の仮想マシンをパワーオンできない