Skip to content

zx23/packer-freebsd

 
 

Repository files navigation

FreeBSD Packer template

Prerequisites:

  • Install Vagrant
  • Install Packer
  • Clone this repo onto your machine

To create a vagrant box for FreeBSD 10.1-RELEASE:

  • Build the Vagrant box with: packer build template-10.1.json
  • Wait.
  • Add the appropriate Vagrant box for your system. For example, on VMware: vagrant box add --name FreeBSD-10.1 FreeBSD-10.1-RELEASE-vmware.box

to build virtualbox image only:

packer build -only=virtualbox-iso template-10.1.json

To use any Vagrant box:

  • Initialize vagrant using: vagrant init --minimal <box name>
  • Start the Vagrant VM: vagrant up
  • Connect to the VM: vagrant ssh
  • Hack away

Notes:

  • The VM is set to have 1024MB of RAM and a 20GB drive
  • When bringing vagrant boxes up for the first time, you will need sudo privileges to add entries in /etc/exports to allow vagrant to mount /vagrant in the guest. See Vagrant NFS synced folders

About

A packer recipe for FreeBSD

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 85.6%
  • Ruby 14.4%