How do I increase the RAM and set up host-only networking in Vagrant?

前端 未结 5 1039
情深已故
情深已故 2020-12-22 20:16

I would like to increase the RAM to at least 1 GB and I would like to configure “Host-Only” networking to use \"199.188.44.20\".

This is my Vagrantfile:

5条回答
  •  太阳男子
    2020-12-22 21:14

    I could not get any of these answers to work. Here's what I ended up putting at the very top of my Vagrantfile, before the Vagrant::Config.run do block:

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

    I noticed that the shortcut accessor style, "vb.memory = 1024", didn't seem to work.

提交回复
热议问题