Last active
August 29, 2015 14:21
-
-
Save sahsu/6c79e37f62fe5bf81253 to your computer and use it in GitHub Desktop.
vagrant with multiple host and second disk sample
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 : | |
# All Vagrant configuration is done below. The "2" in Vagrant.configure | |
# configures the configuration version (we support older styles for | |
# backwards compatibility). Please don't change it unless you know what | |
# you're doing. | |
Vagrant.configure(2) do |config| | |
# The most common configuration options are documented and commented below. | |
# For a complete reference, please see the online documentation at | |
# https://docs.vagrantup.com. | |
# Every Vagrant development environment requires a box. You can search for | |
# boxes at https://atlas.hashicorp.com/search. | |
config.vm.define "g1" do |g1| | |
config.vm.box = "opscode-centos-6.4" | |
config.vm.hostname ="g1" | |
config.vm.provider "virtualbox" do |vb| | |
vb.customize ['createhd', '--filename', 'g1.vdi', '--size', 50 * 1024] | |
vb.customize ['storageattach', :id, '--storagectl', 'IDE Controller', '--port', 1, '--device', 0, '--type', 'hdd', '--medium', '/Volumes/SEAN-TM/vdi/g1.vdi'] | |
end | |
end | |
config.vm.define "g2" do |g2| | |
config.vm.box = "opscode-centos-6.4" | |
config.vm.hostname ="g2" | |
config.vm.provider "virtualbox" do |vb| | |
vb.customize ['createhd', '--filename', 'g2.vdi', '--size', 50 * 1024] | |
vb.customize ['storageattach', :id, '--storagectl', 'IDE Controller', '--port', 1, '--device', 0, '--type', 'hdd', '--medium', '/Volumes/SEAN-TM/vdi/g2.vdi'] | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment