Configure RAM for the VM

Author: Al-mamun Sarkar Date: 2020-04-13 11:12:37

Configure RAM for the VM. In this lesson I will show you how to configure RAM for Vagrant Virtual Machine.

 

Login in to the VM Box:

vagrant up

 

Show used RAM on ubuntu:

free -m

 

Get out form the box:

exit

 

Edit Vagrantfile:

vim Vagrantfile

 

Find out the following lines and uncomment those:

config.vm.provider "virtualbox" do |vb|
      vb.memory = "1024"
end

 

After uncomment:

config.vm.provider "virtualbox" do |vb|
  #   # Display the VirtualBox GUI when booting the machine
  #   vb.gui = true
  #
  #   # Customize the amount of memory on the VM:
      vb.memory = "1024"
end

Update vb.memory

 

Reload the machine:

vagrant reload