Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?

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