Skip to content

Instantly share code, notes, and snippets.

@tonygaetani tonygaetani/Vagrantfile forked from leifg/Vagrantfile
Last active Aug 28, 2019

What would you like to do?
Add a second disk to system using vagrant
config.vm.provider "virtualbox" do |v|
file_to_disk = './tmp/large_disk.vdi'
unless File.exist?(file_to_disk)
v.customize ['createhd', '--filename', file_to_disk, '--size', 500] # size is in MB
v.customize ['storageattach', :id, '--storagectl', 'SATAController', '--port', 1, '--device', 0, '--type', 'hdd', '--medium', file_to_disk]

This comment has been minimized.

Copy link
Owner Author

tonygaetani commented Jan 22, 2016

don't forget to vagrant reload after!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.