Hello,

127.0.0.1 is the ip of localhost, each machine can reach himself on that ip.

When you create a vagrant box with virtualbox, the guest will get the
first nic with ip 10.0.0.15 (or similar),

your host VM, will create a port forward, from :2222 to guest:22

So when you or vagrant connect to 127.0.0.1:2222 will be using this
port forward to reach the guest.

What you need to do is connect to guest and do  `ifconfig` and you
will see the nics and ip

eth0 or first nic usually will be 10.0.0.15 (or similar)
eth1 or seconf nic will have the either private or public IP

once you confirm that additional ip is set, try to ping and ssh using that ip

Hope this helps
Alvaro

On Thu, Aug 6, 2015 at 7:44 PM, Andreas J <[email protected]> wrote:
> Hi,
>
> I have the following setup
>
> host: Win7
> guest: hashicorp/precise32
> provider: VirtualBox 5.0.0
> Vagrant 1.7.4
>
> with this Vagrantfile
>
> config.vm.define "qa" do |qa|
>     qa.vm.box = "hashicorp/precise32"
>     qa.vm.network :forwarded_port, guest: 80, host: 8080
>     qa.vm.network "private_network", ip: "192.168.50.4", virtualbox__intnet:
> true
>     qa.vm.provider :virtualbox do |vb|
>          vb.name = "qa"
>  vb.memory = 1024
>     end
> end
>
> whatever I type for the "private_network", I always get a VM on
> 127.0.0.1:2222. I tried with and without "virtualbox__intent", I tried with
> type: "dhcp", but the ip adress is ignored - the VM is always only
> accessible via 127.0.0.1
>
> What do I do wrong ?
>
> Thanks/Cheers
>
> --
> 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/04915f32-e9a4-46ee-821e-354ff0b5daf1%40googlegroups.com.
> 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/CAHqq0exUSoS%3D9mK0m3tUONyfNvUG-riW0xqWr9O_rGhj7t9D0A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to