iocage - jonatello/lab-musing GitHub Wiki

https://github.com/iocage/iocage

Install the iocage Python package via pkg

pkg install py36-iocage

Identify a zpool to use

zpool list

Fetch release, use "7" for 11.2-RELEASE

iocage fetch

Create a jail called "test" with IP 10.1.1.10/24 using vnet0 and gateway 10.10.10.1 (replace appropriately) using an 11.2-RELEASE image, also set to autostart

iocage create -n test ip4_addr="vnet0|10.1.1.10/24" -r 11.2-RELEASE defaultrouter="10.10.10.1" vnet="on" boot="on"

Start the jail called "test"

iocage start test

Login to the jail called "test"

iocage console test