Vagrant, how to specify the disk size?

后端 未结 3 1125
谎友^
谎友^ 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:35

    I have used the vagrant plugin vagrant-disksize to resize the disk.

    It worked. It can also help to specify the initial disk size.

    Run the following at the command line:

    vagrant plugin install vagrant-disksize
    

    and use the following in your Vagrantfile:

    vagrant.configure('2') do |config|
        config.vm.box = 'ubuntu/xenial64'
        config.disksize.size = '50GB'
    end
    

提交回复
热议问题