VM is powered off on vCenter but RDP/Applications are accessible
search cancel

VM is powered off on vCenter but RDP/Applications are accessible

book

Article ID: 399219

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

VM is powered off on vCenter and missing on the ESX Host

Environment

vCenter server 7.x

vCenter server 8.x

Cause

VM is migrated to a different host on the cluster but vCenter inventory is not synced with the new Host.

Resolution

  1. Take a SSH session to the ESX Host where the VM shows powered off in vCenter
  2. Identify the host on which the Virtual Machine files are locked. If VM is residing on a VMFS volume, refer this link - Investigating Virtual Machine file locks on ESXi Host(s). If datastore is NFS, refer this link - Understanding the NFS .lck lock file
  3. vmfsfilelockinfo or hexdump (NFS datastore) command would give the current ESX Hostname where the VM is currently running on. Note down the hostname.
  4. Take a snapshot of the vCenter  (Offline snapshot if vCenter is on enhanced linked mode)
  5. Remove the VM (powered off / stale entry) from vCenter inventory.
  6. Disconnect and reconnect the host from vCenter inventory where the VM currently running on. (The host we identified in step 2 above)