Last active
July 22, 2016 14:20
-
-
Save filipelenfers/9005778 to your computer and use it in GitHub Desktop.
Vagrant VBox configuration multiple cpus
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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