Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Jun 2026 09:26:30 +0200
From:      Leo Lundberg <leo.lundberg99@ikmail.com>
To:        virtualization@freebsd.org, freebsd-virtualization@FreeBSD.org
Subject:   Re: Graceful shutdown of Bhyve VM?
Message-ID:  <D72BC7A4-F569-4053-A937-10043F364AAC@ikmail.com>
In-Reply-To: <DE343D95-BD67-4C03-A111-2D310F3E84AF@raifra.de>
References:  <06b91174-b5d3-4203-9115-75b1e38a805d@ikmail.com> <DE343D95-BD67-4C03-A111-2D310F3E84AF@raifra.de>

index | next in thread | previous in thread | raw e-mail

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
>


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?D72BC7A4-F569-4053-A937-10043F364AAC>