Commit Graph

13 Commits

Author SHA1 Message Date
Steven Stallion
0fdc5cdf5f Allow vnet-enabled jails 2024-11-09 11:57:07 -06:00
NorwegianRockCat
a5acc8cb25 Ensure bridges are created before firewalls start
Since the vm rc script can create bridges and since firewalls (like pf) may actually reference these bridges, make sure that the bridges are created before we start them. This makes the firewalls fail to start because an interface is missing.
2020-04-11 10:47:58 +02:00
Matt Churchyard
3deb348668 Various style changes 2018-07-02 13:53:35 +01:00
Matt Churchyard
6b4b97584e Tidy some functions up and limit switch names to 12 chars 2018-06-27 08:34:12 +00:00
Stefan Möding
e942d9f5e0 Add dmesg to boot dependency
FreeBSD 11 shows "grep: /var/run/dmesg.boot: No such file or directory"
error messages when booting. I tracked these down to the
util::check_bhyve_support function in lib/vm-util. The function uses the
contents of the /var/run/dmesg.boot file to check required CPU features.

But the /var/run/dmesg.boot file is only created when /etc/rc.d/dmesg
runs during system boot and that may happen after vm-bhyve tries to
start because there is no boot dependency specified.

This is a quick fix to add dmesg as boot dependency.

There is in fact a more profound problem: the file may not be created at
all if the admin chooses to set dmesg_enable="NO" in /etc/rc.conf
2016-10-18 21:38:49 +02:00
Matt Churchyard
7ef4f7e244 Fix #47 - we need to init before dnsmasq on boot
Bit more tidying up. Really considering setting version to 1.0-beta now
Choice between leaving graphics for 1.1, or waiting
2016-04-15 16:59:48 +01:00
Renato Botelho
3609a1fb62 Respect forcestart parameter
When rc.d script is called with forcestart parameter it should start
even if it's not defined in rc.conf. rc.subr sets rc_force=yes in this
case. Change rc.d script to pass along rc_force env var and respect it
when it's defined

Sponsored by: Rubicon Communications (Netgate)
2016-01-26 15:07:44 -02:00
olgeni
9866037137 Initialize vm_enable to avoid warning message at startup. 2016-01-10 17:10:04 +01:00
Matt Churchyard
af2a664d02 Standardise on spaces instead of tabs
Case statements were unncessarily spacious
2015-11-14 14:04:19 +00:00
Matt Churchyard
24b6b35c25 Work on grub-bhyve issues - #12
Tested FreeBSD, Windows, Ubuntu, CentOS, OpenBSD & NetBSD on boot now
Also modify rc.d/vm to pass rclint tests
2015-10-20 14:15:07 +01:00
Charlie Root
183a87dc4f Move to BSD dev environment 2015-06-30 10:21:30 +01:00
churchers
3e93f7d1c7 Big tidy up
Simplify main script and move functions into independent libraries.
Add a Makefile to install everything to the correct places.
Add an initial man page.
2015-06-29 11:14:42 +01:00
churchers
b2a245047e Initial code import 2015-06-24 09:37:22 +01:00