Skip to content

Instantly share code, notes, and snippets.

@enixdark
Forked from leifg/Vagrantfile
Created August 6, 2017 07:58
Show Gist options
  • Select an option

  • Save enixdark/d3dee1216cd997c33b545f4e88a0ca8a to your computer and use it in GitHub Desktop.

Select an option

Save enixdark/d3dee1216cd997c33b545f4e88a0ca8a to your computer and use it in GitHub Desktop.
Add a second disk to system using vagrant
file_to_disk = './tmp/large_disk.vdi'
Vagrant::Config.run do |config|
config.vm.box = 'base'
config.vm.customize ['createhd', '--filename', file_to_disk, '--size', 500 * 1024]
config.vm.customize ['storageattach', :id, '--storagectl', 'SATA Controller', '--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