I'm using vagrant backed by VirtualBox to create a development setup (using the bento/ubuntu-18.04 box). To truly test the application, it needs a lot of data in a postgreSQL database: more than there is space for in the box we're using.
Some googling suggests it's actually really hard to just give the box more space. Using the vagrant-disksize plugin only increases the size of the "hard disk": you then need to use several different tools (one of which seems to be interactive i.e. tough to script) to extend the file system and then the partition to make use of that additional size. For me, the last step also fails, presumably because I'm trying to extend a partition which an OS is currently running on. The backend VirtualBox seems to require you to shut down, export the VM image in a different format, then edit it and re-load it.
Am I crazy thinking that this should be a single config option which you can set before the machine gets set up?
I also tried setting the postgres data directory to use a directory synced with the host, but there were permission issues: you can't change file permissions in synced directories (they're locked to the SSH user).