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

前端 未结 5 1027
情深已故
情深已故 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:16

    Since Vagrant 1.1 customize option is getting VirtualBox-specific.

    The modern way to do it is:

    config.vm.provider :virtualbox do |vb|
      vb.customize ["modifyvm", :id, "--memory", "256"]
    end
    

提交回复
热议问题