Since upgrading to VirtualBox 5.0.4 my host is unable to access the guest at 192.168.33.10 (ping, h ttp etc) after the guest has been started and shutdown once. The guest can ping my host machine and access the internet at all times.
I tried downgrading to 5.0.2 and this seems to resolve the issue, before that, the last release of 4.3.30 also worked fine.
The host OS is Windows 8.1, I am using Vagrant 1.7.4 (running as Administrator) and the guest OS is CentOS 6.6 with the latest Guest Additions.
In 5.0.4 the network configuration for the box is: Adapter 1 (NAT), Adapter 2 (Host-only Adapter - VirtualBox Host-Only Ethernet Adapter #6).
In 5.0.2 the network configuration for the box is: Adapter 1 (NAT), Adapter 2 (Host-only Adapter - VirtualBox Host-Only Ethernet Adapter #2).
I don't know if that means the issue is that the wrong adapter is being used?
I can SSH in to the guest on 127.0.0.1:2222 because of the port forwarding rule that is set on Adapter #1.
Things I've tried:
- Disabled Windows firewall
Disabled iptables firewall
Uncheck/check IP V6 on all adapters
Don't install the "Brige" adapter during installation
Uninstalling/reinstalling (curiously it works the first time, then not)
Reboots of host.
Don't upgrade Guest Additions
EDIT: I may have semi-answered my own question. Manually changing Adapter #2 to Host-only Adapter - VirtualBox Host-Only Ethernet Adapter #2 from Host-only Adapter - VirtualBox Host-Only Ethernet Adapter #6 when the guest has booted seems to resolve the issue. I guess my question now is why does 5.0.4 select adapter #6 and how can I change the default behaviour (this might be outside the remit of this forum as I am using Vagrant shell provisioning to bring the box up).
EDIT 2: It seems that each time Vagrant reboots the machine a new VirtualBox Host-only Ethernet Adapter is created and set as the default. I have to keep changing it back to #2 :/
Thanks