So it would seem this is a VirtualBox issue. Here is how to solve it:

- In VirtualBox, File > Preferences > Network > Host only, edit the 
vboxnet0 connection
- Don't change anything, just press "OK"
- Check that vboxnet0 now shows up when running ifconfig. if not, delete 
the vboxnet0 connection in the VBox prefs, readd it, and do step 1 again

On Saturday, 8 July 2017 10:30:29 UTC-4, Hans Fritz wrote:
>
> Hi,
>
> I'm using Vagrant , VirtualBox, and a Ubuntu 17.04 host and I can't get 
> private networking to work.
> My guest Vagrant box has two interfaces (eth0 10.0.2.15, eth1 
> 192.168.33.20) and I can reach the internet from the box; but I can't reach 
> 192.168.33.20 from the host. I have a vboxnet0 and a vboxnet1 on the host, 
> but both are down and have no IP.
>
> I also can't understand why the box has two interfaces, I'm only asking 
> for private_network with an IP of 192.168.33.20.
>
> How do I make it so that the host can reach 192.168.33.20?
>
> my Vagrantfile:
>
>> # -*- mode: ruby -*- # vi: set ft=ruby :
>> Vagrant.configure("2") do |config|
>>   config.vm.box = "ubuntu/trusty64"
>>   config.vm.network "private_network", ip: "192.168.33.20"
>>   config.vm.provider "virtualbox" do |vb|
>>     vb.memory = "1024"
>>   end
>>   config.vm.provision "ansible" do |ansible|
>>     ansible.playbook = "provisioning/playbook.yml"
>>   end
>> end
>
>
>
>

-- 
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/b3c3119e-7ca7-4cb8-bc5e-38a6d492d2ee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to