Skip to content

Instantly share code, notes, and snippets.

@wizardishungry
Last active February 12, 2018 18:49
Show Gist options
  • Save wizardishungry/2660808 to your computer and use it in GitHub Desktop.
Save wizardishungry/2660808 to your computer and use it in GitHub Desktop.
Vagrant snippet to set VirtualBox guest CPU count to the number of host cores on Linux or OS X (broken 2018)
gem 'concurrent'
require 'concurrent'
config.vm.provider "virtualbox" do |vb|
v.cpus = Concurrent.physical_processor_count
end
@wizardishungry
Copy link
Author

updated for 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment