Skip to content

Instantly share code, notes, and snippets.

@jakubpawlowicz
Created January 6, 2015 12:25
Show Gist options
  • Save jakubpawlowicz/2a0d7eabab2822478767 to your computer and use it in GitHub Desktop.
Save jakubpawlowicz/2a0d7eabab2822478767 to your computer and use it in GitHub Desktop.
Vagrantfile template for a higher performant VM
Vagrant.configure('2') do |config|
config.ssh.forward_agent = true
config.vm.provider 'virtualbox' do |vb|
vb.customize ['modifyvm', :id, '--memory', '2048']
vb.customize ['modifyvm', :id, '--cpus', 4]
vb.customize ['modifyvm', :id, '--ioapic', 'on']
vb.customize ['modifyvm', :id, '--natdnsproxy1', 'off']
vb.customize ['modifyvm', :id, '--natdnshostresolver1', 'off']
end
config.vm.network :private_network, type: :dhcp
config.vm.synced_folder '.', '/home/vagrant/app', type: 'nfs'
end
# Useful resources:
# - https://stefanwrobel.com/how-to-make-vagrant-performance-not-suck
# - https://github.com/rubygems/rubygems/issues/513#issuecomment-14964071
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment