On Tue, Aug 19, 2014 at 8:40 AM, Roman Bogorodskiy <no...@freebsd.org> wrote:
> Hi Craig,
>
> Unfortunately, I'm not sure how to get the reboot working. Moreover, I
> get the same behaviour when starting bhyve manually -- when I do a
> reboot, bhyve(8) exits as soon as the system is ready to restart.
>
> So looks like that's a default bhyve behaviour or I'm missing something?

Well, if you look at /usr/share/examples/bhyve/vmrun.sh, you
will see that byvectl --destroy --vm=xx ; bhyveload; bhyve
is run in a loop.  That loop only terminates of bhyve returns non-zero.

I don't think that this is a very good API, but that's what we have for now.

If there was some way to detect of the bhyve process exited due to
ACPI shutdown or normal reboot, that would be helpful.  That would
help people writing scripts around bhyve.
--
Craig
_______________________________________________
freebsd-virtualization@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
To unsubscribe, send any mail to 
"freebsd-virtualization-unsubscr...@freebsd.org"

Reply via email to