Qemu Guest Agent can't shut down Alpine
Because Alpine doesn’t use posix shutdown, the Qemu Guest Agent is unable to perform a system shutdown (as it is hardcoded to use /sbin/shutdown)
A patch needs to be made for qga/commands-posix.c (from the qemu source) which modifies the qmp_guest_shutdown function to shutdown alpine (with /sbin/poweroff) appropriately.
(from redmine: issue id 9774, created on 2018-12-19, closed on 2018-12-25)
- Changesets:
- Revision 76b81b48 by Natanael Copa on 2018-12-20T16:21:11Z:
main/qemu: fix shutdown from guest agent
we dont have /sbin/shutdown so provide a fallback to the busybox
/sbin/poweroff, /sbin/halt and /sbin/reboot.
fixes #9774