Created
August 4, 2016 08:10
-
-
Save nyanshell/f95a7797fad01755db9353e6cffdddd5 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure("2") do |config| | |
config.vm.define "test" do |config| | |
config.vm.hostname = "test" | |
config.vm.box = "bento/ubuntu-16.04" | |
config.vm.network "private_network", type: "dhcp" | |
config.vm.provider "virtualbox" do |vb| | |
(0..3).each do |i| | |
unless File.exist?("vdisk-#{i}.vdi") | |
vb.customize ['createhd', '--filename', "vdisk-#{i}.vdi", '--variant', 'Fixed', '--size', 1024] | |
end | |
vb.customize ['storageattach', :id, '--storagectl', 'SATA Controller', '--port', i+1, '--device', 0, '--type', 'hdd', '--medium', "vdisk-#{i}.vdi"] | |
end | |
vb.memory = "1024" | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment