Skip to content

sample for Vagrantfile

doronshai edited this page Feb 16, 2017 · 1 revision
Vagrant.configure("2") do |config|
  config.vm.box = "ubuntu/trusty64"
  config.vm.hostname = "dev-station"
  config.vm.provision :shell, path: "bootstrap.sh"
  config.vm.network :private_network, ip: "172.33.444.555"
  # instead of 172.33.444.555 use your whatever ip you want just
  # do not forget to change it in the Virtualbox preferences as well
  # on the HOST run: sudo route -n add 10.0.3.0/24 172.33.444.555
  # instead of 10.0.3.0 use your eth0 ip
  config.vm.provider "virtualbox" do |v|
    v.memory = 2048
    v.cpus = 4
  end
  # Relevant only for Mac/Linux users - Use this line only if you want to share the git folder in your Mac
  # (for example a folder next to the Vagrantfile called "vagrant_share" with the Vagrant VM folder called /vagrant)
  config.vm.synced_folder './vagrant_share', '/vagrant', type: 'nfs_guest', mount_options: ['rw', 'vers=3', 'tcp', 'fsc' ,'actimeo=1']
 end