Skip to content

Instantly share code, notes, and snippets.

@rduplain
Last active October 18, 2019 18:16
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 rduplain/fffbd4b7c804d3eb390ab51db6e9854e to your computer and use it in GitHub Desktop.
Save rduplain/fffbd4b7c804d3eb390ab51db6e9854e to your computer and use it in GitHub Desktop.
Simple FreeBSD vagrant.
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.guest = :freebsd
config.vm.box = "freebsd/FreeBSD-11.3-RELEASE"
config.vm.box_version = "2019.07.05"
config.vm.box_check_update = false
config.vm.synced_folder ".", "/vagrant", id: "vagrant-root", disabled: true
config.ssh.shell = "sh"
if Vagrant.has_plugin?("vagrant-vbguest")
config.vbguest.auto_update = false
end
config.vm.provider "virtualbox" do |vb|
vb.cpus = 2
vb.memory = "2048"
vb.name = "freebsd"
vb.customize ["modifyvm", :id, "--hwvirtex", "on"]
vb.customize ["modifyvm", :id, "--audio", "none"]
vb.customize ["modifyvm", :id, "--nictype1", "virtio"]
vb.customize ["modifyvm", :id, "--nictype2", "virtio"]
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment