Skip to content

Instantly share code, notes, and snippets.

@filipelenfers
Last active July 22, 2016 14:20
Show Gist options
  • Save filipelenfers/9005778 to your computer and use it in GitHub Desktop.
Save filipelenfers/9005778 to your computer and use it in GitHub Desktop.
Vagrant VBox configuration multiple cpus
config.vm.provider :virtualbox do |vb|
# # Don't boot with headless mode
# vb.gui = true
#
# # Use VBoxManage to customize the VM. For example to change memory:
vb.customize ["modifyvm", :id, "--memory", "1024"] #memory to 1GB
vb.customize ["modifyvm", :id, "--cpuexecutioncap", "50"] #limit the use of cpu to 50%
vb.customize ["modifyvm", :id, "--ioapic", "on"] #needed to use more cpus
vb.customize ["modifyvm", :id, "--cpus", "2"] #enable 2 cpus for the vm
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment