Skip to content

Instantly share code, notes, and snippets.

@tonygaetani
Forked from leifg/Vagrantfile
Last active August 28, 2019 22:12
Show Gist options
  • Save tonygaetani/c8ce8279e77f0e44e437 to your computer and use it in GitHub Desktop.
Save tonygaetani/c8ce8279e77f0e44e437 to your computer and use it in GitHub Desktop.
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
Copy link
Author

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