Skip to content

Instantly share code, notes, and snippets.

View tonygaetani's full-sized avatar
Working from home

Tony Gaetani tonygaetani

Working from home
View GitHub Profile
tonygaetani / Vagrantfile
Last active August 28, 2019 22:12 — forked from leifg/Vagrantfile
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]