Browse Source

Use proper configuration directives to tune VM memory

Lorenzo Villani 10 years ago
parent
commit
78ac60dfea
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      Vagrantfile

+ 4
- 4
Vagrantfile View File

@@ -6,12 +6,12 @@ Vagrant.configure('2') do |config|
6 6
   # Source: https://vagrantcloud.com/box-cutter/debian75
7 7
   config.vm.box = 'box-cutter/debian75'
8 8
 
9
-  config.vm.provider :virtualbox do |vbox, override|
10
-    vbox.customize ["modifyvm", :id, "--memory", 512]
9
+  config.vm.provider :virtualbox do |v|
10
+    v.memory = 512
11 11
   end
12 12
 
13
-  config.vm.provider :vmware_fusion do |vbox, override|
14
-    vbox.customize ["modifyvm", :id, "--memory", 512]
13
+  config.vm.provider :vmware_fusion do |v|
14
+    v.vmx["memsize"] = "512"
15 15
   end
16 16
 
17 17
   config.vm.hostname = 'sovereign.local'

Loading…
Cancel
Save