Open jblachly opened 4 years ago
Originally I was unable to get a Windows guest to shut down with a single call. I have no real idea why but Windows would just act like nothing happened. Two calls produced a fairly consistent poweroff. Could of just been something weird with my test machine of course.
I'll test again and see if I still have the same problem. Would be interesting if someone else running Windows tried to see if they get the same result.
@churchers thats documented behavior for Windows, see: https://www.tenforums.com/tutorials/107875-add-enable-forced-button-lid-shutdown-power-options-windows.html
Illumos ACPI driver in kernel interprets a second poweroff even within a timeout period as a "cancel" request.
Thus,
vm stop <guestname>
won't shutdown an illumos guest:However, if we modify
vm-core
to remove the second signal, it works fine:leads to proper shutdown.
If there is an important reason to keep the second SIGTERM, could we at least make it configurable?