Vagrant, how to specify the disk size?

后端 未结 3 1133
谎友^
谎友^ 2021-01-30 20:30

I want to make sure that my development environment has enough free space to install tools and other stuff. I can\'t find any configuration option about telling to Vagrant the m

3条回答
  •  佛祖请我去吃肉
    2021-01-30 21:25

    This should be done using the provider, i.e the virtualbox configuration settings example would be

    https://www.vagrantup.com/docs/virtualbox/configuration.html

    config.vm.provider "virtualbox" do |v| v.customize ["modifyvm", :id, "--cpuexecutioncap", "50"] end

    https://www.virtualbox.org/manual/ch08.html#vboxmanage-list

    but in modifyvm section i dont see anything relating to the disk resize !!maybe you can try and attach a secondary disk !!

    https://gist.github.com/leifg/4713995

提交回复
热议问题