From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id 7966995B98 for ; Thu, 19 Jan 2023 20:49:20 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 373C02F527 for ; Thu, 19 Jan 2023 20:49:20 +0100 (CET) Received: from gmmr-2.centrum.cz (gmmr-2.centrum.cz [IPv6:2a00:da80:1:502::7]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS for ; Thu, 19 Jan 2023 20:49:17 +0100 (CET) Received: from gmmr-2.centrum.cz (localhost [127.0.0.1]) by gmmr-2.centrum.cz (Postfix) with ESMTP id E31B020086A4 for ; Thu, 19 Jan 2023 20:49:10 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=volny.cz; s=mail; t=1674157750; bh=HSYkXL6PDyPgJGHfYCmjsbAo80TBoJE/z1iMnQER0XA=; h=From:Subject:Date:References:To:In-Reply-To:From; b=iq960DNFj9gzTZbaBboWb/V/dwIwtbRAncNPWgYuFlLmMbTdS+DUDDpHMl3NnwAN4 x7Yx4yzKjlvvNaHMExRj3i/UUIJ7bgfTnc/1OoTAXnRiXutmfah/2X5j6XX8sbUMtf yypqk31Vx3W170kDw1aCjSn5RRlvPNeL2VTvA1ho= Received: from vm1.excello.cz (vm1.excello.cz [IPv6:2001:67c:1591::3]) by gmmr-2.centrum.cz (Postfix) with QMQP id E04ED20078FE for ; Thu, 19 Jan 2023 20:49:10 +0100 (CET) Received: from vm1.excello.cz by vm1.excello.cz (VF-Scanner: Clear:RC:0(2a00:da80:0:502::7):SC:0(-0.8/5.0):CC:0:; processed in 1.4 s); 19 Jan 2023 19:49:10 +0000 X-VF-Scanner-ID: 20230119194909.544878.27398.vm1.excello.cz.0 X-Spam-Status: No, hits=-0.8, required=5.0 Received: from gmmr-1.centrum.cz (2a00:da80:0:502::7) by out2.virusfree.cz with ESMTPS (TLSv1.3, TLS_AES_256_GCM_SHA384); 19 Jan 2023 20:49:09 +0100 Received: from gm-smtp10.centrum.cz (envoy-stl.cent [10.32.56.18]) by gmmr-1.centrum.cz (Postfix) with ESMTP id 695A1D8 for ; Thu, 19 Jan 2023 20:49:09 +0100 (CET) Received: from smtpclient.apple (unknown [45.84.165.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gm-smtp10.centrum.cz (Postfix) with ESMTPSA id 16F1BB2AC0 for ; Thu, 19 Jan 2023 20:49:09 +0100 (CET) From: Jan Vlach Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) Date: Thu, 19 Jan 2023 20:49:07 +0100 References: <0D52E053-B035-44BC-A6CB-2E1893D33907@volny.cz> To: Proxmox VE user list In-Reply-To: Message-Id: <5B312CF5-1C2A-436C-9160-D35FEB764D7E@volny.cz> X-Mailer: Apple Mail (2.3696.120.41.1.1) X-SPAM-LEVEL: Spam detection results: 0 AWL 0.469 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain DKIM_VALID_EF -0.1 Message has a valid DKIM or DK signature from envelope-from domain HTML_MESSAGE 0.001 HTML included in message RCVD_IN_DNSWL_NONE -0.0001 Sender listed at https://www.dnswl.org/, no trust SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record URIBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [dietpi.com, proxmox.com, volny.cz] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 Subject: Re: [PVE-User] VM shutdown with qemu-guest-agent installed and enabled does not work X-BeenThere: pve-user@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE user list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Jan 2023 19:49:20 -0000 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 = wrote: >=20 >=20 > From: Stefan Radman > > 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 > >=20 >=20 > Hi Jan >=20 > Here is an old forum post of someone who had the same problem on = Alpine Linux. >=20 > = https://forum.proxmox.com/threads/alpine-linux-kvm-wont-shutdown-with-qemu= -guest-agent.49866/ = >=20 > A more bug report related to Debian Bullseye points into the same = direction: > dbus=20 >=20 > https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=3D1004943 = >=20 > The thread here has some concrete advice for debian bullseye. >=20 > https://dietpi.com/forum/t/qemu-guest-agent-shutdown/5898/6 = >=20 > Hope this helps >=20 > Stefan >=20 >=20 >> On Jan 19, 2023, at 13:25, Jan Vlach > wrote: >>=20 >> Hi pve-users,=20 >>=20 >> 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. >>=20 >> on CLI: >> Guest agent is enabled and running: >>=20 >> # qm agent 112 ping=20 >> # qm agent 112 shutdown=20 >> { >> "error" : { >> "class" : "GenericError", >> "desc" : "child process has failed to shutdown" >> } >> } >>=20 >> versus disabled & rebooted: # here it could be shut down via ACPI >>=20 >> # qm agent 112 ping=20 >> QEMU guest agent is not running >>=20 >> With qemu disabled, regardless if it's installed, ACPI event is sent = into VM and shutdown procedure gets run.=20 >>=20 >> I've tested fully patched Debian Bullseye 11/amd64, Cisco Ironport = appliances (freebsd-based) and plain FreeBSD13.=20 >>=20 >> 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. >>=20 >>=20 >>=20 >> 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-ena= bled.43404/ = = > >>=20 >> Does this work? Should this work? Has this ever been patched? Lots of = water passed between today and 2018 ... >>=20 >> Thank you, >> JV >>=20 >>=20 >> _______________________________________________ >> pve-user mailing list >> pve-user@lists.proxmox.com >> https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-user = >>=20 >=20 >=20 >=20 >=20 > _______________________________________________ > pve-user mailing list > pve-user@lists.proxmox.com > https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-user =