diff options
author | dteske <dteske@FreeBSD.org> | 2016-02-11 18:37:02 +0000 |
---|---|---|
committer | dteske <dteske@FreeBSD.org> | 2016-02-11 18:37:02 +0000 |
commit | 5183fdd185bc8709354de8b0b88b8925644c2a4b (patch) | |
tree | 42a8a92a4e66bd0f4382a9b9587917671a5f9d6c /share/examples | |
parent | fce8da0a306718dc78f2b5b2c4d599296fe90a3e (diff) | |
download | FreeBSD-src-5183fdd185bc8709354de8b0b88b8925644c2a4b.zip FreeBSD-src-5183fdd185bc8709354de8b0b88b8925644c2a4b.tar.gz |
Add example VIMAGE config required by vnet jails
Diffstat (limited to 'share/examples')
-rw-r--r-- | share/examples/jails/README | 8 | ||||
-rw-r--r-- | share/examples/jails/VIMAGE | 59 |
2 files changed, 67 insertions, 0 deletions
diff --git a/share/examples/jails/README b/share/examples/jails/README index ccff12c..36268a9 100644 --- a/share/examples/jails/README +++ b/share/examples/jails/README @@ -1,5 +1,13 @@ # $FreeBSD$ +The below 4 samples require a VIMAGE enabled kernel: + + # (as root) + $ cp VIMAGE /usr/src/sys/amd64/conf/ + $ cd /usr/src + $ make KERNCONF=VIMAGE kernel + $ reboot + Sample 1: jail.conf(5) $ cp jib jng /usr/sbin/ diff --git a/share/examples/jails/VIMAGE b/share/examples/jails/VIMAGE new file mode 100644 index 0000000..82edaa2 --- /dev/null +++ b/share/examples/jails/VIMAGE @@ -0,0 +1,59 @@ +# $FreeBSD$ + +################################################################################ +######################### VIMAGE KERNEL CONFIGURATION ########################## +################################################################################ + +#################### Inheritance + +# +# Inherit from, and override `GENERIC' +# +include GENERIC # Base configuration file +ident VIMAGE # Kernel name + +################################################################################ +##################### ENABLE NON-INHERITED OPTIONS/DEVICES ##################### +################################################################################ + +#################### Non-GENERIC options + +# +# Network Virtualization for Jails +# +options VIMAGE # vnet paravirtualization + +# +# Netgraph based bridging for vnet jails +# NB: Not strictly necessary; will load automatically via KLD when needed +# +options NETGRAPH # netgraph(4) system +options NETGRAPH_BRIDGE # ng_bridge(4) +options NETGRAPH_EIFACE # ng_eiface(4) +options NETGRAPH_ETHER # ng_ether(4) +options NETGRAPH_SOCKET # ng_socket(4) + +#################### Non-GENERIC devices + +# +# if_bridge based bridging for vnet jails +# NB: Not strictly necessary; will load automatically via KLD when needed +# +device epair # epair(4) +device if_bridge # if_bridge(4) + +################################################################################ +################ DISABLE UNNECESSARY INHERITED OPTIONS/DEVICES ################ +################################################################################ + +#################### Disable select inherited options + +# none + +#################### Disable select inherited devices + +# none + +################################################################################ +# END +################################################################################ |