# ElasticSearch Config - Issues SSHing into default linux machine

**URL:** https://discuss.elastic.co/t/elasticsearch-config-issues-sshing-into-default-linux-machine/182804
**Category:** Elasticsearch
**Tags:** docker
**Created:** [May 26, 2019, 3:32pm UTC](https://discuss.elastic.co/t/elasticsearch-config-issues-sshing-into-default-linux-machine/182804 "2019-05-26T15:32:27Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![jasonmull](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasonmull/32/46867_2.png) [@jasonmull](https://discuss.elastic.co/u/jasonmull)
#### Post date: [May 26, 2019, 3:32pm UTC](https://discuss.elastic.co/t/elasticsearch-config-issues-sshing-into-default-linux-machine/182804/1 "2019-05-26T15:32:27Z")

</div>

I've recently installed Docker on Windows 10 Enterprise in order to run an Elasticsearch environment. Going through the documentation [here](https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html), I'm instructed to run `docker-machine ssh` and `sudo sysctl -w vm.max_map_count=262144`, however, when I do so, I receive:

> Error: No machine name(s) specified and no "default" machine exists

A quick look at `docker-machine ls` does now show any machines, but I do see the MobyLinuxVM running in HyperV. Is this the machine I should be connecting to, or am I needing to create another machine outside of MobyLinuxVM?

---

<div class="post-metadata">

### Author: ![Andre\_Letterer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andre_letterer/32/42248_2.png) [@Andre\_Letterer](https://discuss.elastic.co/u/Andre_Letterer)
#### Post date: [May 26, 2019, 7:57pm UTC](https://discuss.elastic.co/t/elasticsearch-config-issues-sshing-into-default-linux-machine/182804/2 "2019-05-26T19:57:35Z")

</div>

Hi,

Welcome to the Elastic Community and thank you for your post.

I think you are referring to this direct link  
[https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html#docker-cli-run-prod-mode](https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html#docker-cli-run-prod-mode)  
So just a short clarification let me describe most short as I can:  
Under Windows there are at most 2 variants to install docker:

1. Windows with Docker Toolbox (Virtualbox) (which is the Elasticsearch documentation talking about)  
So here you find the documentation for this  
[https://docs.docker.com/toolbox/overview/#whats-in-the-box](https://docs.docker.com/toolbox/overview/#whats-in-the-box)  
using virtualization VirtualBox  
including using command docker-machine ssh to connect to machine name "default"

2. Windows Docker Desktop with Docker Community Editon (Hyper-V) (what you are talking about)  
There is the machine name like you stated already "MobyLinuxVM" and uses Hypervisor Hyper-V.

So in case you get during starting up the docker container the following Elasticsearch error:

```auto
Exception in thread "main" java.lang.RuntimeException: bootstrap checks failed
max virtual memory areas vm.max_map_count [65530] likely too low, increase to at least [262144]

```

You can solve that with this discussion entry from Docker because you cannot directly ssh to the MobyLinuxVM:  
[https://forums.docker.com/t/how-can-i-ssh-into-the-betas-mobylinuxvm/10991/7](https://forums.docker.com/t/how-can-i-ssh-into-the-betas-mobylinuxvm/10991/7)  
So let me just state this snippet:

```auto
#get a privileged container with access to Docker daemon
docker run --privileged -it --rm -v /var/run/docker.sock:/var/run/docker.sock -v /usr/bin/docker:/usr/bin/docker alpine sh

#run a container with full root access to MobyLinuxVM and no seccomp profile (so you can mount stuff)
docker run --net=host --ipc=host --uts=host --pid=host -it --security-opt=seccomp=unconfined --privileged --rm -v /:/host alpine /bin/sh

#switch to host FS
chroot /host

# And now set the value
sudo sysctl -w vm.max_map_count=262144

```

Hope that helps, would be good to get some feedback if this worked out for you.

Because that would give me the possibility to add this information to the docs.

---

<div class="post-metadata">

### Author: ![jasonmull](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasonmull/32/46867_2.png) [@jasonmull](https://discuss.elastic.co/u/jasonmull)
#### Post date: [May 26, 2019, 9:18pm UTC](https://discuss.elastic.co/t/elasticsearch-config-issues-sshing-into-default-linux-machine/182804/3 "2019-05-26T21:18:52Z")

</div>

Ok. Running through what you provided and using the two node cluster example in the document, I get the following error 78. Some searching leads back to the initial kernel setting, but I also noticed this

> e[33melasticsearch1 |e[0m [1]: the default discovery settings are unsuitable for production use; at least one of [discovery.seed\_hosts, discovery.seed\_providers, cluster.initial\_master\_nodes] must be configured

> e[33melasticsearch1 exited with code 78

---

<div class="post-metadata">

### Author: ![jasonmull](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasonmull/32/46867_2.png) [@jasonmull](https://discuss.elastic.co/u/jasonmull)
#### Post date: [May 27, 2019, 12:26am UTC](https://discuss.elastic.co/t/elasticsearch-config-issues-sshing-into-default-linux-machine/182804/4 "2019-05-27T00:26:42Z")

</div>

Just to follow up, your suggestion did solve my issue. My second error was due to an incorrect .yml file. Not sure if the example in the documents changed or I copied it wrong, but I pulled it down again and everything worked.

Only modification I'd make is that once I got into the VM, I got an error trying to run sysctl with sudo. The fix was to run the exact same command, no sudo.

---

<div class="post-metadata">

### Author: ![Andre\_Letterer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andre_letterer/32/42248_2.png) [@Andre\_Letterer](https://discuss.elastic.co/u/Andre_Letterer)
#### Post date: [May 27, 2019, 10:24am UTC](https://discuss.elastic.co/t/elasticsearch-config-issues-sshing-into-default-linux-machine/182804/5 "2019-05-27T10:24:16Z")

</div>

Good, that is great news. Thank you for the input.

---

<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: [June 24, 2019, 10:24am UTC](https://discuss.elastic.co/t/elasticsearch-config-issues-sshing-into-default-linux-machine/182804/6 "2019-06-24T10:24:21Z")

</div>

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