# RancherOS -Vagrant: host-only network does not work

**URL:** <https://forums.suse.com/t/rancheros-vagrant-host-only-network-does-not-work/792>\
**Category:** RancherOS\
**Created:** [October 27, 2015, 11:48pm UTC](https://forums.suse.com/t/rancheros-vagrant-host-only-network-does-not-work/792 "2015-10-27T23:48:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ypz](https://avatars.discourse-cdn.com/v4/letter/y/a183cd/32.png) [@ypz](https://forums.suse.com/u/ypz)\
**Post date:** [October 27, 2015, 11:48pm UTC](https://forums.suse.com/t/rancheros-vagrant-host-only-network-does-not-work/792/1 "2015-10-27T23:48:51Z")

</div>

Hi,

I am following this document: [http://docs.rancher.com/os/running-rancheros/workstation/vagrant/](http://docs.rancher.com/os/running-rancheros/workstation/vagrant/) to run rancher OS with Vagrant (version 1.7.4) and Virtualbox (v5.0.6 r103037 on Mac OS X).

Once the VM is up and running, I can login with cmd “vagrant ssh”. But the VM’s network setup looks strange and I can not ping the VM from my host:

On my Mac laptop, Virtualbox created a host-only interface as vboxnet0:

vboxnet0: with IP 172.19.8.1/24  
The routing table has a route to 172.19.8/24 network use vboxnet0 device.

On the rancher VM, it has following interfaces and IP addresses:

docker-sys: with IP 172.18.42.1/16  
docker0: with IP 172.17.42.1/16  
eth0/eth1: no IP assigned

As you can see, the host and the VM are not even on the same network! If I manually configure VM’s eth1 interface with IP 172.19.8.2, the host and the VM can ping each other successfully.

What’s going here ? Can someone tells me how do I fix it ?

Thanks

Yiping

---

<div class="post-metadata">

**Author:** ![eeichinger](https://avatars.discourse-cdn.com/v4/letter/e/96bed5/32.png) [@eeichinger](https://forums.suse.com/u/eeichinger)\
**Post date:** [November 19, 2015, 7:17pm UTC](https://forums.suse.com/t/rancheros-vagrant-host-only-network-does-not-work/792/2 "2015-11-19T19:17:44Z")

</div>

some problem here :(. It appears that only ipv6 addresses get configured but not ipv4. It’s not a Vagrant problem, tried the same Vagrantfile with the precise32 box, which works fine.

---

<div class="post-metadata">

**Author:** ![dbones](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/dbones/32/265_2.png) [@dbones](https://forums.suse.com/u/dbones)\
**Post date:** [December 4, 2015, 9:48pm UTC](https://forums.suse.com/t/rancheros-vagrant-host-only-network-does-not-work/792/3 "2015-12-04T21:48:04Z")

</div>

Same issue here, im using windows with vagrant + virtual box

RancherOS 0.3.3 worked, it assigned a ipv4 address, but in the latest, this does not seem to be the case.
