Loading...
 

FreeBSD VirtualBox


Freebsd on Vagrant

FreeBSD 11
vagrant init freebsd/FreeBSD-11.0-RELEASE-p1
Basic FreeBSD 11 VagrantFile
# -*- mode: ruby -*-
# vi: set ft=ruby :

Vagrant.configure(2) do |config|
  config.vm.guest = :freebsd
  config.vm.box = "freebsd/FreeBSD-11.0-RELEASE-p1"

  config.ssh.shell = "sh"
  config.ssh.forward_agent = true
  config.vm.base_mac = "080027D14C66"
  config.vm.network "private_network", ip: "10.0.1.10"

  # Use NFS as a shared folder
  config.vm.synced_folder ".", "/vagrant", :nfs => true, id: "vagrant-root"

  config.vm.provider "virtualbox" do |vb|
    vb.name = "FreeBSD-11"
    # vb.customize ["startvm", :id, "--type", "gui"]
    vb.customize ["modifyvm", :id, "--memory", "512"]
    vb.customize ["modifyvm", :id, "--cpus", "2"]
    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

  #config.vm.provision "shell", inline: <<-SHELL
  #  pkg install -y -g 'bash-4.*'
  # /usr/bin/svnlite export --force svn://svn.freebsd.org/base/releng/11.0 /usr/src
  #SHELL
end

Create a FreeBSD 11 Base Box


Last edited by MichaelAlber .
Page last modified on Thursday November 15, 2018 19:53:48 UTC.