Configure RAM for the VM

Configure RAM for the VM

Instructor-svgAl-Mamun Sarkar
Apr 13 , 2020

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

 

  • Share On:
  • fb
  • twitter
  • pinterest
  • instagram