# New VM install fail to run

**URL:** <https://discuss.elastic.co/t/new-vm-install-fail-to-run/100157>\
**Category:** Elasticsearch\
**Created:** [September 12, 2017, 5:40am UTC](https://discuss.elastic.co/t/new-vm-install-fail-to-run/100157 "2017-09-12T05:40:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![overelastic](https://avatars.discourse-cdn.com/v4/letter/o/a4c791/32.png) [@overelastic](https://discuss.elastic.co/u/overelastic)\
**Post date:** [September 12, 2017, 5:40am UTC](https://discuss.elastic.co/t/new-vm-install-fail-to-run/100157/1 "2017-09-12T05:40:18Z")

</div>

Hi, I'm trying to run Elasticsearch using Virtualbox VM (Ubuntu 16.04 server). I'm using this guide and install latest 5.6.0 edition.

[http://www.elasticsearchtutorial.com/elasticsearch-in-5-minutes.html](http://www.elasticsearchtutorial.com/elasticsearch-in-5-minutes.html)

After I run bin/elasticsearch, it seems to start fine but it is connection refused when I try to connect to [http://ip:9200](http://ip:9200) . Firewall is off

x@ubuntu:~/elasticsearch-5.6.0$ bin/elasticsearch  
[2017-09-12T13:29:52,680][INFO][o.e.n.Node] [] initializing ...  
[2017-09-12T13:29:52,750][INFO][o.e.e.NodeEnvironment] [E0GJo84] using [1] data paths, mounts [[/ (/dev/mapper/ubuntu--vg-root)]], net usable\_space [4.3gb], net total\_space [6.2gb], spins? [possibly], types [ext4]  
[2017-09-12T13:29:52,751][INFO][o.e.e.NodeEnvironment] [E0GJo84] heap size [1.9gb], compressed ordinary object pointers [true]  
[2017-09-12T13:29:52,752][INFO][o.e.n.Node] node name [E0GJo84] derived from node ID [E0GJo848QQK4mxX787vz7A]; set [[node.name](http://node.name)] to override  
[2017-09-12T13:29:52,753][INFO][o.e.n.Node] version[5.6.0], pid[1593], build[781a835/2017-09-07T03:09:58.087Z], OS[Linux/4.4.0-62-generic/amd64], JVM[Oracle Corporation/OpenJDK 64-Bit Server VM/1.8.0\_131/25.131-b11]  
[2017-09-12T13:29:52,753][INFO][o.e.n.Node] JVM arguments [-Xms2g, -Xmx2g, -XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=75, -XX:+UseCMSInitiatingOccupancyOnly, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -Djdk.io.permissionsUseCanonicalPath=true, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Dlog4j.skipJansi=true, -XX:+HeapDumpOnOutOfMemoryError, -Des.path.home=/home/robin/elasticsearch-5.6.0]  
[2017-09-12T13:29:53,709][INFO][o.e.p.PluginsService] [E0GJo84] loaded module [aggs-matrix-stats]  
[2017-09-12T13:29:53,715][INFO][o.e.p.PluginsService] [E0GJo84] loaded module [ingest-common]  
[2017-09-12T13:29:53,716][INFO][o.e.p.PluginsService] [E0GJo84] loaded module [lang-expression]  
[2017-09-12T13:29:53,716][INFO][o.e.p.PluginsService] [E0GJo84] loaded module [lang-groovy]  
[2017-09-12T13:29:53,716][INFO][o.e.p.PluginsService] [E0GJo84] loaded module [lang-mustache]  
[2017-09-12T13:29:53,716][INFO][o.e.p.PluginsService] [E0GJo84] loaded module [lang-painless]  
[2017-09-12T13:29:53,717][INFO][o.e.p.PluginsService] [E0GJo84] loaded module [parent-join]  
[2017-09-12T13:29:53,717][INFO][o.e.p.PluginsService] [E0GJo84] loaded module [percolator]  
[2017-09-12T13:29:53,717][INFO][o.e.p.PluginsService] [E0GJo84] loaded module [reindex]  
[2017-09-12T13:29:53,717][INFO][o.e.p.PluginsService] [E0GJo84] loaded module [transport-netty3]  
[2017-09-12T13:29:53,717][INFO][o.e.p.PluginsService] [E0GJo84] loaded module [transport-netty4]  
[2017-09-12T13:29:53,718][INFO][o.e.p.PluginsService] [E0GJo84] no plugins loaded  
[2017-09-12T13:29:55,458][INFO][o.e.d.DiscoveryModule] [E0GJo84] using discovery type [zen]  
[2017-09-12T13:29:56,072][INFO][o.e.n.Node] initialized  
[2017-09-12T13:29:56,075][INFO][o.e.n.Node] [E0GJo84] starting ...  
[2017-09-12T13:29:56,230][INFO][o.e.t.TransportService] [E0GJo84] publish\_address {127.0.0.1:9300}, bound\_addresses {[::1]:9300}, {127.0.0.1:9300}  
[2017-09-12T13:29:59,328][INFO][o.e.c.s.ClusterService] [E0GJo84] new\_master {E0GJo84}{E0GJo848QQK4mxX787vz7A}{JNMxFKMWSFCkFdh3LyMXqQ}{127.0.0.1}{127.0.0.1:9300}, reason: zen-disco-elected-as-master ([0] nodes joined)  
[2017-09-12T13:29:59,395][INFO][o.e.h.n.Netty4HttpServerTransport] [E0GJo84] publish\_address {127.0.0.1:9200}, bound\_addresses {[::1]:9200}, {127.0.0.1:9200}  
[2017-09-12T13:29:59,395][INFO][o.e.n.Node] [E0GJo84] started  
[2017-09-12T13:29:59,397][INFO][o.e.g.GatewayService] [E0GJo84] recovered [0] indices into cluster\_state

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [September 12, 2017, 5:45am UTC](https://discuss.elastic.co/t/new-vm-install-fail-to-run/100157/2 "2017-09-12T05:45:37Z")

</div>

> [@overelastic](#):
>
> [2017-09-12T13:29:59,395][INFO][o.e.h.n.Netty4HttpServerTransport] [E0GJo84] publish\_address {127.0.0.1:9200}, bound\_addresses {[::1]:9200}, {127.0.0.1:9200}

Elasticsearch by default binds to localhost only, which means it is not accessible from outside the VM. You will need to update the network settings in the `elasticsearch.yml` to make it bind to an externally accessible IP.

---

<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:** [September 12, 2017, 5:48am UTC](https://discuss.elastic.co/t/new-vm-install-fail-to-run/100157/3 "2017-09-12T05:48:37Z")

</div>

That tutorial is super old, I would suggest you use [https://www.elastic.co/guide/en/elasticsearch/reference/5.6/getting-started.html](https://www.elastic.co/guide/en/elasticsearch/reference/5.6/getting-started.html)

---

<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:** [October 10, 2017, 5:48am UTC](https://discuss.elastic.co/t/new-vm-install-fail-to-run/100157/4 "2017-10-10T05:48:37Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
