Skip to the content.

Vagrant Specify Disk Size

By default, the disk size of a virtual machine is set to 20 GB, we can override this by using a plugin called vagrant-disksize.

Install the plugin

vagrant plugin install vagrant-disksize

Example: Set Disk Size to 50 GB

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

Source: StackOverFlow