Hi,
Thanks for your reply!
Here is what i am trying to do:
I want to bring up 2 virtual machines with static ip's.
I just want to know how i could modify my Vagrant file to do the same?
Can i do it the way below:
Vagrant.configure('2') do |config|
config.vm.define :first do |node|
node.vm.box = "ubuntu-12.04-server-i386"
node.vm.network :private_network, :ip => 'xxx.xxx.xxx.xxx'
end
config.vm.define :second do |node|
node.vm.box = "ubuntu-12.04-server-i386"
node.vm.network :private_network, :ip => 'xxx.xxx.xxx.xxx'
end
end
Is this the correct approach? Is there a better method to do this?
Note: I am using the vagrant-vsphere plugin to do this
[https://github.com/nsidc/vagrant-vsphere]
Thanks!
On Monday, 4 August 2014 11:22:49 UTC-7, Alvaro Miranda Aguilera wrote:
>
> Hello,
>
> The networking on single machine or multi-machine should be the same.
>
> http://docs.vagrantup.com/v2/networking/index.html
>
> you can have private networks:
> http://docs.vagrantup.com/v2/networking/private_network.html
>
> or public networks:
> http://docs.vagrantup.com/v2/networking/public_network.html
>
> Can you elaborate a bit more on what you require?
>
> Thanks,
> alvaro.
>
>
>
> On Tue, Aug 5, 2014 at 2:36 AM, varun umesh <[email protected]
> <javascript:>> wrote:
>
>> I am trying to boot 3 vm's using Vagrant and i want to know how i can
>> assign ip address to these vm's using Vagrant. I just want to understand
>> what are the changes required to be done for my Vagrantfile.
>>
>> Thanks!
>>
>> -varun
>>
>> --
>> 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] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
--
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].
For more options, visit https://groups.google.com/d/optout.