vSphere/ESX How to log migration event to guest Windows OS

Solution 1:

This is a strange request... Mainly because there shouldn't be issues that result from vMotion (manual or DRS-triggered) in a vSphere environment.

A vMotion should be safe.

If there are issues stemming from it, you need to fix those instead of reacting to guest-level problems.

enter image description here

This doesn't answer your question directly, but you're chasing the symptom rather than the root issue.


In terms of tracking vMotion history, there are PowerCLI options to extract that information. In addition, you can just look at the vCenter logs.

enter image description here