0

everyone!

I'm a web developer (PHP) and I working on a laptop (MacBook Air middle 2012, 4 GB RAM). For my projects, I must use Ubuntu 14.04. For its, I use VirtualBox with Vagrant.

I always run my tools: Google Chrome, PHPShtorm, Vagrant, VirtualBox, Slack. But I face a problem — insufficient RAM. Most of the RAM takes VirtualBox (2 GB). I can not change the limits, the slider does not work for RAM (it frozen).

Please tell me how can I resolve this issue? I have already was thinking, install Linux main system on my MacBook. But this is the extreme case.

1
  • 2
    You can only change the RAM if the virtual machine is not running.
    – To Do
    Commented Jul 28, 2016 at 11:55

1 Answer 1

0

You need to edit your Vagrantfile. There should already be an example line:

# vb.customize ["modifyvm", :id, "--memory", "1024"]

uncomment it and modify the value to your liking. If there isn't one, enter this block:

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

below the Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| line.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .