Skip to content

Instantly share code, notes, and snippets.

@roes888
Last active August 29, 2015 14:22
Show Gist options
  • Select an option

  • Save roes888/b1cfd8627bfe1d5761d1 to your computer and use it in GitHub Desktop.

Select an option

Save roes888/b1cfd8627bfe1d5761d1 to your computer and use it in GitHub Desktop.
My vagrant configuration
Vagrant.configure(2) do |config|
# set base box
config.vm.box = "ubuntu/trusty64"
# disable update
config.vm.box_check_update = false
# set port forwarder
config.vm.network "forwarded_port", guest: 22, host: 22
config.vm.network "forwarded_port", guest: 80, host: 80
config.vm.network "forwarded_port", guest: 3360, host: 3360
# set network
config.vm.hostname = "some.hostname"
config.vm.network "private_network", ip: "192.168.10.10"
# set shared folders
config.vm.synced_folder "/some/real/path", "/home/apps"
config.vm.provider "virtualbox" do |vb|
vb.name = 'ubuntu'
vb.customize ["modifyvm", :id, "--memory", "1024"]
vb.customize ["modifyvm", :id, "--cpus", "1"]
vb.customize ["modifyvm", :id, "--natdnsproxy1", "on"]
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
vb.customize ["modifyvm", :id, "--ostype", "Ubuntu_64"]
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment