all lists on lists.proxmox.com
 help / color / mirror / Atom feed
From: David Riley <d.riley@proxmox.com>
To: Jakob Klocker <j.klocker@proxmox.com>, pve-devel@lists.proxmox.com
Subject: Re: [PATCH docs/manager/qemu-server 0/6] fix #7213: add `powercycle` reboot behavior
Date: Tue, 1 Sep 2026 16:20:26 +0200	[thread overview]
Message-ID: <32a722b1-f8a4-4f3d-b7f7-e1ab0cd1336b@proxmox.com> (raw)
In-Reply-To: <20260813112717.272254-1-j.klocker@proxmox.com>

Thanks for tackling this quality of life feature!

Applied the patches and tested it on a HA-Cluster.
Made sure the following works:
- Reboot from within the guest (with powercycle=1) successfully applies
   pending hardware changes.
- HA-Manager (self-fence), migration, and starting of workloads still work
   as expected.
- Migrated between a patched (reboot: 1,powercycle=1) and unpatched
   node and everything seems to work. In the log there is this message:
   [pve-node-5] vm 103 - unable to parse value of 'reboot' - type check ('boolean') failed - got '1,powercycle=1'
   On the unpatched node the 'reboot: 1' will be missing, in this case it is not
   a big deal as 'reboot: 1' is the default value, but when 'reboot: 0,powercycle=1'
   is set it will get lost when migrating. Not a big deal just something to be
   aware of.

Overall, everything seems to work as intended.

I do have one suggestion which might be worth addressing:
Reboot Button in the WebUI:
It would be a nice addition to add a warning in the task log when using the
"Reboot" button on a VM where 'reboot: 0' is set. Since this setting is now
exposed in the UI, a user might be confused as to why the VM simply
shuts down instead of restarting when a reboot is issued.

Found a few small nits on Patch 5/6, but consider this:
Tested-by: David Riley <d.riley@proxmox.com>

On 8/13/26 1:28 PM, Jakob Klocker wrote:

> 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.
>
> Link:https://bugzilla.proxmox.com/show_bug.cgi?id=7213
>
>
> qemu-server:
>
> Jakob Klocker (4):
>    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`
>
>   src/PVE/CLI/qm.pm       | 22 +++++++++++++++++++---
>   src/PVE/QemuServer.pm   | 41 ++++++++++++++++++++++++++++++++++++-----
>   src/qmeventd/qmeventd.c | 36 ++++++++++++++++++++++++++++--------
>   src/qmeventd/qmeventd.h |  1 +
>   4 files changed, 84 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
>
>
> pve-docs:
>
> Jakob Klocker (1):
>    qm: add reboot behavior information
>
>   qm.adoc | 37 +++++++++++++++++++++++++++++++++++++
>   1 file changed, 37 insertions(+)
>
>
> Summary over all repositories:
>    9 files changed, 212 insertions(+), 16 deletions(-)
>




      parent reply	other threads:[~2026-09-01 14:20 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-13 11:27 [PATCH docs/manager/qemu-server 0/6] fix #7213: add `powercycle` reboot behavior Jakob Klocker
2026-08-13 11:27 ` [PATCH qemu-server 1/6] qm: do not restart VM when 'reboot' is disabled Jakob Klocker
2026-08-13 11:27 ` [PATCH qemu-server 2/6] fix #7213: config: add `powercycle` sub-property to `reboot` Jakob Klocker
2026-08-13 11:27 ` [PATCH qemu-server 3/6] fix #7213: qm: cleanup: add `reset` parameter to honor `powercycle` Jakob Klocker
2026-08-13 11:27 ` [PATCH qemu-server 4/6] fix #7213: qmeventd: pass `reset` to `qm cleanup` Jakob Klocker
2026-08-13 11:27 ` [PATCH pve-manager 5/6] ui: qemu: options: add editor for reboot behavior Jakob Klocker
2026-09-01 14:20   ` David Riley
2026-08-13 11:27 ` [PATCH pve-docs 6/6] qm: add reboot behavior information Jakob Klocker
2026-09-01 14:20 ` David Riley [this message]

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=32a722b1-f8a4-4f3d-b7f7-e1ab0cd1336b@proxmox.com \
    --to=d.riley@proxmox.com \
    --cc=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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal