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-11-04 15:59:02 +00:00
2025-05-10 18:29:40 +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 16:57:43 +00:00
2025-02-16 17:00:46 +00:00
2026-01-05 16:19:15 +00:00
2026-01-05 16:19:15 +00:00
2025-11-20 21:00:29 +00:00
2025-02-16 17:00:46 +00:00
2025-11-03 15:53:50 -05:00
2025-02-16 17:00:46 +00:00
2018-02-22 15:06:13 +00:00
2021-04-08 11:36:40 +01:00
2023-11-16 10:38:59 +00:00
2013-01-24 15:00:49 +00:00
2025-03-22 12:41:39 +00:00
2020-01-14 16:21:22 +01:00
2026-01-05 16:19:15 +00:00
2019-11-13 12:49:55 +00:00
2025-02-16 17:00:46 +00:00
2025-02-16 17:00:46 +00:00

Libguestfs is tools and a library for accessing and modifying guest
disk images.  For more information see the home page:

  http://libguestfs.org/

For discussion, development, patches, etc. please use the mailing
list:

  https://lists.libguestfs.org

To find out how to build libguestfs from source, read:

  docs/guestfs-building.pod
  http://libguestfs.org/guestfs-building.1.html
  man docs/guestfs-building.1

Copyright (C) 2009-2025 Red Hat Inc.

The library is distributed under the LGPLv2+.  The programs are
distributed under the GPLv2+.  Please see the files COPYING and
COPYING.LIB for full license information.  The examples are under a
very liberal license.
Languages
C 42.7%
OCaml 35.5%
Shell 7.1%
Makefile 4%
Perl 2.6%
Other 8%