Skip to content

Instantly share code, notes, and snippets.

@christianchristensen
Created June 7, 2014 20:12
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save christianchristensen/8fa1d560be4ac50cfe38 to your computer and use it in GitHub Desktop.

FreeBSD Handbook

Misc


Packer and Vagrant dev environment

Based off opscode/bento:

(built from FreeBSD-10.0-RELEASE-amd64-disc1.iso)

git clone git@github.com:opscode/bento.git
cd bento/packer
packer build -only=virtualbox-iso freebsd-10.0-amd64.json
# --> Vagrant
vagrant box add fbsd10 .../bento/builds/virtualbox/opscode_freebsd-10.0_chef-provisionerless.box
# --> See Vagrantfile

Vagrantfile:

VAGRANTFILE_API_VERSION = "2"

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
  config.vm.box = "fbsd10"
  config.vm.synced_folder ".", "/vagrant", :nfs => true, id: "vagrant-root"
  config.vm.provider :virtualbox do |vb|
    vb.customize ["modifyvm", :id, "--nictype1", "virtio"]
    vb.customize ["modifyvm", :id, "--nictype2", "virtio"]
  end
  config.vm.network :private_network, ip: "192.168.33.10"
end

Vagrant/Virtualbox errata

Use of :nfs => true is currently required b/c FreeBSD: Userland TODO tasks: "Guest Additions: Implement vboxsf (shared folders)"

Refs:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment