VMware {code} Community
sangras
Contributor
Contributor

DRS Events and DRS recommendations

Do we have a way by which we can find the reason for VM mirgation under DRS?.

There are events which tell about DRS migration but there is no reason mentioned in it. There is DRS recommendations in CluserComputerResouce as an property. But I could not found any thing which relate this two entities and reason can be formulated for DRS migration.

Thanks in advance.

Thanks,

--Sudhir.

Reply
0 Kudos
3 Replies
admin
Immortal
Immortal

You can refer EventManager object, it records a virtual machine migration that was recommended by DRS as "DrsVmMigratedEvent".

Reply
0 Kudos
sangras
Contributor
Contributor

Yes, the vm which are migrated under DRS , DRS event is generated but the reason (could be a CPU or a memory over load) for which the migration has occured is not present in DRS migration event.

How can i get the reason using API for which the migration has occured?

Thanks,

--Sudhir

Reply
0 Kudos
admin
Immortal
Immortal

Currently no API is exposed in VI SDK, by which the reason for migration triggered by DRS can be retrieved.

Reply
0 Kudos