This repository provides a Packer template for building FreeBSD image with ZFS root. The repository is based on brd/packer-freebsd but use mfsBSD to bootstrap the installation over SSH instead of using boot command with FreeBSD ISO.
The resulting image is currently published at pxfs/freebsd-11.1. You can init Vagrant environment with the image built from this repository with:
$ vagrant init pxfs/freebsd-11.1
Or configure manually,
Vagrant.configure("2") do |config|
config.vm.box = "pxfs/freebsd-11.1"
# Other configuration.
end
- Vagrant
- Packer
- VirtualBox (for VirtualBox image)
- VMware Provider (for VMware image)
- Build the Vagrant box with
packer build template.json
. - Add the Vagrant box with
vagrant box add --name freebsd-11.1 freebsd-11.1-vmware.box
.
The default Vagrantfile comes with NFS mount on /vagrant
and 1GB of RAM with 20GB of disk.