If --no-shutdown is specified it only applies for a single shutdown , so the second shutdown does trigger an exit of qemu.
This patch changes that to keep on not shuting down. --- vl.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/vl.c b/vl.c index fcd7395..fb694cb 100644 --- a/vl.c +++ b/vl.c @@ -1398,7 +1398,6 @@ static void main_loop(void) monitor_protocol_event(QEVENT_SHUTDOWN, NULL); if (no_shutdown) { vm_stop(VMSTOP_SHUTDOWN); - no_shutdown = 0; } else break; } -- 1.7.6