Skip to content

Instantly share code, notes, and snippets.

@bradfordpythian
Created February 22, 2017 16:16
Show Gist options
  • Save bradfordpythian/5007e6d9f1d597b709bbf959e16f9b49 to your computer and use it in GitHub Desktop.
Save bradfordpythian/5007e6d9f1d597b709bbf959e16f9b49 to your computer and use it in GitHub Desktop.
VagrantFile for CentOS 6 with a second disk of 500MB
Vagrant.configure(2) do |config|
config.vm.box = "centos/6"
file_to_disk = './disk2.vdi'
config.vm.provider "virtualbox" do |v|
unless File.exist?(file_to_disk)
v.customize ['createhd', '--filename', file_to_disk, '--size', 500 * 1024] # 500M
end
v.customize ['storageattach', :id, '--storagectl', 'IDE Controller', '--port', 1, '--device', 0, '--type', 'hdd', '--medium', file_to_disk]
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment