Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Jun 2026 12:13:53 +0200
From:      =?utf-8?q?Rainer_Fr=C3=A4drich?= <mail@raifra.de>
To:        freebsd-virtualization@freebsd.org
Subject:   Re: Graceful shutdown of Bhyve VM?
Message-ID:  <DE343D95-BD67-4C03-A111-2D310F3E84AF@raifra.de>
In-Reply-To: <06b91174-b5d3-4203-9115-75b1e38a805d@ikmail.com>

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


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?DE343D95-BD67-4C03-A111-2D310F3E84AF>