Hello,

Vagrant does one job and does it very nice. Time by time people want to
make vagrant what they would like to do, instead of learning a bit of
Vagrant, and that create fustration.

1. Vagrant always will use eth0 for local host/vm communication, and over
this network you can use the forwarder ports, and the VM will have access
to the network using nat.

2. When you add a private network, you can use this IP (fixed or dhcp) to
ssh into the VM, VM->Host, or in a multi machine setup to VM->VM

3. When you use public network, you will get an IP from your home/office
network, and by default, its documented, Vagrant wont override the default
GW. So if you need to do this, there is an example script in the
documentation on how to do this.

IF you could share what you want to do, how your Vagrantfile looks like,
there is a lot of people that can have a look and share ideas with you.

Thanks
Alvaro.

On Wed, Jul 20, 2016 at 3:59 AM, <[email protected]> wrote:

> Hi Alvaro,
>
> It works with public_network but I don't have access to internet as I see
> two active interfaces eth0 and eth1. Can we make it working with only one
> interface ? How to do that?
>
> Cheers
> Jim
>
> P.S: Not at all happy with "Vagrant" product. No offence..............
>
>
> On Tuesday, July 19, 2016 at 4:38:17 AM UTC+10, Alvaro Miranda Aguilera
> wrote:
>>
>> Hello,
>>
>> the message is telling you that ip network can be used for private
>> network because there is a network that already exists.
>>
>> you can use a different network, or try wirth public if what you want is
>> the vm to connect to 192.168.1.x
>>
>> Alvaro
>>
>> On Tue, Jul 19, 2016 at 12:11 AM, <[email protected]> wrote:
>>
>>> Hello Folks,
>>>
>>> I ran into the following error when I execute "vagrant up" command.
>>>
>>> The specified host network collides with a non-hostonly network!
>>> This will cause your specified IP to be inaccessible. Please change
>>> the IP or name of your host only network so that it no longer matches
>>> that of
>>> a bridged or non-hostonly network.
>>>
>>> Vagrant file:
>>> Vagrant.configure("2") do |o|
>>> o.vm.box="centos/7"
>>> o.vm.network "private_network", ip: "192.168.1.13"
>>> o.vm.provision "shell", :path=>"setup.sh"
>>> end
>>>
>>> setup.sh:
>>> sudo yum -y update
>>> sudo yum -y install vim,git,gedit,nmap
>>> sudo systemctl restart httpd
>>>
>>> Nothing is started but I see a machine in Virtual box and I double click
>>> and I start as usual. Could assign static IP but no network to outside
>>> world. Not sure where the things are going wrong.
>>>
>>> Any help would be very much appreciated.
>>>
>>> Thanks
>>> Jim
>>>
>>> --
>>> 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/4bf32117-cc9d-4386-89db-6ab202d73ce8%40googlegroups.com
>>> <https://groups.google.com/d/msgid/vagrant-up/4bf32117-cc9d-4386-89db-6ab202d73ce8%40googlegroups.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/85aae2b1-e1af-48e7-b11f-f124a1a2bbf1%40googlegroups.com
> <https://groups.google.com/d/msgid/vagrant-up/85aae2b1-e1af-48e7-b11f-f124a1a2bbf1%40googlegroups.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/CAHqq0ewXUD2-%3DUhBOjZegCSnUae6aYuDz-9sV8KZdVb-L4aK%3DA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to