@@ -60,6 +60,9 @@ ${H3_COLOR}Options${N0_COLOR}:
60
60
${N2_COLOR}inter=${N0_COLOR} - 0 to prevent any questions and to accept answers by default.
61
61
${N2_COLOR}customskel=${N0_COLOR} - <path>: additional skel directory applyed above jail structrure.
62
62
${N2_COLOR}fstablocal=${N0_COLOR} - <path>: additional fstab file stored as fstab.local.
63
+ ${N2_COLOR}interface=${N0_COLOR} - <name>: specify jail interface. Use 'ppt-XX' prefix (+vnet=1) to
64
+ pass XX as vnet interface instead of 'epair', e.g.: 'ppt-em0'.
65
+ Warning! the PPT interface will disappear from the host system while the container is running.
63
66
${N2_COLOR}jprofile=${N0_COLOR} - <name>: specify jail profile for creating jail.
64
67
${N2_COLOR}jnameserver=${N0_COLOR} - <IP>: override default 'jnameserver' settings for jail.
65
68
${N2_COLOR}zfs_snapsrc=${N0_COLOR} - <name>: use ZFS snapshot as data source.
@@ -80,15 +83,16 @@ Additional args when RACCT enabled: ${RCTL} ${RCTL_EXTRA}
80
83
81
84
${H3_COLOR}Examples${N0_COLOR}:
82
85
83
- # cbsd jcreate jname=test runasap=1 zfs_encryption=1
86
+ # cbsd jcreate jname=test runasap=1 zfs_encryption=1 interface=ppt-em
84
87
# cbsd jcreate jname=test2 astart=0 pkglist=\"misc/mc net/fping\" ip4_addr=DHCP,DHCPv6 allow_sysvipc=1 allow_raw_sockets=1
85
88
# cbsd jcreate jname=vnet1 runasap=1 ip4_addr=\"10.0.1.5/24\" ci_gw4=\"10.0.1.1\" ci_user_pubkey=\"/root/.ssh/authorized_keys\"
86
89
# cbsd jcreate jname=deb jprofile=debian_bookworm allow_raw_sockets=1
87
90
# cbsd jcreate jname=ubu jprofile=ubuntu_jammy allow_raw_sockets=1
88
91
# cbsd jcreate jname=rock jprofile=rocky_9 allow_raw_sockets=1
89
92
# cbsd jcreate jname=dev jprofile=devuan_daedalus allow_raw_sockets=1
90
93
# cbsd jcreate jname=riscv pkg_bootstrap=0 arch=riscv emulator=\"qemu-riscv64-static\" exec_start=\"/bin/qemu-riscv64-static /bin/sh /etc/rc\" exec_stop=\"/bin/qemu-riscv64-static /bin/sh /etc/rc.shutdown\"
91
- # cbsd jcreate jname=xx ver=13.2 vnet=1 sysrc=\"ifconfig_eth0+='mtu 1450' inetd_enable=YES\"
94
+ # cbsd jcreate jname=nictest vnet=1 interface=ppt-em0
95
+ # cbsd jcreate jname=xx ver=14.2 vnet=1 sysrc=\"ifconfig_eth0+='mtu 1450' inetd_enable=YES\"
92
96
# cbsd jcreate jname=vmagent from=https://dl.convectix.com/img/amd64/amd64/14.2/vmagent/vmagent.img pkg_bootstrap=0 runasap=1
93
97
# cbsd jcreate jname=myapp from=fbbb4e8707f6794008cc6e8ed0d86082 runasap=1
94
98
# cbsd jcreate jname=small flavor=small1 runasap=1 jnameserver="8.8.8.8,8.8.4.4"
786
790
[ ! -r ${jailsysdir}/${jname}/local.sqlite ] && /usr/local/bin/cbsd ${miscdir}/updatesql ${jailsysdir}/${jname}/local.sqlite ${distdir}/share/local-jailnic.schema jailnic
787
791
# create default record
788
792
789
- tmp_type=${interface%%# *} # cut all after '#'
790
- tmp_iface=${interface##*# } # cut all before '#'
793
+ tmp_type=${interface%%- *} # cut all after '#'
794
+ tmp_iface=${interface##*- } # cut all before '#'
791
795
792
796
case "${tmp_type}" in
793
797
ppt|epair|ovs)
0 commit comments