Last active
January 29, 2017 16:52
-
-
Save rahulkrishnanfs/79b686a7f45ded308435688491441ed5 to your computer and use it in GitHub Desktop.
Vagrantfile Example to create more that one VM using precise32 box
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 : | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.define "vagrant1" do |vagrant1| | |
vagrant1.vm.box = "precise32" | |
vagrant1.vm.network :forwarded_port, guest: 80, host: 7001 | |
vagrant1.vm.network :forwarded_port, guest: 443, host: 7002 | |
end | |
config.vm.define "vagrant2" do |vagrant2| | |
vagrant2.vm.box = "precise32" | |
vagrant2.vm.network :forwarded_port, guest: 80, host: 7003 | |
vagrant2.vm.network :forwarded_port, guest: 443, host: 7004 | |
end | |
config.vm.define "vagrant3" do |vagrant3| | |
vagrant3.vm.box = "precise32" | |
#config.vm.box = "precise32" | |
vagrant3.vm.network :forwarded_port, guest: 80, host: 7005 | |
vagrant3.vm.network :forwarded_port, guest: 443, host: 7006 | |
end | |
end | |
#NOTE | |
################ vagrant1, vagrant2,vagrant3 are the names of the machine | |
################ we can make more machines like this |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment