From nobody Thu Jun 25 10:05:30 2026 X-Original-To: freebsd-virtualization@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4gmDvr2Vqcz6hwBq for ; Thu, 25 Jun 2026 10:05:44 +0000 (UTC) (envelope-from leo.lundberg99@ikmail.com) Received: from smtp-8faf.mail.infomaniak.ch (smtp-8faf.mail.infomaniak.ch [IPv6:2001:1600:19:fff0::8faf]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "relay.mail.infomaniak.ch", Issuer "YR1" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4gmDvq1WGhz3PPH for ; Thu, 25 Jun 2026 10:05:43 +0000 (UTC) (envelope-from leo.lundberg99@ikmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=ikmail.com header.s=20210927 header.b=ZxL6XIBC; dmarc=pass (policy=reject) header.from=ikmail.com; spf=pass (mx1.freebsd.org: domain of leo.lundberg99@ikmail.com designates 2001:1600:19:fff0::8faf as permitted sender) smtp.mailfrom=leo.lundberg99@ikmail.com Received: from smtp-3-0000.mail.infomaniak.ch (smtp-3-0000.mail.infomaniak.ch [10.4.36.107]) by smtp-4-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4gmDvb0ym9z3mh for ; Thu, 25 Jun 2026 12:05:31 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ikmail.com; s=20210927; t=1782381931; bh=1I6dRkW+gkoNst2ofXALj4xQsgU72UYjDgMaphwtu/o=; h=Date:To:From:Subject:From; b=ZxL6XIBCUxXi5upaKfejdZmgu1J5DZLGu1wzUytpN6EAcaWaQd1hgwUDZJhO25wue 2zwrALxO+jPI7ODM34OXOJTBnSYOEQilComfjbybjKO+RxkhY7D4OVPQVpXjY2lQAr +wcM85WGX5wTAhy4nY3sQlS855SsdzCJ7ZRFfbb4= Received: from unknown by smtp-3-0000.mail.infomaniak.ch (Postfix) with ESMTPA id 4gmDvZ4gQHzH5m for ; Thu, 25 Jun 2026 12:05:30 +0200 (CEST) Message-ID: <06b91174-b5d3-4203-9115-75b1e38a805d@ikmail.com> Date: Thu, 25 Jun 2026 12:05:30 +0200 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 List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: freebsd-virtualization@freebsd.org From: Leo Subject: Graceful shutdown of Bhyve VM? Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Feedback-ID: :5d6c9acb3b882cc:ham:156fd7c29312541 X-Infomaniak-Routing: alpha X-Spamd-Result: default: False [-2.99 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_SHORT(-0.99)[-0.992]; DMARC_POLICY_ALLOW(-0.50)[ikmail.com,reject]; R_SPF_ALLOW(-0.20)[+ip6:2001:1600:19::/48:c]; R_DKIM_ALLOW(-0.20)[ikmail.com:s=20210927]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; ASN(0.00)[asn:29222, ipnet:2001:1600::/32, country:CH]; MIME_TRACE(0.00)[0:+]; FROM_HAS_DN(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-virtualization@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; TO_DN_NONE(0.00)[]; MLMMJ_DEST(0.00)[freebsd-virtualization@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; DKIM_TRACE(0.00)[ikmail.com:+] X-Spamd-Bar: -- X-Rspamd-Queue-Id: 4gmDvq1WGhz3PPH Hello, I'm using bhyve without any front-ends like the vm-bhyve package and whatnot, I was wondering how to properly perform a graceful shutdown of a VM without explicitly calling shutdown within it. I know qemu can send an ACPI shutdown signal to it, and apparently vm-bhyve can do something similar but it isn't clear through what mechanism it does this. / Leo From nobody Thu Jun 25 10:13:53 2026 X-Original-To: freebsd-virtualization@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4gmF5b2WDMz6hx9G for ; Thu, 25 Jun 2026 10:14:11 +0000 (UTC) (envelope-from mail@raifra.de) Received: from nx212.node01.secure-mailgate.com (nx212.node01.secure-mailgate.com [89.22.108.212]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "*.secure-mailgate.com", Issuer "Sectigo Public Server Authentication CA DV R36" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4gmF5Y75bFz3RWZ for ; Thu, 25 Jun 2026 10:14:09 +0000 (UTC) (envelope-from mail@raifra.de) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=raifra.de header.s=rf2025 header.b=n2O6i0U9; dmarc=pass (policy=quarantine) header.from=raifra.de; spf=pass (mx1.freebsd.org: domain of mail@raifra.de designates 89.22.108.212 as permitted sender) smtp.mailfrom=mail@raifra.de Received: from smtp.wum.dogado.net ([5.44.111.241]) by node01.secure-mailgate.com with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1wch5s-00EjiT-O7 for freebsd-virtualization@freebsd.org; Thu, 25 Jun 2026 12:14:02 +0200 Received: from mailproxy6.dogado.net (mailproxy6.dogado.net [31.47.255.222]) by smtp.wum.dogado.net (Postfix) with ESMTPSA id 76CC51A204EA for ; Thu, 25 Jun 2026 12:14:00 +0200 (CEST) Received: from [192.168.178.50] (ip-095-223-020-116.um35.pools.vodafone-ip.de [95.223.20.116]) by mail.fritz.box (Postfix) with ESMTPSA id BBEF8139016 for ; Thu, 25 Jun 2026 12:13:59 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raifra.de; s=rf2025; t=1782382439; bh=O5SHf+uWnmVpj2KDvrwSvGKDFQPIXGnLJVuRc84WGFc=; h=From:To:Subject:Date:In-Reply-To:References:From; b=n2O6i0U9QYoKLyZfOXfC6bCgElNn96uzrAjzoqJpj9D7nFtIoVJnabJpSwscUNVtt 6uuALer5eybt01qJ7gssoiQjkvdflamtDYps3i7fdJH2hcPtLSKtYQr45TuEth/eWP U89jfdRONm94IIHiEg3w8Z1YNi1fRfscLB+WOi/rWNr3dsRhPVIy1teRu7DNzgj0AS pZsZw1IEl6w/X+prBQp2VHWSbrPlEJiVf1u00KK+T0rdc8rP+7vxKHbxRub3S8F4HB Pou++lzipGzxxAVbRzF2iZKxoleg/EuoyOZbDEGFhhRVCnPFgf0opp1grpxaFXmZt1 +ic70bNWVWq3w== From: =?utf-8?q?Rainer_Fr=C3=A4drich?= To: freebsd-virtualization@freebsd.org Subject: Re: Graceful shutdown of Bhyve VM? Date: Thu, 25 Jun 2026 12:13:53 +0200 X-Mailer: MailMate (3.0r7013) Message-ID: In-Reply-To: <06b91174-b5d3-4203-9115-75b1e38a805d@ikmail.com> References: <06b91174-b5d3-4203-9115-75b1e38a805d@ikmail.com> 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 List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-MS-Reactions: disallow X-Originating-IP: 5.44.111.241 X-SecureMailgate-Domain: smtp.wum.dogado.net X-SecureMailgate-Username: 5.44.111.241 X-SecureMailgate-Outgoing-Class: ham X-SecureMailgate-Outgoing-Evidence: Combined (0.11) X-Recommended-Action: accept X-Filter-ID: 9kzQTOBWQUFZTohSKvQbgI7ZDo5ubYELi59AwcWUnuUxhm+eq9v50kNVr+0Zt0X48zdpBcqkAYii K+5Xmoabgyu2SmbhJN1U9FKs8X3+Nt0Z2biQikhYWaB6iQZMKSWgNrLgw4Kxdinh5l7bYnKlhQbw QzivzOjdOg4+jkqP8qMEybI1sOftHmSKUCHCvcq0VvcCA1Qa9BGdQX4vJy9/H5JVRKyFCRrxWkR6 oZhlSr1XXeqHBnAMKaX9Bn3aI0m+iFKfD1jKgYfH+6S5qDVYoF3GA+FIzRrqr3ICrfWbLNNnkEjw L+OEdZxeaGv7+a6AzO11BRKqT8B4uLrn7iz8ujemlCquzrJ0YZ1VzniO/xPk6Pnrj57pHasIWjxl 5VQaCkQZW81tMEBQ4bAn0uDrJ9uGRuKPr0Bb/YuPEx8xCp8w8v9dOk96q4wOjjiKKElSPf5T4wdp 9pAFEEs5BVGN/Y1GORiwcsxRcY3MWLZZqRCna/UO+iBFtc1vrpd7ZA7pLO2abih6uaqqA7ooJV6w UnGlfXdmgJrKjBlTpWs78y/t21KsUCuSAQswQXHoMm9jsUJxiMOuetfLi1ca3ASdYSxaRQsif/YU G8XfVQduyd2PpF62RcTzTI/rfKDo3Seycxw3qqhc+N6cuEg4XWh5FmuMfNl3h0eIBYLSE9LS15gy IZafgtEDXon6tksvwDBI2CuVu1nDv+zT4TcAg3vCKyNK8AYndLgjhCEsJMoaamSI5KYv5O/BkmF5 RuTAfCI2sfleIEzSIDwYLpsqF5A/5ueURvP7468+f+EGtWkSZL3vIH7Onxq7K36iU/HreJlPwIE4 fwcRbgrTrvDQzSQKNPDVRYakDg39mKv/F81/b7hUpzVAoGfeK4JYfMhn40/58T4pPPu9UqqAphye M4YUqXfKauujDrFmxsM1LM+4lg1+pvlHhV6a5QjptwQBGybQbizYEmfFf9Q76pOARM1hPaO/JlaT 3NPNbTXIKgpcMNdUVAhDP8CkTQOksg9jfQHlTj0vnzQjAfNrZP7n1LeGeDqcJaUck4JBd0qCu39j Q6c6CDZ8sHBArixddkcjNj6s/3Fozoqb7NKd631KV+g/xg== X-Report-Abuse-To: spam@node04.secure-mailgate.com X-Complaints-To: abuse@node01.secure-mailgate.com X-Spamd-Result: default: False [-2.42 / 15.00]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.97)[-0.974]; R_MIXED_CHARSET(0.56)[subject]; DMARC_POLICY_ALLOW(-0.50)[raifra.de,quarantine]; R_DKIM_ALLOW(-0.20)[raifra.de:s=rf2025]; R_SPF_ALLOW(-0.20)[+ip4:89.22.108.0/24]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_ALL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[raifra.de:+]; SUSPICIOUS_AUTH_ORIGIN(0.00)[]; FROM_HAS_DN(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-virtualization@freebsd.org]; TO_DN_NONE(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:8648, ipnet:89.22.96.0/19, country:DE]; HAS_XOIP(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; MLMMJ_DEST(0.00)[freebsd-virtualization@freebsd.org]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+] X-Spamd-Bar: -- X-Rspamd-Queue-Id: 4gmF5Y75bFz3RWZ Hello, I use the way described in the FreeBSD Handbook, works perfectly for me: Bye, Rainer =E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94 Quote: Destroying a virtual machine this way means killing it immediately. Any u= nsaved data will be lost, open files and filesystems may get corrupted. To gracefully shut down a virtual machine, send a TERM signal to its bhyve process instead. This triggers an ACPI shutdown = event for the guest: # ps ax | grep bhyve 17424 - SC 56:48.27 bhyve: guestvm (bhyve) # kill 17424 =E2=80=94=E2=80=94=E2=80=94=E2=80=94 On 25 Jun 2026, at 12:05, Leo wrote: > Hello, I'm using bhyve without any front-ends like the vm-bhyve package= and whatnot, I was wondering how to properly perform a graceful shutdown= of a VM without explicitly calling shutdown within it. I know qemu can s= end an ACPI shutdown signal to it, and apparently vm-bhyve can do somethi= ng similar but it isn't clear through what mechanism it does this. > > / Leo From nobody Fri Jun 26 07:26:30 2026 X-Original-To: virtualization@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4gmnKl60x2z6j161 for ; Fri, 26 Jun 2026 07:26:35 +0000 (UTC) (envelope-from leo.lundberg99@ikmail.com) Received: from smtp-42a9.mail.infomaniak.ch (smtp-42a9.mail.infomaniak.ch [84.16.66.169]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "relay.mail.infomaniak.ch", Issuer "YR1" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4gmnKk14skz3gJK for ; Fri, 26 Jun 2026 07:26:34 +0000 (UTC) (envelope-from leo.lundberg99@ikmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=ikmail.com header.s=20210927 header.b=Y4kxR5ob; dmarc=pass (policy=reject) header.from=ikmail.com; spf=pass (mx1.freebsd.org: domain of leo.lundberg99@ikmail.com designates 84.16.66.169 as permitted sender) smtp.mailfrom=leo.lundberg99@ikmail.com Received: from smtp-4-0000.mail.infomaniak.ch (smtp-4-0000.mail.infomaniak.ch [10.7.10.107]) by smtp-4-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4gmnKh0jqWz2dR; Fri, 26 Jun 2026 09:26:32 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ikmail.com; s=20210927; t=1782458791; bh=N0P3h89nvG/tU1wXgi4hr5N8L5sA34omZE/i/7W2eeU=; h=Date:From:To:Subject:In-Reply-To:References:From; b=Y4kxR5obSzffHVSG6A+UZk765YWRlBwRkSCaxoEa9lX0SmExvABlHaNN6KW/SgCPj tZcKjY6DLuMEEWqA8wakA0picR5q605hsTiHwGbpUB0OSU6IlDMqiXUlK1ON6yNpoF p6xInZo1AUffBO8r1aawm3nO+TsG+Yts6gw1J2pc= Received: from unknown by smtp-4-0000.mail.infomaniak.ch (Postfix) with ESMTPA id 4gmnKg3Q27z6BV; Fri, 26 Jun 2026 09:26:31 +0200 (CEST) Date: Fri, 26 Jun 2026 09:26:30 +0200 From: Leo Lundberg To: virtualization@freebsd.org, freebsd-virtualization@FreeBSD.org Subject: Re: Graceful shutdown of Bhyve VM? User-Agent: Thunderbird for Android In-Reply-To: References: <06b91174-b5d3-4203-9115-75b1e38a805d@ikmail.com> Message-ID: 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 List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Feedback-ID: :65bdcdb91cc308b:ham:156fd7c29312541 X-Infomaniak-Routing: alpha X-Spamd-Result: default: False [-0.99 / 15.00]; FORGED_MUA_THUNDERBIRD_MSGID_UNKNOWN(2.50)[]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.998]; DMARC_POLICY_ALLOW(-0.50)[ikmail.com,reject]; RWL_MAILSPIKE_EXCELLENT(-0.40)[84.16.66.169:from]; R_DKIM_ALLOW(-0.20)[ikmail.com:s=20210927]; R_SPF_ALLOW(-0.20)[+ip4:84.16.66.168/29]; MIME_GOOD(-0.10)[text/plain]; RCVD_IN_DNSWL_LOW(-0.10)[84.16.66.169:from]; XM_UA_NO_VERSION(0.01)[]; DKIM_TRACE(0.00)[ikmail.com:+]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; FROM_HAS_DN(0.00)[]; MLMMJ_DEST(0.00)[virtualization@freebsd.org]; RCVD_COUNT_TWO(0.00)[2]; ASN(0.00)[asn:29222, ipnet:84.16.64.0/19, country:CH]; MID_RHS_MATCH_FROM(0.00)[]; TO_DN_NONE(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+] X-Spamd-Bar: / X-Rspamd-Queue-Id: 4gmnKk14skz3gJK Thank you! I managed to miss that part in the handbook unfortunately :( On 25 June 2026 12:13:53 CEST, "Rainer Fr=C3=A4drich" w= rote: > >Hello, > >I use the way described in the FreeBSD Handbook, works perfectly for me: > >Bye, Rainer > >=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94 >Quote: >Destroying a virtual machine this way means killing it immediately=2E Any= unsaved data will be lost, >open files and filesystems may get corrupted=2E > > >To gracefully shut down a virtual machine, send a >TERM signal to its bhyve process instead=2E This triggers an ACPI shutdow= n event for the guest: > ># ps ax | grep bhyve >17424 - SC 56:48=2E27 bhyve: guestvm (bhyve) ># kill 17424 > >=E2=80=94=E2=80=94=E2=80=94=E2=80=94 > > >On 25 Jun 2026, at 12:05, Leo wrote: > >> Hello, I'm using bhyve without any front-ends like the vm-bhyve package= and whatnot, I was wondering how to properly perform a graceful shutdown o= f a VM without explicitly calling shutdown within it=2E I know qemu can sen= d an ACPI shutdown signal to it, and apparently vm-bhyve can do something s= imilar but it isn't clear through what mechanism it does this=2E >> >> / Leo > From nobody Fri Jun 26 07:26:30 2026 X-Original-To: freebsd-virtualization@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4gmnKn0WGfz6j164 for ; Fri, 26 Jun 2026 07:26:37 +0000 (UTC) (envelope-from leo.lundberg99@ikmail.com) Received: from smtp-bc0b.mail.infomaniak.ch (smtp-bc0b.mail.infomaniak.ch [45.157.188.11]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "relay.mail.infomaniak.ch", Issuer "YR1" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4gmnKk1FMBz3g5w for ; Fri, 26 Jun 2026 07:26:34 +0000 (UTC) (envelope-from leo.lundberg99@ikmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=ikmail.com header.s=20210927 header.b=Y4kxR5ob; dmarc=pass (policy=reject) header.from=ikmail.com; spf=pass (mx1.freebsd.org: domain of leo.lundberg99@ikmail.com designates 45.157.188.11 as permitted sender) smtp.mailfrom=leo.lundberg99@ikmail.com Received: from smtp-4-0000.mail.infomaniak.ch (smtp-4-0000.mail.infomaniak.ch [10.7.10.107]) by smtp-4-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4gmnKh0jqWz2dR; Fri, 26 Jun 2026 09:26:32 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ikmail.com; s=20210927; t=1782458791; bh=N0P3h89nvG/tU1wXgi4hr5N8L5sA34omZE/i/7W2eeU=; h=Date:From:To:Subject:In-Reply-To:References:From; b=Y4kxR5obSzffHVSG6A+UZk765YWRlBwRkSCaxoEa9lX0SmExvABlHaNN6KW/SgCPj tZcKjY6DLuMEEWqA8wakA0picR5q605hsTiHwGbpUB0OSU6IlDMqiXUlK1ON6yNpoF p6xInZo1AUffBO8r1aawm3nO+TsG+Yts6gw1J2pc= Received: from unknown by smtp-4-0000.mail.infomaniak.ch (Postfix) with ESMTPA id 4gmnKg3Q27z6BV; Fri, 26 Jun 2026 09:26:31 +0200 (CEST) Date: Fri, 26 Jun 2026 09:26:30 +0200 From: Leo Lundberg To: virtualization@freebsd.org, freebsd-virtualization@FreeBSD.org Subject: Re: Graceful shutdown of Bhyve VM? User-Agent: Thunderbird for Android In-Reply-To: References: <06b91174-b5d3-4203-9115-75b1e38a805d@ikmail.com> Message-ID: 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 List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Feedback-ID: :65bdcdb91cc308b:ham:156fd7c29312541 X-Infomaniak-Routing: alpha X-Spamd-Result: default: False [-0.99 / 15.00]; FORGED_MUA_THUNDERBIRD_MSGID_UNKNOWN(2.50)[]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.998]; DMARC_POLICY_ALLOW(-0.50)[ikmail.com,reject]; RWL_MAILSPIKE_EXCELLENT(-0.40)[45.157.188.11:from]; R_DKIM_ALLOW(-0.20)[ikmail.com:s=20210927]; R_SPF_ALLOW(-0.20)[+ip4:45.157.188.8/29]; MIME_GOOD(-0.10)[text/plain]; RCVD_IN_DNSWL_LOW(-0.10)[45.157.188.11:from]; XM_UA_NO_VERSION(0.01)[]; DKIM_TRACE(0.00)[ikmail.com:+]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; FROM_HAS_DN(0.00)[]; MLMMJ_DEST(0.00)[freebsd-virtualization@FreeBSD.org]; RCVD_COUNT_TWO(0.00)[2]; ASN(0.00)[asn:29222, ipnet:45.157.188.0/22, country:CH]; MID_RHS_MATCH_FROM(0.00)[]; TO_DN_NONE(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+] X-Spamd-Bar: / X-Rspamd-Queue-Id: 4gmnKk1FMBz3g5w Thank you! I managed to miss that part in the handbook unfortunately :( On 25 June 2026 12:13:53 CEST, "Rainer Fr=C3=A4drich" w= rote: > >Hello, > >I use the way described in the FreeBSD Handbook, works perfectly for me: > >Bye, Rainer > >=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94 >Quote: >Destroying a virtual machine this way means killing it immediately=2E Any= unsaved data will be lost, >open files and filesystems may get corrupted=2E > > >To gracefully shut down a virtual machine, send a >TERM signal to its bhyve process instead=2E This triggers an ACPI shutdow= n event for the guest: > ># ps ax | grep bhyve >17424 - SC 56:48=2E27 bhyve: guestvm (bhyve) ># kill 17424 > >=E2=80=94=E2=80=94=E2=80=94=E2=80=94 > > >On 25 Jun 2026, at 12:05, Leo wrote: > >> Hello, I'm using bhyve without any front-ends like the vm-bhyve package= and whatnot, I was wondering how to properly perform a graceful shutdown o= f a VM without explicitly calling shutdown within it=2E I know qemu can sen= d an ACPI shutdown signal to it, and apparently vm-bhyve can do something s= imilar but it isn't clear through what mechanism it does this=2E >> >> / Leo > From nobody Sun Jun 28 21:00:07 2026 X-Original-To: virtualization@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4gpMHX6Hjyz6jwnr for ; Sun, 28 Jun 2026 21:00:08 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "YR1" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4gpMHW5qkGz42tZ for ; Sun, 28 Jun 2026 21:00:07 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1782680407; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=qEL0t9OVL//4LgzEnwlwYpRxqcsi//km4h3Fgv41ZNs=; b=uJXYq05+tYzIshVKzxUbS8K9E+OxfDrXuuqhtb3HKe7Dq5sh+jq+7wmx9W69y/BU24KO8b FtBuyfW1C1DZgz8kcuPRTC2IWu4tXXjOLmpmV6+jbZ0/cYYD1fD7qCajJIk4/WRQwIhsov 0RqlpiJxPHoR7Y5lLr6PBJoOHlZPjMdNvVjckJkZNoeldU9iT3fVfjlA6B+55RyqbMvfBe OxaNHugUgqmdgpyHMKlA2zpR7BK/qjr4uEK1kPCm2ApchF2qpp1gwHskBZksUjF1M6H1hJ D+1HNWpT7/SrU9vayfwDE57F3WfUYm/IB60Sa25AhUl2eoMIjYMHX2/n3n72dQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1782680407; a=rsa-sha256; cv=none; b=m1PTT/vQdIJzDsXZBqD7knkyLscqsGsDaydhnPkkq2q3qs2osmQRPjbh9/IXEXFbzM3gQx 6J1Cy+HasOPskfxJ3L2bWy5quIfhVVCGdSgo6pR8GueecGJ7f7LXxVG+ZAle+6r6GO4Ki1 4qGsQVEfRCLr6wtTMXn5SDkv8y+LVOV4xF04mG9yQOsgI4BgwwmMZKe1dUalS5h2kJHXVf /umCKdWA6vzV0ObRyFZ67gIzW1vmQSgINYXaZRbkrfCCQ93PwvQCCGXQjLGYq8EHNvRmqH RBYznxb/iMkYDKgm52mfkE7+v55NvqWVIYcNOUsHN93R0MSnB+JNJKDdU2Sxig== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1782680407; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=qEL0t9OVL//4LgzEnwlwYpRxqcsi//km4h3Fgv41ZNs=; b=h1AhUye8BvUz8wqhW31MiQ6kabMuyKpebbP7mXyr7jmLfQzix6XsFPQwlRXIXjHUPBWDVz lInwm5h58jbapQtHZ9Ud1gDke9ZkS1TqZK7IrxbHJ0fpR4dR4TIf4vFRt85orwAh+CnHuO ici+zD59eYTpmJL4Vo4YWRzQsfUAZhZlo5VqZWuvQizLcSwtqcmsqjI2ZXe+/FH2UeEv4F s1d43hgAqG/ua58V0Z//AGbpodlukX2bSiPfyK0/x9+Y2N+uQxhGJ1R3XsWKh02Aoc6AOf 1/HvYFtTD2wpuzuGn064/PbYFrfoM7UF/prC8JHTpYn9yGFzL6rsbfvONZxSZg== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4gpMHW31CZzBS7 for ; Sun, 28 Jun 2026 21:00:07 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 65SL07Qn012327 for ; Sun, 28 Jun 2026 21:00:07 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 65SL07GU012326 for virtualization@FreeBSD.org; Sun, 28 Jun 2026 21:00:07 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Message-Id: <202606282100.65SL07GU012326@kenobi.freebsd.org> X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@FreeBSD.org using -f From: bugzilla-noreply@FreeBSD.org To: virtualization@FreeBSD.org Subject: Problem reports for virtualization@FreeBSD.org that need special attention Date: Sun, 28 Jun 2026 21:00:07 +0000 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 List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="17826804073.A9cD1B.10199" Content-Transfer-Encoding: 7bit --17826804073.A9cD1B.10199 Date: Sun, 28 Jun 2026 21:00:07 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" To view an individual PR, use: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=(Bug Id). The following is a listing of current problems submitted by FreeBSD users, which need special attention. These represent problem reports covering all versions including experimental development code and obsolete releases. Status | Bug Id | Description ------------+-----------+--------------------------------------------------- In Progress | 290735 | bhyve resume hangs New | 289848 | Enable by default BHYVE_SNAPSHOT 2 problems total for which you should take action. --17826804073.A9cD1B.10199 Date: Sun, 28 Jun 2026 21:00:07 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8"
The following is a listing of current problems submitted by FreeBSD users,
which need special attention. These represent problem reports covering
all versions including experimental development code and obsolete releases.

Status      |    Bug Id | Description
------------+-----------+---------------------------------------------------
In Progress |    290735 | bhyve resume hangs
New         |    289848 | Enable by default BHYVE_SNAPSHOT

2 problems total for which you should take action.
--17826804073.A9cD1B.10199--