Re: Graceful shutdown of Bhyve VM?

From: Leo Lundberg <leo.lundberg99_at_ikmail.com>
Date: Fri, 26 Jun 2026 07:26:30 UTC
Thank you! I managed to miss that part in the handbook unfortunately :(

On 25 June 2026 12:13:53 CEST, "Rainer Frädrich" <mail@raifra.de> wrote:
>
>Hello,
>
>I use the way described in the FreeBSD Handbook, works perfectly for me:
>
>Bye, Rainer
>
>—————
>Quote:
>Destroying a virtual machine this way means killing it immediately. Any unsaved 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
>
>————
>
>
>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 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
>