Vagrant
Create box with custom disk size
By default Vagrant does not provide any feature to set custom disk size for a box. To do so vagrant-disksize plugin needs to be installed:
$ vagrant plugin install vagrant-disksize Installing the 'vagrant-disksize' plugin. This can take a few minutes... Installed the plugin 'vagrant-disksize (0.1.3)'!
Configure disk size in Vagrantfile:
Vagrant.configure("2") do |config| (...) config.disksize.size = '50GB' (...)
Run “vagrant up” do start vm:
$ vagrant up (...) ==> default: Resized disk: old 10240 MB, req 51200 MB, new 51200 MB ==> default: You may need to resize the filesystem from within the guest. (...)
Above instructions are valid for virtualbox provider only as mentioned plugin doesn’t support other providers. VIrtualBox version used was 5.2.32.
Refs.: (1) https://github.com/sprotheroe/vagrant-disksize













