can we get some interaction between halt/reboot and bhyve?

John-Mark Gurney jmg at funkthat.com
Mon May 25 03:08:37 UTC 2015


Paul Vixie wrote this message on Sun, May 24, 2015 at 18:05 -0700:
> bhyve interprets SIGTERM as an ACPI poweroff, and usually the VM will
> shutdown very quickly. but it may not happen in five seconds, which is
> all halt(8) (and reboot(8)) promises. the code for reboot and halt
> (/usr/src/sbin/reboot/reboot.c) is shown below. what's the right way to
> change this so that if there are 50 bhyve processes running and they are
> ACPI powerdowning as fast as they can, then the halt or reboot of the
> bare metal will wait for them?

Shouldn't shutdown be used instead of reboot/halt?  This allows
various rc.d scripts to run, and you can use that to make sure all
your bhyve instances are shutdown...

-- 
  John-Mark Gurney				Voice: +1 415 225 5579

     "All that I will do, has been done, All that I have, has not."


More information about the freebsd-virtualization mailing list