# Fail to join cluster for VMs created from virtual box

**URL:** <https://discuss.elastic.co/t/fail-to-join-cluster-for-vms-created-from-virtual-box/33637>\
**Category:** Elasticsearch\
**Created:** [November 3, 2015, 1:50pm UTC](https://discuss.elastic.co/t/fail-to-join-cluster-for-vms-created-from-virtual-box/33637 "2015-11-03T13:50:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![michaelbpeng](https://avatars.discourse-cdn.com/v4/letter/m/e56c9b/32.png) [@michaelbpeng](https://discuss.elastic.co/u/michaelbpeng)\
**Post date:** [November 3, 2015, 1:50pm UTC](https://discuss.elastic.co/t/fail-to-join-cluster-for-vms-created-from-virtual-box/33637/1 "2015-11-03T13:50:00Z")

</div>

Just installed ES 2.0.0 on linux VMs(Ubuntu/Mint) created from VirtualBox, and setup network as bridge  
added FQDN to /etc/hosts and disabled firewall. I can ping/ssh to the IPs and FQDNs.  
updated yml file on all VMs(xxx.14, xxx.15, xxx.16) e.g. on xxx.14

cluster.name: rhytone  
discovery.zen.ping.multicast.enabled: false  
discovery.zen.ping.unicast.hosts: ["192.168.1.15", "192.168.1.16"]

all are with the same cluster.name

curl -XGET '[http://localhost:9200/\_nodes](http://localhost:9200/_nodes)'  
{"cluster\_name":"rhytone","nodes":{"sowY7BiUT\_q2gHFtCJulZw":{"name":"mike14","transport\_address":"127.0.0.1:9300","host":"127.0.0.1","ip":"127.0.0.1","version":"2.0.0","build":"de54438","http\_address":"127.0.0.1:9200","settings":{"pidfile":"/var/run/elasticsearch/elasticsearch.pid","cluster":{"name":"rhytone"},"node":{"name":"mike14"},"path":{"conf":"/etc/elasticsearch","data":"/var/lib/elasticsearch","logs":"/var/log/elasticsearch","home":"/usr/share/elasticsearch"},"discovery":{"zen":{"minimum\_master\_nodes":"2","ping":{"multicast":{"enabled":"false"},"unicast":{"hosts":["192.168.1.15","192.168.1.16"]}}}},"name":"mike14","client":{"type":"node"},"foreground":"false","config":{"ignore\_system\_properties":"true"}},"os":{"refresh\_interval\_in\_millis":1000,"name":"Linux","arch":"amd64","version":"3.19.0-25-generic","available\_processors":1},"process":{"refresh\_interval\_in\_millis":1000,"id":2625,"mlockall":false},"jvm":{"pid":2625,"version":"1.8.0\_66","vm\_name":"Java HotSpot(TM) 64-Bit Server VM","vm\_version":"25.66-b17","vm\_vendor":"Oracle Corporation","start\_time\_in\_millis":1446556823529,"mem":{"heap\_init\_in\_bytes":268435456,"heap\_max\_in\_bytes":1065025536,"non\_heap\_init\_in\_bytes":2555904,"non\_heap\_max\_in\_bytes":0,"direct\_max\_in\_bytes":1065025536},"gc\_collectors":["ParNew","ConcurrentMarkSweep"],"memory\_pools":["Code Cache","Metaspace","Compressed Class Space","Par Eden Space","Par Survivor Space","CMS Old Gen"]},"thread\_pool":{"percolate":{"type":"fixed","min":1,"max":1,"queue\_size":1000},"fetch\_shard\_started":{"type":"scaling","min":1,"max":2,"keep\_alive":"5m","queue\_size":-1},"listener":{"type":"fixed","min":1,"max":1,"queue\_size":-1},"index":{"type":"fixed","min":1,"max":1,"queue\_size":200},"refresh":{"type":"scaling","min":1,"max":1,"keep\_alive":"5m","queue\_size":-1},"suggest":{"type":"fixed","min":1,"max":1,"queue\_size":1000},"generic":{"type":"cached","keep\_alive":"30s","queue\_size":-1},"warmer":{"type":"scaling","min":1,"max":1,"keep\_alive":"5m","queue\_size":-1},"search":{"type":"fixed","min":2,"max":2,"queue\_size":1000},"flush":{"type":"scaling","min":1,"max":1,"keep\_alive":"5m","queue\_size":-1},"optimize":{"type":"fixed","min":1,"max":1,"queue\_size":-1},"fetch\_shard\_store":{"type":"scaling","min":1,"max":2,"keep\_alive":"5m","queue\_size":-1},"management":{"type":"scaling","min":1,"max":5,"keep\_alive":"5m","queue\_size":-1},"get":{"type":"fixed","min":1,"max":1,"queue\_size":1000},"bulk":{"type":"fixed","min":1,"max":1,"queue\_size":50},"snapshot":{"type":"scaling","min":1,"max":1,"keep\_alive":"5m","queue\_size":-1}},"transport":{"bound\_address":["127.0.0.1:9300","[::1]:9300"],"publish\_address":"127.0.0.1:9300","profiles":{}},"http":{"bound\_address":["127.0.0.1:9200","[::1]:9200"],"publish\_address":"127.0.0.1:9200","max\_content\_length\_in\_bytes":104857600},"plugins":[]}}}

Do I miss something?

Thanks,

Mike

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [November 3, 2015, 11:48pm UTC](https://discuss.elastic.co/t/fail-to-join-cluster-for-vms-created-from-virtual-box/33637/2 "2015-11-03T23:48:00Z")

</div>

> [@michaelbpeng](#):
>
> Do I miss something?

Probably, see [https://www.elastic.co/guide/en/elasticsearch/reference/current/\_network\_changes.html#\_bind\_to\_localhost](https://www.elastic.co/guide/en/elasticsearch/reference/current/_network_changes.html#_bind_to_localhost)

---

<div class="post-metadata">

**Author:** ![michaelbpeng](https://avatars.discourse-cdn.com/v4/letter/m/e56c9b/32.png) [@michaelbpeng](https://discuss.elastic.co/u/michaelbpeng)\
**Post date:** [November 4, 2015, 2:05am UTC](https://discuss.elastic.co/t/fail-to-join-cluster-for-vms-created-from-virtual-box/33637/3 "2015-11-04T02:05:37Z")

</div>

yep, it works after adding "network.host: 192.168.1.1x" to the yml file on all hosts. I added only to the first one previously:(

Thanks a lot

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 5, 2017, 11:40pm UTC](https://discuss.elastic.co/t/fail-to-join-cluster-for-vms-created-from-virtual-box/33637/4 "2017-07-05T23:40:45Z")

</div>


