Skip to content

Instantly share code, notes, and snippets.

@tonygaetani

tonygaetani/Vagrantfile

Forked from leifg/Vagrantfile
Last active Aug 28, 2019
Embed
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
end
v.customize ['storageattach', :id, '--storagectl', 'SATAController', '--port', 1, '--device', 0, '--type', 'hdd', '--medium', file_to_disk]
end
@tonygaetani

This comment has been minimized.

Copy link
Owner Author

@tonygaetani 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