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 07 February 2019
First published by Chris Anderton on 09 December 2013
© Chris Anderton 2019
"Modifying Vagrant box memory settings" by Chris Anderton at TheWebFellas is licensed under a Creative Commons Attribution 4.0 International License.