Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RC order fix #537

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

RC order fix #537

wants to merge 3 commits into from

Conversation

eborisch
Copy link
Contributor

@eborisch eborisch commented Dec 1, 2023

Split startup into two phases (bridges/vms)

The current rc.d/vm REQUIREs 'NETWORKING' but is also BEFORE pf/ipfw. This is not well formed (as NETWORKING relies on pf/ipfw), but is desired to generate bridges before pf/ipfw are generated. Likewise for iscsi attachments to work, vm auto-booting should be after NETWORKING.

Split into vm_net (early / bridge generation) and vm (late / vm start as well as shutdown) phases/rc.d files. This allows non-circular ordering of dependencies.

We don't currently have a clean way to stop and restart the 'init' phase, especially in light of potentially needing to reload firewalls rules.

This still uses the same vm_enable rcvar, so there is no change in "user interface"

The current rc.d/vm REQUIREs 'NETWORKING' but is also BEFORE pf/ipfw.
This is not well formed (as NETWORKING relies on pf/ipfw), but is
desired to generate bridges before pf/ipfw are generated. Likewise
for iscsi attachments to work, vm needs to be after NETWORKING.

Split into vm_net (early / bridge generation) and vm (late / vm start
as well as shutdown) phases/rc.d files. This allows non-circular
ordering of dependencies.

We don't currently have a clean way to stop and restart the 'init'
phase, especially in light of potentially needing to reload firewalls
rules.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant