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) server-digest SHA256) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id 6430195A37 for ; Thu, 19 Jan 2023 13:25:51 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 4E1362BE8C for ; Thu, 19 Jan 2023 13:25:51 +0100 (CET) Received: from gmmr-4.centrum.cz (gmmr-4.centrum.cz [IPv6:2a00:da80:1:502::8]) (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 13:25:50 +0100 (CET) Received: from gmmr-4.centrum.cz (localhost [127.0.0.1]) by gmmr-4.centrum.cz (Postfix) with ESMTP id BB0733073D for ; Thu, 19 Jan 2023 13:25:43 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=volny.cz; s=mail; t=1674131143; bh=fHThAWfF6o1YHLXDK69KEd9KRO+viNi0w8gFP1h0rYA=; h=From:Subject:Date:To:From; b=JrJ8otVYo3WvWsslVLCulLwY8aNFLUc7y/iYLi3GDPA7RFBqhRJBQaJIddc4Qyt02 HPlI5ZtO6Spt8hVmVxB2sJYl3u6VwjE5xxsraI32Cb22K+eXzOKmbd2fEM6WRCiF5y Qa2Wul3gbLKuSqzoieQqQa1gLgN9d1fuCn26DUMs= Received: from vm1.excello.cz (vm1.excello.cz [185.145.37.174]) by gmmr-4.centrum.cz (Postfix) with QMQP id B88B6201605D for ; Thu, 19 Jan 2023 13:25:43 +0100 (CET) Received: from vm1.excello.cz by vm1.excello.cz (VF-Scanner: Clear:RC:0(2a00:da80:1:502::8):SC:0(1.2/5.0):CC:0:; processed in 0.7 s); 19 Jan 2023 12:25:43 +0000 X-VF-Scanner-ID: 20230119122543.084642.5215.vm1.excello.cz.0 X-Spam-Status: No, hits=1.2, required=5.0 Received: from gmmr-4.centrum.cz (2a00:da80:1:502::8) by out2.virusfree.cz with ESMTPS (TLSv1.3, TLS_AES_256_GCM_SHA384); 19 Jan 2023 13:25:43 +0100 Received: from gm-smtp10.centrum.cz (envoy-stl.cent [10.32.56.18]) by gmmr-4.centrum.cz (Postfix) with ESMTP id F04C12019FEB for ; Thu, 19 Jan 2023 13:25:42 +0100 (CET) Received: from smtpclient.apple (unknown [10.128.64.66]) (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 E0B8DB2AC1 for ; Thu, 19 Jan 2023 13:25:42 +0100 (CET) From: Jan Vlach Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) Message-Id: <0D52E053-B035-44BC-A6CB-2E1893D33907@volny.cz> Date: Thu, 19 Jan 2023 13:25:41 +0100 To: pve-user@lists.proxmox.com X-Mailer: Apple Mail (2.3696.120.41.1.1) X-SPAM-LEVEL: Spam detection results: 0 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. [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: [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 12:25:51 -0000 Hi pve-users,=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. on CLI: Guest agent is enabled and running: # qm agent 112 ping=20 # qm agent 112 shutdown=20 { "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=20 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.=20 I've tested fully patched Debian Bullseye 11/amd64, Cisco Ironport = appliances (freebsd-based) and plain FreeBSD13.=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. 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/ = Does this work? Should this work? Has this ever been patched? Lots of = water passed between today and 2018 ... Thank you, JV