Despite there are several Vagrant boxes available which run FreeBSD out of the box, it's good to know how to create such a box by yourself. An advantage might be, that the box comes with only those packages installed you really need. That's why I decided to create a minimal FreeBSD box with only as much packages installed to run Ansible. With Ansible installed it's quite easy to perfectly adapt the box afterwards.
-
VirtualBox installed, download page
-
Vagrant installed, download page
-
Create an virtual machine with NAT enabled for the first network adapter and add set the adapter type to
virtio-net
. Make sure the size of the configured hard disk is at least 8GB (choose a disk size that will suite your needs ~120GB). -
Add the downloaded mfsBSD ISO (any edition) as bootable CD device.
-
Boot.
-
Login with
root
andmfsroot
. -
Install FreeBSD.
zfsinstall -d /dev/ada0
-
Stop the VM.
-
Remove attached ISO
-
Boot the VM, login with
root
and execute the following commands.dhclient vtnet0 fetch -o - --no-verify-peer \ https://raw.githubusercontent.com/JoergFiedler/freebsd-vagrant-base-box/master/update.sh \ | sh | tee out.log Note: You may use this short link instead: `http://bit.ly/1lEHtrx`.
-
Halt the VM.
-
To create the box file just run the following command line.
vagrant package --base my-virtual-machine
-
The file
package.box
can be referenced byvm.box_url
configuration parameter within yourVagrantfile
.
Download the final box file here: http://vastland.moumantai.de/FreeBSD/vagrant-box/FreeBSD-11.2-vagrant-dcf9bde9.box
SHA256 Checksum: dcf9bde97f9aaf72a8aa13b8056523c7e96a1891e51c97ead79816a29498e79b
Download the final box file here: http://vastland.moumantai.de/FreeBSD/vagrant-box/FreeBSD-11.1-vagrant-b67e92c.box
SHA256 Checksum: b67e92cff0de9ace385d16640be8ac7cc00d349e6ecd4aad3921b3ea0725e00f
Download the final box file here: http://vastland.moumantai.de/FreeBSD/vagrant-box/FreeBSD-11.0-vagrant-fe6134d.box
SHA256 Checksum: fe6134d5cd5c1d5bce705ded1333445236b135c20929c8dde9592e73d0ea001d
Download the final box file here: http://vastland.moumantai.de/FreeBSD/vagrant-box/FreeBSD-10.3-vagrant-697852c.box
SHA256 Checksum: 697852c81fb7c2121eaa73fd45cdef841105d8c100e2c5d7ccbe3339ee1e1cb2
Download the final box file here: http://vastland.moumantai.de/FreeBSD/vagrant-box/FreeBSD-10.2-vagrant-abe25b9.box
SHA256 Checksum: abe25b9b2b934053a624632323f7c62c1fe6dce0fd7453fb484cc2aba17f4056
Download the final box file here: http://vastland.moumantai.de/FreeBSD/vagrant-box/FreeBSD-10.1-vagrant-base.box
SHA256 Checksum: 67f6d3e60d26ae811b685f13ddd3683a0cc7280ac8a104203006573ea831e699
Download the final box file here: http://vastland.moumantai.de/FreeBSD/vagrant-box/FreeBSD-10-vagrant-base.box
SHA256 Checksum: 3418526d3a67313d3763ac75eb5b46c2d5d90837342e9d4fdef46dc387128735
- mfsBSD: https://www.freebsd.org/doc/en/articles/remote-install/preparation.html
- mfsBSD Image: http://mfsbsd.vx.sk/
- Vagrant HowTo - Creating a Base Box: https://docs.vagrantup.com/v2/virtualbox/boxes.html
- FreeBSD VB information: https://wiki.freebsd.org/VirtualBox
- http://unix.stackexchange.com/questions/39524/sharing-folder-from-windows-host-to-freebsd-guest/155373#155373
pkg info
bash The GNU Project's Bourne Again SHell
ca_root_nss Root certificate bundle from the Mozilla Project
gettext-runtime GNU gettext runtime libraries and programs
indexinfo Utility to regenerate the GNU info page index
iocage Full featured, no dependency Jail container manager
libffi Foreign Function Interface
pkg Package manager
python The "meta-port" for the default version of Python interpreter
python2 The "meta-port" for version 2 of the Python interpreter
python27 Interpreted object-oriented programming language
sudo Allow others to run commands as root