I have a Hyper-V VM running in Windows Server 2016 that is being managed through System Center. The VM has a device connected via DDA; therefore, the VM cannot enter the save state. This means that attempts to place the host in Maintenance Mode will fail.
Is there a way I can intercept a request for maintenance mode so I can send a signal to the guest OS? Furthermore, can I postpone the maintenance mode to give the guest time to react?
My current workaround is to manually signal the guest OS, then enter maintenance mode via the Disable-SCVMHost
cmdlet, but I would prefer to do it from System Center.