Table of Contents
Vagrant box with latest FreeBSD and ZFS.
- Run
su -
to get a root shell.
- Run DHCP client by running
dhclient vtnet0
to get an IPv4 address.
- We can now start an SSH daemon by running:
mkdir /tmp/etc
mount_unionfs /tmp/etc /etc
echo "PermitRootLogin yes" >> /etc/ssh/sshd_config
passwd root
service sshd onestart
- Login to the FreeBSD Shell by running:
ssh root@<ip_address>
cd /tmp
# download zfsinstall.sh from github
fetch --no-verify-peer https://raw.github.com/wolffaxn/bsdbox/master/bin/zfsinstall.sh
chmod 750 zfsinstall.sh
./zfsinstall.sh -d ada0 -p zroot -r 8GB -s 2GB
shutdown -h now
cd /tmp
# download vagrant-setup.sh from github
fetch --no-verify-peer https://raw.github.com/wolffaxn/bsdbox/master/bin/vagrant-setup.sh
chmod 750 vagrant-setup.sh
./vagrant-setup.sh
Create a new Virtual Machine with the following settings:
- System -> Motherboard -> Enable I/O APIC
- System -> Motherboard -> Hardware clock in UTC time
- System -> Processor -> 2 CPUs
- System -> Acceleration -> Enable VT-x/AMD-V
- System -> Acceleration -> Enable Nested Paging
- Storage -> Add SATA Controller
- Storage -> Attach a .vdi disk to SATA Port 0
- Audio -> Disable Audio
- Network -> Adapter 1 -> Attached to: NAT
- Network -> Adapter 1 -> Advanced -> Adapter Type -> Paravirtualized Network (virtio-net)
- Network -> Adapter 2 -> Attached to: host-only Adapter
- Network -> Adapter 2 -> Advanced -> Adapter Type -> Paravirtualized Network (virtio-net)
- Ports -> Disable Serial Port
- Ports -> Disable USB Controller
vagrant package --base <name-of-your-virtual-machine> --output freebsd-10.1-amd64.box
- Install dependencies
- Vagrant 1.7.2 or greater.
- VirtualBox 4.3.20 or greater.
- Clone this project.
git clone https://github.com/wolffaxn/bsdbox.git
cd bsdbox
- Install vagrant plugins
vagrant plugin install vagrant-cachier
vagrant plugin install vagrant-hostsupdater
vagrant plugin install vagrant-vbguest
- Startup and SSH
vagrant up
vagrant ssh
This project is licensed under the terms of the MIT license.