Ok. Now the question is,
Once I am done with both vms, how can I go I back and configure first VM? My doubt is whenever we say config.vm.define, does is create new vm? If yes, then how can I just run some configurations on already running vm(Created by same Vagrantfile in previous steps) through Vagrantfile? Thanks & Regards, Shyam Biradar, Email: [email protected], Contact: +91 8600266938. On Sun, Aug 21, 2016 at 10:43 PM, Alvaro Miranda Aguilera <[email protected] > wrote: > same principle > > # 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.box = "hashicorp/precise64" > > config.vm.define "n1" do |n1| > n1.vm.hostname = "n1" > #this is n1 local, at this point n2 does not exists. > n1.vm.provision "shell", inline: "hello n1 provision" > end > > config.vm.define "n2" do |n2| > n2.vm.hostname = "n2" > #this is n2 local, at this point n1 already exists. > n2.vm.provision "shell", inline: "hello n2 provision" > end > end > > -- > This mailing list is governed under the HashiCorp Community Guidelines - > https://www.hashicorp.com/community-guidelines.html. Behavior in > violation of those guidelines may result in your removal from this mailing > list. > > GitHub Issues: https://github.com/mitchellh/vagrant/issues > IRC: #vagrant on Freenode > --- > You received this message because you are subscribed to a topic in the > Google Groups "Vagrant" group. > To unsubscribe from this topic, visit https://groups.google.com/d/ > topic/vagrant-up/28enLRixabk/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/vagrant-up/CAHqq0ez%2BLjuL50TrYWpD8c44Qc0DzNG_ > UpUOr0UWKkRv7s3%3D1Q%40mail.gmail.com > <https://groups.google.com/d/msgid/vagrant-up/CAHqq0ez%2BLjuL50TrYWpD8c44Qc0DzNG_UpUOr0UWKkRv7s3%3D1Q%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list. GitHub Issues: https://github.com/mitchellh/vagrant/issues IRC: #vagrant on Freenode --- You received this message because you are subscribed to the Google Groups "Vagrant" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/CA%2B8yFHY%2B96spxKMNKEyGXi34o7PzU7HN610uvLr9haS1pTg1fQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
