Windows guest agent shutdown requires user response to complete
Host environment
- Operating system: Linux Mint 21
- OS/kernel version: Linux 6.0.1-060001-generic #202210120833
- Architecture: x86 64-bit
- QEMU flavor: x86_64
- QEMU version: 6.2.0
- QEMU command
Emulated/Virtualized environment
- Operating system: Windows 11
- Architecture: x86_86
Description of problem
When a user of a system initiates a system shutdown operation directly through the system desktop, it is appropriate for open applications to prompt the user for a response, if the applications remain in a state without work having been saved to storage.
However, when the operation is initiated remotely, as through the monitor, or indirectly through the management operations provided by libvirt, or other management utilities, then user intervention is infeasible. In such cases the effect of the user prompt is simply to prevent a graceful shutdown as initiated by the host or an administrative remote client.
Steps to reproduce
- Open notepad on Windows (11) guest.
- Type text. Do not save to file.
- Attempt shutdown through monitor.
- Guest shutdown waits for user response.
Additional information
The shutdown operation triggered by the Windows Guest Agent should prevent the system from waiting for a user response concerning unsaved work of open desktop applications. Instead, applications and services should be closed as gracefully as possible automatically, in advance of the power down event on the emulated hardware.