VMware find out when vmotion happened

Last updated:

VMWAREVMOTION
  1. Go to VM logs. This is where VM folder is created. You can check on vmware console and then find the datastore where vmware.log file is present. Usually there will be older archives also.
  2. Login to esxi.
  3. Go to appropriate datastore.
cd /vmfs/volumes/

# Then go to specific datastore, and vm
# Example

/vmfs/volumes/619f4a5d-3c47f70a-e703-0025b502024e/ctmhecp
  1. cat to find instances. Note there might be duplicates so check logs accordingly.
cat vmware*.log | grep -i MigrateSetInfo

references:

Troubleshooting vMotion - VMware vSphere Blog

Virtual Machine log file entries The virtual machine log file resides in the virtual machine home folder that also includes the vmx file and the vmdk files. Using root access on your ESXi host, you can go to appropriate folder. My test VM resides on vSAN, so I would look for the virtual machine home directory using symlink /vmfs/volumes/vsanDatastore. Using the following command shows even more information about the live-migration like the source and destination IP addresses: