From a6b329fef4fa70c936013c2b448e50a7a4b272c9 Mon Sep 17 00:00:00 2001 From: Joseph Nuthalapati Date: Fri, 31 Jan 2020 05:09:17 +0530 Subject: [PATCH] vagrant: Allocate cpus equal to the no. of cores Signed-off-by: Joseph Nuthalapati Reviewed-by: James Valleroy --- Vagrantfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Vagrantfile b/Vagrantfile index ca4cb8acc..253725166 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -16,13 +16,16 @@ # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . # + +require 'etc' + Vagrant.configure(2) do |config| config.vm.box = "freedombox/plinth-dev" config.vm.network "forwarded_port", guest: 443, host: 4430 config.vm.network "forwarded_port", guest: 445, host: 4450 config.vm.synced_folder ".", "/vagrant", owner: "plinth", group: "plinth" config.vm.provider "virtualbox" do |vb| - vb.cpus = 2 + vb.cpus = Etc.nprocessors vb.memory = 2048 vb.linked_clone = true end