UTM icon indicating copy to clipboard operation
UTM copied to clipboard

Default to "Request power down" for VMs when quitting UTM app or closing a VM window

Open ireuben opened this issue 2 years ago • 5 comments

It seems like it would be more friendly behavior if the default was to "Request power down" for a VM if you are quitting the app or closing a VM window, so it would shut down gracefully and not risk losing data. If that doesn't work, then the user could decide to force a shut down or kill.

I'm using Windows 11 and a command-line only linux, and they both shut down automatically after a "Request power down" (no further prompts need to be acknowledged).

As a bonus, could have a timeout (30 seconds?) which then pops up a dialog saying VM doesn't seem to be responding to the request to shutdown, so would you like to force it and possibly lose data?

Could also see this as a pref ("When closing a running VM: [Request power down]", with the same three menu options as the power icon on VM window). But does seem like a default of "Request power down" would be ideal both for usability (it just works with some VMs) and data safety (won't mess up your VM's drive, and worst case you have to click Shutdown on the prompt inside VM).

ireuben avatar Nov 20 '23 22:11 ireuben

As of 4.4.4 the default action is to suspend a running guest if the guest machine supports it - so it is now safe to close the VM's window in that case. As long as you have the client tools installed in the guest to keep the real-time clock synced it is now much more usable as a result.

However I do agree allowing us to set the default close action would be by far the best option.

Related issue: #4001

Mister-A avatar Nov 22 '23 08:11 Mister-A

Maybe interesting : https://forums.developer.apple.com/forums/thread/702160

kenji21 avatar Jun 19 '24 13:06 kenji21

Oh, I just discovered that we can long clic on the shut down button to "request to power down"

kenji21 avatar Jul 17 '24 12:07 kenji21

I agree that the option to request shutdown would be ideal. This solution doesn't work with GPU acceleration: Suspend is not supported when GPU acceleration is enabled.

Oh, I just discovered that we can long clic on the shut down button to "request to power down"

"Request power down" should be the default action for that button! I didn't think it was supported

epheterson avatar Aug 06 '24 04:08 epheterson