dockur / windows

Windows inside a Docker container.
MIT License
28.62k stars 1.97k forks source link

[Feature]: Adding `QEMU Guest Agent` to Unattend XML #664

Open KernelGhost opened 3 months ago

KernelGhost commented 3 months ago

Is your proposal related to a problem?

Currently, Windows 11 fails to respond to podman-compose --file /path/to/compose.yaml stop. An ACPI shutdown request is sent to Windows 11, but it fails to react.

Describe the solution you'd like.

It may be beneficial to modify the unattend XML such that QEMU Guest Agent is automatically installed and configured when creating a new Windows container/VM. This may help in resolving the issues with Windows ignoring ACPI shutdown commands.

Describe alternatives you've considered.

I haven't explored other solutions yet. If anyone has additional suggestions, I’d be eager to hear them.

Additional context

podman-compose --file /path/to/compose.yaml stop WORKS (i.e. initiates a graceful shutdown) following manual installation of VirtIO drivers and QEMU Guest Agent from https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/latest-virtio/virtio-win.iso.

kroese commented 2 months ago

@KernelGhost I never seen this case where Windows ignores the ACPI signal? Is it related to Podman?