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

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

    To increase the memory or CPU count when using Vagrant 2, add this to your Vagrantfile

    Vagrant.configure("2") do |config|
        # usual vagrant config here
    
        config.vm.provider "virtualbox" do |v|
            v.memory = 1024
            v.cpus = 2
        end
    end
    

提交回复
热议问题