* [PVE-User] VM shutdown with qemu-guest-agent installed and enabled does not work @ 2023-01-19 12:25 Jan Vlach [not found] ` <mailman.325.1674155323.458.pve-user@lists.proxmox.com> 0 siblings, 1 reply; 3+ messages in thread From: Jan Vlach @ 2023-01-19 12:25 UTC (permalink / raw) To: pve-user Hi pve-users, I have fully patched proxmox 7.3 (non-subscription repo) with kernel 5.15.83-1-pve and I can't shutdown VMs from webUI. The task times out and is ignored in the VM. on CLI: Guest agent is enabled and running: # qm agent 112 ping # qm agent 112 shutdown { "error" : { "class" : "GenericError", "desc" : "child process has failed to shutdown" } } versus disabled & rebooted: # here it could be shut down via ACPI # qm agent 112 ping QEMU guest agent is not running With qemu disabled, regardless if it's installed, ACPI event is sent into VM and shutdown procedure gets run. I've tested fully patched Debian Bullseye 11/amd64, Cisco Ironport appliances (freebsd-based) and plain FreeBSD13. So far, I've been installing guest agent to see the assigned IP address in summary and probably also for fs-freeze and fs-thaw during PBS backups. I've found a post from 2018 describing my problem after my debugging at:https://forum.proxmox.com/threads/vm-shutdown-when-qemu-guest-agent-enabled.43404/ <https://forum.proxmox.com/threads/vm-shutdown-when-qemu-guest-agent-enabled.43404/> Does this work? Should this work? Has this ever been patched? Lots of water passed between today and 2018 ... Thank you, JV ^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <mailman.325.1674155323.458.pve-user@lists.proxmox.com>]
* Re: [PVE-User] VM shutdown with qemu-guest-agent installed and enabled does not work [not found] ` <mailman.325.1674155323.458.pve-user@lists.proxmox.com> @ 2023-01-19 19:49 ` Jan Vlach 2023-02-02 12:34 ` Jan Vlach 0 siblings, 1 reply; 3+ messages in thread From: Jan Vlach @ 2023-01-19 19:49 UTC (permalink / raw) To: Proxmox VE user list Hi Stefan, thank you for the links! Would dig deeper into this tomorrow. Have a nice evening, JV > On 19. 1. 2023, at 20:02, Stefan Radman via pve-user <pve-user@lists.proxmox.com> wrote: > > > From: Stefan Radman <stefan.radman@me.com <mailto:stefan.radman@me.com>> > Subject: Re: [PVE-User] VM shutdown with qemu-guest-agent installed and enabled does not work > Date: 19 January 2023 20:02:17 CET > To: Proxmox VE user list <pve-user@lists.proxmox.com <mailto:pve-user@lists.proxmox.com>> > > > Hi Jan > > Here is an old forum post of someone who had the same problem on Alpine Linux. > > https://forum.proxmox.com/threads/alpine-linux-kvm-wont-shutdown-with-qemu-guest-agent.49866/ <https://forum.proxmox.com/threads/alpine-linux-kvm-wont-shutdown-with-qemu-guest-agent.49866/> > > A more bug report related to Debian Bullseye points into the same direction: > dbus > > https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1004943 <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1004943> > > The thread here has some concrete advice for debian bullseye. > > https://dietpi.com/forum/t/qemu-guest-agent-shutdown/5898/6 <https://dietpi.com/forum/t/qemu-guest-agent-shutdown/5898/6> > > Hope this helps > > Stefan > > >> On Jan 19, 2023, at 13:25, Jan Vlach <janus@volny.cz <mailto:janus@volny.cz>> wrote: >> >> Hi pve-users, >> >> I have fully patched proxmox 7.3 (non-subscription repo) with kernel 5.15.83-1-pve and I can't shutdown VMs from webUI. The task times out and is ignored in the VM. >> >> on CLI: >> Guest agent is enabled and running: >> >> # qm agent 112 ping >> # qm agent 112 shutdown >> { >> "error" : { >> "class" : "GenericError", >> "desc" : "child process has failed to shutdown" >> } >> } >> >> versus disabled & rebooted: # here it could be shut down via ACPI >> >> # qm agent 112 ping >> QEMU guest agent is not running >> >> With qemu disabled, regardless if it's installed, ACPI event is sent into VM and shutdown procedure gets run. >> >> I've tested fully patched Debian Bullseye 11/amd64, Cisco Ironport appliances (freebsd-based) and plain FreeBSD13. >> >> So far, I've been installing guest agent to see the assigned IP address in summary and probably also for fs-freeze and fs-thaw during PBS backups. >> >> >> >> I've found a post from 2018 describing my problem after my debugging at:https://forum.proxmox.com/threads/vm-shutdown-when-qemu-guest-agent-enabled.43404/ <https://forum.proxmox.com/threads/vm-shutdown-when-qemu-guest-agent-enabled.43404/> <https://forum.proxmox.com/threads/vm-shutdown-when-qemu-guest-agent-enabled.43404/ <https://forum.proxmox.com/threads/vm-shutdown-when-qemu-guest-agent-enabled.43404/>> >> >> Does this work? Should this work? Has this ever been patched? Lots of water passed between today and 2018 ... >> >> Thank you, >> JV >> >> >> _______________________________________________ >> pve-user mailing list >> pve-user@lists.proxmox.com <mailto:pve-user@lists.proxmox.com> >> https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-user <https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-user> >> > > > > > _______________________________________________ > pve-user mailing list > pve-user@lists.proxmox.com <mailto:pve-user@lists.proxmox.com> > https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-user <https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-user> ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PVE-User] VM shutdown with qemu-guest-agent installed and enabled does not work 2023-01-19 19:49 ` Jan Vlach @ 2023-02-02 12:34 ` Jan Vlach 0 siblings, 0 replies; 3+ messages in thread From: Jan Vlach @ 2023-02-02 12:34 UTC (permalink / raw) To: Proxmox VE user list Hello Stefan and pve-users, just for the record, if anybody searches the archives later: On Debian >=8, qemu-guest-agent is available and can be installed. In newer qemu-guest-agent version, there is missing dependency in deb package on dbus that is required, so shutdown and other things work. It has been reported as bug (it's in one of the links from Stefan), but unfortunately as of 20230202 even in Debian 11, dbus needs to be installed manually. I "just" blanket-install dbus on all the versions with qemu-guest-agent and it works. Have a nice day and thanks again for the help. JV ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-02-02 12:34 UTC | newest] Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2023-01-19 12:25 [PVE-User] VM shutdown with qemu-guest-agent installed and enabled does not work Jan Vlach [not found] ` <mailman.325.1674155323.458.pve-user@lists.proxmox.com> 2023-01-19 19:49 ` Jan Vlach 2023-02-02 12:34 ` Jan Vlach
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox