Skip to content

Instantly share code, notes, and snippets.

@smahi
Forked from machixian/additional_disk_to_vagrant.rb
Last active August 29, 2015 13:56
Show Gist options
  • Save smahi/9135003 to your computer and use it in GitHub Desktop.
Save smahi/9135003 to your computer and use it in GitHub Desktop.
Vagrant.configure("2") do |config|
config.vm.box = "base"
# strat with Vagrant configuration v2 need specify VM provider
config.vm.provider :virtualbox do |vb|
file_to_disk = '/tmp/large_disk.vdi'
# disk size 50GB
vb.customize ['createhd', '--filename', file_to_disk, '--size', 50 * 1024]
vb.customize ['storageattach', :id, '--storagectl', 'SATA', '--port', 1, '--device', 0, '--type', 'hdd', '--medium', file_to_disk]
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment