A vagrant script install and configure iocage.
vagrant - installed on a host machine
> git clone https://github.com/No9/vagrant-iocage.git
> cd vagrant-iocage
> vagrant up
> vagrant ssh
> iocage create tag=myjail ip4_addr="em0|10.0.2.16/24" -r 11.0-RELEASE
> ping 10.0.2.16
> iocage console myjail
See the iocage documentation for more info http://iocage.readthedocs.io/en/latest/index.html
- VM options You can dedicate more CPUs and RAM by turning on the options at the top of Vagrantfile.
config.vm.provider "virtualbox" do | v |
v.memory = 8096
v.cpus = 2
end
The FreeBSD image uses UFS but ZFS is required for iocage We create a seperate disc for the zfs but mounting a disk is different for different versions of VBox
See hashicorp/vagrant#8105 (comment)
You may have to replace IDE Controller
in Vagrantfile with the out put of showvminfo
> VBoxManage list vms
"c7_host01_1481400784099_26895" {97bec202-de3a-4b06-b790-4aa742671dd0}
> VBoxManage showvminfo 97bec202-de3a-4b06-b790-4aa742671dd0 | grep 'Storage Controller Name'
Storage Controller Name (0): IDE Controller