Skip to content

Instantly share code, notes, and snippets.

@shouichi
Created December 21, 2013 17:20
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 shouichi/8072277 to your computer and use it in GitHub Desktop.
Save shouichi/8072277 to your computer and use it in GitHub Desktop.
Vagrant.configure('2') do |config|
config.vm.box = 'ubuntu.13.10'
config.vm.box_url = 'http://opscode-vm-bento.s3.amazonaws.com/vagrant/virtualbox/opscode_ubuntu-13.10_chef-provisionerless.box'
[3000, 3080, 3333, 4000, 8000, 8080].each do |port|
config.vm.network :forwarded_port, guest: port, host: port
end
config.ssh.forward_agent = true
config.vm.provider :virtualbox do |vb|
vb.customize ['modifyvm', :id, '--memory', '1024']
vb.customize ['modifyvm', :id, '--cpus', '8']
vb.customize ['modifyvm', :id, '--natdnsproxy1', 'off']
vb.customize ['modifyvm', :id, '--natdnshostresolver1', 'off']
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment