Increase RAM And CPU On Vagrant Machine
We can define RAM and CPU in Vagrantfile.
Step 1: Edit Vagrantfile
Open and edit Vagrantfile to configure RAM and CPU on Vagrant as below -
For VirtualBox VM
config.vm.provider "virtualbox" do |v|
v.memory = 2048
v.cpus = 2
endFor Libvirt VM
config.vm.provider "libvirt" do |v|
v.memory = 2048
v.cpus = 2
endStep 2: Start/Reload Vagrant Machine
Start the Vagrant Machine with -
$ vagrant startReload the Vagrant Machine -
$ vagrant reloadRAM and CPU should be configured, we can confirm with free -m and nproc command by running in Vagrant Machine.
Source: OSTechnix
Last updated