Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Tony Gaetani tonygaetani

🏠
Working from home
View GitHub Profile
@tonygaetani
tonygaetani / Vagrantfile
Last active Aug 28, 2019 — forked from leifg/Vagrantfile
Add a second disk to system using vagrant
View Vagrantfile
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