I'm new on vagrant and I'm trying to put my machine to 1/4 of system memory like this:
config.vm.define "UbuntuServer2" do |server2|
server2.vm.box = "ubuntu/trusty64"
server2.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--cpuexecutioncap", "50"]
vb.customize ["modifyvm", :id, "--memory", 'echo -n $($(awk '/MemTotal/' {print $2} /proc/meminfo / 1024 / 4))']
end
end
But i'm getting this error: Path: Line number: 38 Message: NameError: uninitialized constant MemTotal
How I can init this variable? I'm using MacOs 10.11.5 Thanks in advance.