Skip to content

Instantly share code, notes, and snippets.

@simontesar
Last active December 23, 2021 05:31
Show Gist options
  • Select an option

  • Save simontesar/8178ea232c4ebbae3c88cfbd3e6b146d to your computer and use it in GitHub Desktop.

Select an option

Save simontesar/8178ea232c4ebbae3c88cfbd3e6b146d to your computer and use it in GitHub Desktop.
Adding an additional disk to a VirtualBox machine in Vagrant via the experimental disks feature
# Enable the experimental disks feature via environment variable, requires Vagrant >=2.2.8.
ENV["VAGRANT_EXPERIMENTAL"] = "disks"
Vagrant.configure(2) do |config|
config.vm.disk :disk, name: "storage", size: "4GB"
end
@hholzgra
Copy link

hholzgra commented Mar 1, 2021

Well, I'd says that's not how documentation should work, it should always tell what exact versions a feature is actually available in ... but maybe I'm spoiled by all the hours I spent on automating that for all the function reference pages the PHP manual back in the days ;)

@simontesar
Copy link
Author

simontesar commented Mar 2, 2021

@hholzgra not sure what you're getting at. It's in the changelog and I'm pretty sure it's not included in the documentation before 2.2.8. I'll include it in this gist for other people finding this although it is just an unofficial example/note by myself.

@hholzgra
Copy link

hholzgra commented Mar 2, 2021

I'm referring to https://www.vagrantup.com/docs/disks/usage ... no "Available starting with Vx.y.z" info there at all. Not complaining about your example, but about the way Vagrant online documentation is organized ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment