We build Web & Mobile Applications.

< All Articles

Modifying Vagrant box memory settings

To increase the default Vagrant box memory with the VirtualBox provider there are VirtualBox specific configuration options. We are currently using the following:

config.vm.provider "virtualbox" do |vb|
  vb.customize ["modifyvm", :id, "--memory", "1024"]

The latest documentation also lists the following shortcut for VirtualBox memory configuration:

config.vm.provider "virtualbox" do |v|
  v.memory = 1024

If you are using the VMWare Provider the configuration is different.

config.vm.provider "vmware_fusion" do |v|
  v.vmx["memsize"] = "1024"

If using VMWare Workstation you would replace vmware_fusion with vmware_workstation.

Updated on 16 July 2015
First published by Chris Anderton on 09 December 2013
© TheWebFellas Limited 2016
"Modifying Vagrant box memory settings" by Chris Anderton at TheWebFellas is licensed under a Creative Commons Attribution 4.0 International License.