Skip to content

Instantly share code, notes, and snippets.

@zentrope
Created October 23, 2015 03:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zentrope/c7c6e254b67d0fac6c07 to your computer and use it in GitHub Desktop.
Save zentrope/c7c6e254b67d0fac6c07 to your computer and use it in GitHub Desktop.
Vagrant file for FreeBSD on OS X
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure(2) do |config|
config.vm.guest = :freebsd
config.vm.box = "freebsd/FreeBSD-10.2-RELEASE"
config.ssh.shell = "sh"
config.vm.network "private_network", ip: "10.4.4.4", adapter: 2
config.vm.provider "virtualbox" do |vb|
vb.gui = false
vb.memory = "512"
vb.cpus = 1
vb.customize ["modifyvm", :id, "--ioapic", "on"]
vb.customize ["modifyvm", :id, "--hwvirtex", "on"]
vb.customize ["modifyvm", :id, "--usb", "off"]
vb.customize ["modifyvm", :id, "--usbehci", "off"]
vb.customize ["modifyvm", :id, "--audio", "none"]
vb.customize ["modifyvm", :id, "--nictype1", "virtio"]
vb.customize ["modifyvm", :id, "--nictype2", "virtio"]
end
config.vm.synced_folder ".", "/vagrant", nfs: true, id: "vagrant-root"
end
@zentrope
Copy link
Author

When it asks you for an Admin password, it's your OS X password.

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