Hi,
I tried it with different boxes, always the same, I can't ping the host.
ping to the outside world via NAT works, but not on the host-only adapter.
this is my Vagrantfile:
----
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "scotch/box"
config.vm.network "private_network", ip: "192.168.33.10"
config.vm.hostname = "scotchbox"
config.vm.synced_folder ".", "/var/www", :mount_options =>
["dmode=777", "fmode=666"]
config.vm.provider "virtualbox" do |v|
v.customize ["modifyvm", :id, "--cpuexecutioncap", "80"]
v.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
v.gui = false
v.memory = "2048"
v.cpus = 2
end
end
-----
Adapter 1 = NAT
Adapter 2 = host-only (vboxnet0, IP: 192.168.33.10)
----- guest:
eth1 Link encap:Ethernet HWaddr 08:00:27:0c:f4:d3
inet addr:192.168.33.10 Bcast:192.168.33.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fe0c:f4d3/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1 errors:0 dropped:0 overruns:0 frame:0
TX packets:20 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:215 (215.0 B) TX bytes:1844 (1.8 KB)
----- host:
vboxnet0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu
1500
ether 0a:00:27:00:00:00
inet 192.168.33.1 netmask 0xffffff00 broadcast 192.168.33.255
------ guest:
vagrant@scotchbox:~$ ping 192.168.33.1
PING 192.168.33.1 (192.168.33.1) 56(84) bytes of data.
^C
--- 192.168.33.1 ping statistics ---
5 packets transmitted, 0 received, 100% packet loss, time 4032ms
vagrant@scotchbox:~$ ping www.google.at
PING www.google.at (64.15.113.181) 56(84) bytes of data.
64 bytes from 64.15.113.181: icmp_seq=1 ttl=63 time=34.1 ms
64 bytes from 64.15.113.181: icmp_seq=2 ttl=63 time=33.5 ms
------ guest:
vagrant@scotchbox:~$ arp
Address HWtype HWaddress Flags Mask
Iface
10.0.2.3 ether 52:54:00:12:35:03 C
eth0
10.0.2.2 ether 52:54:00:12:35:02 C
eth0
192.168.33.1 ether 08:00:27:38:ca:5d C
eth1
------
OSX 10.11.2 (15C50), Firewall OFF
Vagrant 1.8.1
VirtualBox 5.0.12 r104815
Any hints or help appreciated!
tia!
This worked before El Capitan.
Kind regards
Wolfgang Klinger
--
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/5a1734d0-7d00-4398-8b8f-8b46a03d038b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.