VM with stuck storage vMotion task
search cancel

VM with stuck storage vMotion task

book

Article ID: 412581

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

  • During storage vmotion the vCenter goes down
  • The vm stops responding to tasks like create snapshot
  • The console does not display any prompt
  • When running esxcli vm process list command, the vm will show twice

Environment

7.x

8.x

Cause

 

 

Resolution

Vcenter going down causes an issue with the migration. In order to get the vm fixed, we have to perform the following step:

  1. From the vcenter UI validate which vmdk and datastore the vm is using by clicking on vm > edit > hard-disk
  2. When running esxcli vm process list command you will see two processes for the same VM
  3. Find the instance which is using the datastore from step 1. This is the good instance of the VM and needs to be preserved
  4. Get the World id of the VM process that is NOT being used from Step 2 
  5. Kill the VM process that is NOT being used by running:
    esxcli vm process kill --type=force --world-id <world-id-name>

If the VM does not start after following the steps above please contact Broadcom support.