> For the complete documentation index, see [llms.txt](https://til.devjugal.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://til.devjugal.com/vagrant/vagrant-specify-disk-size.md).

# 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](https://github.com/sprotheroe/vagrant-disksize).

## Install the plugin

```
vagrant plugin install vagrant-disksize
```

## Example: Set Disk Size to 50 GB

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

***Source:*** [***StackOverFlow***](https://stackoverflow.com/a/51064467)
