9ZSsKUxtKHwbyuNuB9IgzRPfkbxr63Ox757w witccGBTPSTiEXuBl4Q743EAkvAGXwl8AmYYbcwCbMC8CPeD1efiCaUfyxAbdLBa ZG7hyFnBWFWt9JfvTV+ULtE8AggW1Klx38vd2dIERsXU0qW8XyeIVK2PUlSXnf1m Fp34JWQjnU+xXahkdZKzSJrRqCLJr2QjCwgJZRA/XIucWOuf6udpUUgbVSdYmKaR o9s1WWT6DDuEvqwSj++SPQQh2nmp/PkxJjw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggdduvddtvdehucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucenucfjughrpeffhffvuffkfhggtggujgesthdtredttd dtvdenucfhrhhomhepvhhoihguuceovhhoihgusehfqdhmrdhfmheqnecuggftrfgrthht vghrnhepkeeluddvlefhieelfefggffhffektdehleelgfdugfdvgeekjeejuddtheehgf eunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepvhho ihgusehfqdhmrdhfmhdpnhgspghrtghpthhtohepuddpmhhouggvpehsmhhtphhouhhtpd hrtghpthhtohepvhhirhhtuhgrlhhiiigrthhiohhnsehfrhgvvggsshgurdhorhhg X-ME-Proxy: Feedback-ID: i2541463c:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Tue, 14 Oct 2025 06:05:34 -0400 (EDT) Date: Tue, 14 Oct 2025 11:05:32 +0100 From: void To: virtualization@freebsd.org Subject: Re: how to make bhyve gracefully shutdown a guest Message-ID: References: List-Id: Discussion List-Archive: https://lists.freebsd.org/archives/freebsd-virtualization List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-virtualization@freebsd.org Sender: owner-freebsd-virtualization@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.02 / 15.00]; NEURAL_HAM_MEDIUM(-0.99)[-0.995]; NEURAL_HAM_SHORT(-0.99)[-0.989]; MID_RHS_NOT_FQDN(0.50)[]; DMARC_POLICY_ALLOW(-0.50)[f-m.fm,none]; NEURAL_HAM_LONG(-0.44)[-0.439]; R_SPF_ALLOW(-0.20)[+ip4:202.12.124.128/27]; R_DKIM_ALLOW(-0.20)[f-m.fm:s=fm2,messagingengine.com:s=fm2]; RCVD_IN_DNSWL_LOW(-0.10)[202.12.124.149:from]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; FREEMAIL_FROM(0.00)[f-m.fm]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; FROM_HAS_DN(0.00)[]; FREEMAIL_ENVFROM(0.00)[f-m.fm]; PREVIOUSLY_DELIVERED(0.00)[virtualization@freebsd.org]; TO_DN_NONE(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[f-m.fm:+,messagingengine.com:+]; MLMMJ_DEST(0.00)[virtualization@freebsd.org]; ASN(0.00)[asn:151847, ipnet:202.12.124.0/24, country:AU]; RCVD_VIA_SMTP_AUTH(0.00)[]; MISSING_XM_UA(0.00)[]; DWL_DNSWL_NONE(0.00)[messagingengine.com:dkim] X-Rspamd-Queue-Id: 4cm8ww0g4Mz3wbN On Mon, Oct 13, 2025 at 06:38:15PM -0700, Paul Vixie wrote: >Kill(1) on bhyve with the default TERM signal makes bhyve >send acpi shutdown to the guest. This is what vm-bhyve seems to do. OK thanks for that. Kind of surprised bhyvectl doesn't, well, ctl in this way, but here we are. The context is where there's a stable/15 server running various linux and otherbsd guests. I want sysutils/nut (client) to shut down everything gracefully when battery gets to 10%. I thought I could do that by getting nut to tell the server via bhyvectl to gently poweroff the clients directly. Or failing that, run nut on the server to do the same. In the datacentres there's different equipment to handle this. It's the first time i'm hand-rollong it. --