Page MenuHomeFreeBSD

bhyve: Add an option to prevent automatic restart in monitor mode
Needs ReviewPublic

Authored by bnovkov on Sun, Aug 23, 1:04 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Sep 13, 3:08 AM
Unknown Object (File)
Fri, Sep 11, 9:00 PM
Unknown Object (File)
Thu, Sep 10, 10:34 PM
Unknown Object (File)
Thu, Sep 10, 8:48 PM
Unknown Object (File)
Tue, Sep 8, 9:02 PM
Unknown Object (File)
Tue, Sep 8, 7:45 PM
Unknown Object (File)
Tue, Sep 8, 11:56 AM
Unknown Object (File)
Mon, Sep 7, 1:29 AM

Details

Reviewers
andrew
Group Reviewers
bhyve
Summary

Monitor mode will currently unconditionally restart the guest if it
reboots, which can be incovenient in certain situations (e.g., resetting
the guest after a panic).

Address this by introducing a way to prevent automatic guest restarts
in monitor mode.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 75980
Build 72863: arc lint + arc unit

Event Timeline

Thank you!

usr.sbin/bhyve/amd64/bhyverun_machdep.c
207

This is a backward compat break, shouldn't we handle the old name with bhyve_cfg_warn()?

usr.sbin/bhyve/bhyve.8
349

You might clarify that this option has no effect unless -M is specified or monitor.enabled is configured.

I think the SIGNAL HANDLING section should also explain how signal handling interacts with monitor mode and the new no_reboot option.

usr.sbin/bhyve/bhyve_config.5
239

You changed this to monitor.enabled.