From: Jakob Klocker <j.klocker@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [PATCH docs/guest-common/manager/qemu-server v2 0/8] fix #7213: add `powercycle` reboot behavior
Date: Thu, 22 Oct 2026 14:51:03 +0200 [thread overview]
Message-ID: <20261022125111.236538-1-j.klocker@proxmox.com> (raw)
A reboot initiated inside the guest is handled by QEMU itself: the
process keeps running and only the guest OS boots again. That is fast,
but the VM stays on the configuration and QEMU binary it was started
with, so pending changes remain pending.
This series adds a `powercycle` sub-property to the existing `reboot`
option. With it set, the VM is started with `-no-reboot`, so QEMU exits
on a reset; qmeventd reports the reason, and `qm cleanup` starts
the VM again. The result is a full start, so pending changes take
effect.
To carry the new sub-property, `reboot` is converted to a property
string. Existing configurations stay valid, as the previous boolean
value is the default key.
Note two behavior changes beyond the new sub-property: `reboot: 0` now
also prevents a restart for reboots triggered through the web interface,
`qm` or the API - previously only guest-initiated reboots were affected.
The documented meaning of the option is that the VM does not reboot, so
this seemed like the more consistent reading. And with `powercycle` set,
a reset requested through the web interface, `qm` or the API also becomes
a full stop and start, since `-no-reboot` makes QEMU exit on any reset.
changes from v1 to v2 :
- fix pending delete for options with value 0
- warn when restarting a VM with reboot disabled
- reboot on `qm reset` even if reboot is disabled, feels more
intuitive
- style fixes according to proxmox style guide (thanks @david)
Link: https://bugzilla.proxmox.com/show_bug.cgi?id=7213
pve-guest-common:
Jakob Klocker (1):
AbstractConfig: fix pending delete for options with value 0
src/PVE/AbstractConfig.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
pve-docs:
Jakob Klocker (1):
qm: add reboot behavior information
qm.adoc | 40 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
qemu-server:
Jakob Klocker (5):
qm: do not restart VM when `reboot` is disabled
fix #7213: config: add `powercycle` sub-property to `reboot`
fix #7213: qm: cleanup: add `reset` parameter to honor `powercycle`
fix #7213: qmeventd: pass `reset` to `qm cleanup`
vm_reboot: warn when rebooting a VM with `reboot` disabled
src/PVE/CLI/qm.pm | 25 ++++++++++++++++++---
src/PVE/QemuServer.pm | 50 ++++++++++++++++++++++++++++++++++++-----
src/qmeventd/qmeventd.c | 36 ++++++++++++++++++++++-------
src/qmeventd/qmeventd.h | 1 +
4 files changed, 96 insertions(+), 16 deletions(-)
pve-manager:
Jakob Klocker (1):
ui: qemu: options: add editor for reboot behavior
www/manager6/Makefile | 1 +
www/manager6/Utils.js | 17 +++++++
www/manager6/form/RebootFeatureSelector.js | 59 ++++++++++++++++++++++
www/manager6/qemu/Options.js | 14 +++++
4 files changed, 91 insertions(+)
create mode 100644 www/manager6/form/RebootFeatureSelector.js
Summary over all repositories:
10 files changed, 228 insertions(+), 17 deletions(-)
--
Generated by murpp 0.12.0
next reply other threads:[~2026-10-22 12:51 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-22 12:51 Jakob Klocker [this message]
2026-10-22 12:51 ` [PATCH pve-guest-common v2 1/8] AbstractConfig: fix pending delete for options with value 0 Jakob Klocker
2026-10-22 12:51 ` [PATCH pve-docs v2 2/8] qm: add reboot behavior information Jakob Klocker
2026-10-22 12:51 ` [PATCH qemu-server v2 3/8] qm: do not restart VM when `reboot` is disabled Jakob Klocker
2026-10-22 12:51 ` [PATCH qemu-server v2 4/8] fix #7213: config: add `powercycle` sub-property to `reboot` Jakob Klocker
2026-10-22 12:51 ` [PATCH qemu-server v2 5/8] fix #7213: qm: cleanup: add `reset` parameter to honor `powercycle` Jakob Klocker
2026-10-22 12:51 ` [PATCH qemu-server v2 6/8] fix #7213: qmeventd: pass `reset` to `qm cleanup` Jakob Klocker
2026-10-22 12:51 ` [PATCH qemu-server v2 7/8] vm_reboot: warn when rebooting a VM with `reboot` disabled Jakob Klocker
2026-10-22 12:51 ` [PATCH pve-manager v2 8/8] ui: qemu: options: add editor for reboot behavior Jakob Klocker
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261022125111.236538-1-j.klocker@proxmox.com \
--to=j.klocker@proxmox.com \
--cc=pve-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox