Your message dated Wed, 27 Aug 2025 07:52:55 +0000
with message-id <[email protected]>
and subject line Bug#1108387: fixed in qemu 1:10.1.0+ds-1
has caused the Debian Bug report #1108387,
regarding qga command 'guest-suspend-disk' fails because it cannot create a
temporary file in /sys/power
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
1108387: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1108387
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: qemu-guest-agent
Version: 1:10.0.2+ds-1
Dear qemu maintainer(s),
it seems the qemu-guest-agent package (at least the one shipped in
Debian trixie) contains a logic bug that can prevent a suspend-to-mem or
suspend-to-disk command from executing.
The VM in question is a freshly installed Debian trixie guest with
qemu-guest-agent version 1:10.0.2+ds-1 installed.
What I did
----------
I called "virsh dompmsuspend <vm-name> --target disk" on the hypervisor.
What I expected to happen
-------------------------
guest suspends to disk
What actually happened
----------------------
guest did not suspend, and instead I got this error output:
error: Domain '<vm-name>' could not be suspended
error: guest agent command failed: unable to execute QEMU agent command
'guest-suspend-disk': suspend: cannot write to '/sys/power/state':
Failed to create file “/sys/power/state.36DK82”: Permission denied
Suggested Fix/Workaround
------------------------
I believe the actual write attempt is performed in this location:
qga/commands-linux.c at line 1412 [1].
It is possible the g_file_set_contents() function internally tries to
create a temporary file in the same folder as the target file, probably
to prevent losing the original file contents in case of any error during
write.
I suggest changing this to a plain old fopen() -> fwrite() -> fclose()
call sequence since there is no danger of data loss on sysfs writes.
Thank you for your time,
- Danny Edel
[1]:
https://sources.debian.org/src/qemu/1:10.0.2+ds-1/qga/commands-linux.c/?hl=1412#L1412
--- End Message ---
--- Begin Message ---
Source: qemu
Source-Version: 1:10.1.0+ds-1
Done: Michael Tokarev <[email protected]>
We believe that the bug you reported is fixed in the latest version of
qemu, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Michael Tokarev <[email protected]> (supplier of updated qemu package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Wed, 27 Aug 2025 10:34:09 +0300
Source: qemu
Architecture: source
Version: 1:10.1.0+ds-1
Distribution: unstable
Urgency: medium
Maintainer: Debian QEMU Team <[email protected]>
Changed-By: Michael Tokarev <[email protected]>
Closes: 1097693 1107104 1108387
Changes:
qemu (1:10.1.0+ds-1) unstable; urgency=medium
.
* new upstream release (v10.1.0)
Closes: #1107104, #1108387
* d/gbp.conf: switch to upstream-10.1 branch
* d/watch: switch to 10.1.x series
* d/copyright: update Files-Excluded
* d/patches/qemu-img-options.patch: remove
* remove patches which has been applied upstream:
- hw-display-qxl-render.c-fix-qxl_unpack_chunks-chunk-.patch
- system-physmem-fix-use-after-free-with-dispatch.patch
- pcie_sriov-Fix-configuration-and-state-synchronizati.patch
- hw-uefi-clear-uefi-vars-buffer-in-uefi_vars_write-CVE-2025-8860.patch
* d/patches/gnu-hurd.patch: refresh
* d/patches/disable-pycotap.patch: refresh
* d/control.mk: checked-version=10.1.0+ds
* d/rules: remove --enable-avx2 (not used anymore)
* d/rules: dts files in pc-bios moved into a subdir (pc-bios/dtb)
* skip-install-dtb.patch: avoid installing dtb files during arch build
These are built in indep step in d/rules.
+ skip-install-dtb.patch
* d/rules: use ${sysdataidir} in one more place instead of direct reference
* d/control: remove redundant unversioned python3 from Build-Depends
* d/control.mk: enable microblaze system targets on 32bit hosts
microbiaze has been erroneously treated as 64bit architecture,
and has been disabled in 10.0 on 32bit hosts. Now it is correctly
treated as 32bit architecture and is buildable on 32bit hosts again
* d/control: suggest passt among with vde2
* d/rules: add comment to remove ipxe from FIRMWAREPATH
* d/rules: remove --disable-pie from i386 qemu-user build
and remove references to old related bugs
* two patches for roms to support gcc -std=23 (bool type)
+SLOF-stdc23.patch
+u-boot-sam460ex-stdc23.patch
Closes: #1097693
* d/*.lintian-overrides: remove spelling-error-in-binary wtH mips overrides
Checksums-Sha1:
dd8805e0abffc8aef6c574a259c01d94eff1bb83 12242 qemu_10.1.0+ds-1.dsc
f77bd4eca6697b7569b45ce53a0569b112f9efaa 40218072 qemu_10.1.0+ds.orig.tar.xz
d2b133d72cd0c7cccc935ee9f19853794cf23432 123100 qemu_10.1.0+ds-1.debian.tar.xz
d7649cc055717e23c150a15bbdf69a9d4a40fee1 7575 qemu_10.1.0+ds-1_source.buildinfo
Checksums-Sha256:
e024802b060951ff6fcaa9f35577d0cd362276669bff4640f89b0219cd99e5d6 12242
qemu_10.1.0+ds-1.dsc
580ebb2760d85859b7b9211aad8cb77b2641efd39016c62dde37a07961b7ed85 40218072
qemu_10.1.0+ds.orig.tar.xz
e8bb2f8bf059522ff652062d51e4239d3a8aea2529788ffe7320fed0b487cf21 123100
qemu_10.1.0+ds-1.debian.tar.xz
74860cf06e02994940eb7734be3467bf3f23e5f1a988cbc39543b91cd02e4b0c 7575
qemu_10.1.0+ds-1_source.buildinfo
Files:
9763f3d7d2547a4f148568951e7f9dbc 12242 otherosfs optional qemu_10.1.0+ds-1.dsc
266fe1d037202fcb3081aa21e06fb20c 40218072 otherosfs optional
qemu_10.1.0+ds.orig.tar.xz
c6263388299bd02714a822adf898576a 123100 otherosfs optional
qemu_10.1.0+ds-1.debian.tar.xz
301aee8c7e23b6fa03e21ce014ae00be 7575 otherosfs optional
qemu_10.1.0+ds-1_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEZKoqtTHVaQM2a/75gqpKJDselHgFAmiutRcACgkQgqpKJDse
lHiQcw//YkYVqz0q+Jwo9xmdCPLWgnHMoTRyYevMJlQ4VdQzkpeEgKQpnGbvqZb+
vTk/Tcr65iLwhHE6wt0NCVJvG96simV4GpJFM5l3W2Ylf5abUiGmYamhTAj1B9rq
ROaFw3KTlXITYUFcRJFEw6Jvx8Y3r5W/4trqdpNjF15zzf8XONeDL/71f59VBpYJ
MLGCvbkwUt/XFesJj99SiTtbaGVWAUN/wGwfoTi77KvTJISuYOJ/BnwYxTSiniLs
yxAGDbC9bMmx0k8/iNvPq5AEfCaHWzXu4d9zzgBznRHkiBwn/L5IyDTA7FTS+7us
TRknTjwENp3oSqjP5WUiA5fd+1dzDHRqfTIrWqPHGhUoT1FKhTUnCJdzkOand8Wr
lNFVyoVJTcwQNxkNASadq8qJCCtxaRxdwTSJt/loFiBX4JRIIw5aAXgRVN/JV/AS
zhMgEz0KHsQN/3/0gEPOpux3EDPMWX3X7aO7krMmxwKSun6CIMGlansakHsmQ8Xu
VrfW2g9ilBQpZnG4+R9C2N+uY9aytac0N2zgJvWUswzM8Uciybk28R7lB/tTrtkn
CQVLWM79fMT7XsADVhOce3nYgN6LQ4VeYMLK6FaQdsx4JUcr4Ln5+3XQtotzkEE5
b4RmdAj0bIPoeR3fdkNZowVZBrEJnN8AZcRk69buW3UkRTIYpJk=
=ovH6
-----END PGP SIGNATURE-----
pgpSiQr2P__BC.pgp
Description: PGP signature
--- End Message ---