From 8a9851a045664960048370d281d5cfdd25395f97 Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=A9bastien=20Han?= Date: Fri, 14 Mar 2014 10:47:06 +0100 Subject: [PATCH] Reduce VM memory consumption MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit We now have 7 virtual machines in the Vagrant sandbox. This takes a lot of memory. This might be a problem for some laptop and whon't help testings. Signed-off-by: Sébastien Han --- Vagrantfile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Vagrantfile b/Vagrantfile index bd2989227..0331e9337 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -11,12 +11,18 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| config.vm.define :rgw do |rgw| rgw.vm.network :private_network, ip: "192.168.0.2" rgw.vm.host_name = "ceph-rgw" + rgw.vm.provider :virtualbox do |vb| + vb.customize ["modifyvm", :id, "--memory", "192"] + end end (0..2).each do |i| config.vm.define "mon#{i}" do |mon| mon.vm.hostname = "ceph-mon#{i}" mon.vm.network :private_network, ip: "192.168.0.1#{i}" + mon.vm.provider :virtualbox do |vb| + vb.customize ["modifyvm", :id, "--memory", "192"] + end end end @@ -29,6 +35,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| osd.vm.provider :virtualbox do |vb| vb.customize [ "createhd", "--filename", "disk-#{i}-#{d}", "--size", "1000" ] vb.customize [ "storageattach", :id, "--storagectl", "SATA Controller", "--port", 3+d, "--device", 0, "--type", "hdd", "--medium", "disk-#{i}-#{d}.vdi" ] + vb.customize ["modifyvm", :id, "--memory", "192"] end end end -- 2.47.3