Files
libguestfs/lib
Richard W.M. Jones 499e4daf72 lib/qemu.c: Don't start the guest when checking QMP properties
When checking for QMP properties, we run a qemu command and interact
with the QMP console.  However we also start the guest running (there
is no actual guest in this situation).  This occasionally causes this
line to be printed:

  libguestfs: generic_qmp_test: 3: {"timestamp": {"seconds": 1768823946, "microseconds": 898287}, "event": "GUEST_PANICKED", "data": {"action": "poweroff", "info": {"core": 0, "psw-addr": 0, "reason": "disabled-wait", "psw-mask": 562956395872256, "type": "s390"}}}\r\n

which confuses our parser.

As there is no reason to start the non-existent guest, add the -S
option which causes qemu to start up in a paused state.

For some reason this only happens on s390x but I think it could happen
on all architectures, so it may be a timing issue or something
particular about s390x firmware.

(cherry picked from commit 5da8102f5f)
2026-01-19 18:55:27 +00:00
..
2025-02-16 17:00:46 +00:00
2017-01-26 15:05:46 +00:00
2025-02-16 17:00:46 +00:00
2025-02-16 17:00:46 +00:00
2021-04-08 11:12:17 +01:00
2025-08-04 15:49:50 +01:00
2017-01-26 15:05:46 +00:00
2025-02-16 17:00:46 +00:00
2024-10-22 16:03:16 +01:00
2021-04-08 11:12:17 +01:00
2025-02-16 17:00:46 +00:00
2025-02-16 17:00:46 +00:00
2025-02-16 17:00:46 +00:00
2025-02-16 17:00:46 +00:00
2017-01-26 15:05:46 +00:00
2022-08-16 15:42:30 +01:00
2017-01-26 15:05:46 +00:00
2025-02-16 17:00:46 +00:00
2017-01-26 15:05:46 +00:00
2025-02-16 17:00:46 +00:00