svn commit: r339977 - stable/12/share/examples/jails

Devin Teske dteske at FreeBSD.org
Wed Oct 31 23:07:49 UTC 2018


Author: dteske
Date: Wed Oct 31 23:07:47 2018
New Revision: 339977
URL: https://svnweb.freebsd.org/changeset/base/339977

Log:
  MFC r339843: Fix jail examples in jib, jng, README
  
  Submitted by:	Ryan Moeller <ryan at freqlabs.com>
  Reported by:	Ryan Moeller <ryan at freqlabs.com>
  Approved by:	re (gjb)
  Sponsored by:	Smule, Inc.
  Differential Revision:	https://reviews.freebsd.org/D17697

Modified:
  stable/12/share/examples/jails/README
  stable/12/share/examples/jails/jib
  stable/12/share/examples/jails/jng
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/share/examples/jails/README
==============================================================================
--- stable/12/share/examples/jails/README	Wed Oct 31 23:05:44 2018	(r339976)
+++ stable/12/share/examples/jails/README	Wed Oct 31 23:07:47 2018	(r339977)
@@ -8,6 +8,16 @@ The below 4 samples require a VIMAGE enabled kernel:
 	$ make KERNCONF=VIMAGE kernel
 	$ reboot
 
+FreeBSD 12 has VIMAGE enabled in GENERIC on amd64.
+In that case, for jng simply load the ng_ether module first
+(ng_bridge and ng_eiface will load on demand):
+
+	# (as root)
+	# Load the ng_ether module at boot:
+	$ sysrc kld_list+=ng_ether
+	# Load ng_ether at once without rebooting:
+	$ kldload ng_ether
+
 Sample 1: jail.conf(5)
 
 	$ cp jib jng /usr/sbin/

Modified: stable/12/share/examples/jails/jib
==============================================================================
--- stable/12/share/examples/jails/jib	Wed Oct 31 23:05:44 2018	(r339976)
+++ stable/12/share/examples/jails/jib	Wed Oct 31 23:07:47 2018	(r339977)
@@ -51,7 +51,7 @@
 # 	#     arguments given to `jib addm xxx' in exec.prestart value.
 # 	#
 # 	vnet;
-# 	vnet.interface = "e0b_xxx e1b_xxx ...";
+# 	vnet.interface = e0b_xxx, e1b_xxx, ...;
 # 
 # 	exec.clean;
 # 	exec.system_user = "root";

Modified: stable/12/share/examples/jails/jng
==============================================================================
--- stable/12/share/examples/jails/jng	Wed Oct 31 23:05:44 2018	(r339976)
+++ stable/12/share/examples/jails/jng	Wed Oct 31 23:07:47 2018	(r339977)
@@ -51,7 +51,7 @@
 # 	#     arguments given to `jng bridge xxx' in exec.prestart value.
 # 	#
 # 	vnet;
-# 	vnet.interface = "ng0_xxx ng1_xxx ...";
+# 	vnet.interface = ng0_xxx, ng1_xxx, ...;
 # 
 # 	exec.clean;
 # 	exec.system_user = "root";


More information about the svn-src-all mailing list