<commit_before>**Table of Contents**  *generated with [DocToc](http://doctoc.herokuapp.com/)*

# Freebsd on Vagrant

<img src="https://wunki.org/images/freebsd-icon.png" align="right" />

> Quidquid latine dictum sit, altum viditur.
> 
> _(Whatever is said in Latin sounds profound.)_

I love [FreeBSD] but it's a lot of work to get it running correctly on
[Vagrant]. That's a shame, because more people should experience the quality of
FreeBSD, the convenience of [jails] and a modern filesystem like [ZFS].

Well, now you can! With this Vagrant box you get a fully tuned, latest FreeBSD
with ZFS by copying a single file.

**Table of Contents**

- [Freebsd on Vagrant](#freebsd-on-vagrant)
	- [Quickstart](#quickstart)
	- [Jails](#jails)
	- [Create your own FreeBSD Box](#create-your-own-freebsd-box)
		- [Virtualbox Settings](#virtualbox-settings)
		- [Installation from msfBSD ISO](#installation-from-msfbsd-iso)
		- [Configuration](#configuration)
		- [Package for Vagrant](#package-for-vagrant)
	- [What's Next?](#whats-next)
	- [Credits](#credits)
	- [License](#license)
    
## Quickstart

Simply copy the [Vagrantfile] from this repository to the project you want to
run the VM from and you are done. The box will be downloaded for you.

## Jails

The box comes with a *cloned_interface* with IP address which can be used for
jails. The range 10.0.2.21 - 10.0.2.30 is already configured for you with a
proxy by pf to have internet connectivity in a jail. To start a new jail, all
you have to do is:

    ezjail-admin install
    ezjail-admin create example.com 'lo1|10.0.2.21'
    ezjail-admin start example.com

    # Jump inside the jail
    ezjail-admin console example.com

If you want your jails started at boot, make sure to add `ezjail_enable="YES"`
to `/etc/rc.conf`.

## Create your own FreeBSD Box

This is for people who want to have their own customized box, instead of the
box I made for you with the scripts in this repository.

The FreeBSD boxse are build from the excellent [mfsBSD] site. Download either
the 9.2 or 10.0 special edition ISO and create a new virtual machine.

### Virtualbox Settings

Create a new Virtual Machine with the following settings:
<commit_msg>Typos in README<commit_after>**Table of Contents**  *generated with [DocToc](http://doctoc.herokuapp.com/)*

# Freebsd on Vagrant

<img src="https://wunki.org/images/freebsd-icon.png" align="right" />

> Quidquid latine dictum sit, altum viditur.
> 
> _(Whatever is said in Latin sounds profound.)_

I love [FreeBSD] but it's a lot of work to get it running correctly on
[Vagrant]. That's a shame, because more people should experience the quality of
FreeBSD, the convenience of [jails] and a modern filesystem like [ZFS].

Well, now you can! With this Vagrant box you get a fully tuned, latest FreeBSD
with ZFS by copying a single file.

**Table of Contents**

- [Freebsd on Vagrant](#freebsd-on-vagrant)
	- [Quickstart](#quickstart)
	- [Jails](#jails)
	- [Create your own FreeBSD Box](#create-your-own-freebsd-box)
		- [Virtualbox Settings](#virtualbox-settings)
		- [Installation from msfBSD ISO](#installation-from-msfbsd-iso)
		- [Configuration](#configuration)
		- [Package for Vagrant](#package-for-vagrant)
	- [What's Next?](#whats-next)
	- [Credits](#credits)
	- [License](#license)
    
## Quickstart

Simply copy the [Vagrantfile] from this repository to the project you want to
run the VM from and you are done. The box will be downloaded for you.

## Jails

The box comes with a *cloned_interface* with IP address which can be used for
jails. The range 10.0.2.21 - 10.0.2.30 is already configured for you with a
proxy by pf to have internet connectivity in a jail. To start a new jail, all
you have to do is:

    ezjail-admin install
    ezjail-admin create example.com 'lo1|10.0.2.21'
    ezjail-admin start example.com

    # Jump inside the jail
    ezjail-admin console example.com

If you want your jails started at boot, make sure to add `ezjail_enable="YES"`
to `/etc/rc.conf`.

## Create your own FreeBSD Box

This is for people who want to have their own customized box, instead of the
box I made for you with the scripts in this repository.

The FreeBSD boxes are built from the excellent [mfsBSD] site. Download either
the 9.2 or 10.0 special edition ISO and create a new virtual machine.

### Virtualbox Settings

Create a new Virtual Machine with the following settings:

{'fraction_non_alphanumeric': 0.09512972234865726, 'fraction_numerical': 0.010923987255348202, 'mean_word_length': 3.9773499433748585, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 6, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '272882', 'n_tokens_mistral': 1488, 'n_tokens_neox': 1367, 'n_words': 576}