Commit 8019c980 authored by Deimos's avatar Deimos

Vagrant: increase default resources for VM

Without setting any defaults, it seems to give 1024MB of memory and 2
CPUs. That low of memory can (and does) result in the VM swapping itself
to death when doing some things. I'm going to set a reasonable amount in
the Vagrantfile, and update the docs to explain how to raise/lower it if
necessary (and recommend a minimum).
parent f096cd59
......@@ -24,4 +24,9 @@ Vagrant.configure(VAGRANT_CONFIG_VERSION) do |config|
salt.verbose = true
salt.log_level = "info"
end
config.vm.provider "virtualbox" do |vb|
vb.memory = "4096"
vb.cpus = "4"
end
end
  • For now if I have an existing box should I just manually increase the specs via Virtualbox directly? Because I did experience a strange issue today which was fixed by a VM reboot.

    Oh, but upon vagrant up it will overwrite those manual changes, correct? So I guess I will just add these lines to my local Vagrantfile.

    Edited by Adams T
  • You shouldn't need to manually add the lines, you can just pull down the new commits from GitLab with git pull origin master (assuming it doesn't cause a conflict with something else you've added).

    Then it'll get added to your Vagrantfile, and should apply next time the Vagrant box starts/restarts. You can restart a running one with vagrant reload.

  • Actually sorry, it would probably be upstream instead of origin if you're set up on your own fork like it describes in this section of the dev setup docs: https://docs.tildes.net/development-setup#fork-and-clone-the-repository

    The "Syncing a fork" link in there should explain how to sync up with the new changes from upstream.

  • Deimos @Deimorz

    mentioned in merge request !73

    ·

    mentioned in merge request !73

    Toggle commit list
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment