-
-
Save tonygaetani/c8ce8279e77f0e44e437 to your computer and use it in GitHub Desktop.
Add a second disk to system using vagrant
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
don't forget to
vagrant reload
after!