# Nomad cluster in WSL mode

**URL:** <https://discuss.hashicorp.com/t/nomad-cluster-in-wsl-mode/26399>\
**Category:** Nomad\
**Tags:** windows\
**Created:** [July 6, 2021, 3:40am UTC](https://discuss.hashicorp.com/t/nomad-cluster-in-wsl-mode/26399 "2021-07-06T03:40:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vasu.chikkanna](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/vasu.chikkanna/32/16315_2.png) [@vasu.chikkanna](https://discuss.hashicorp.com/u/vasu.chikkanna)\
**Post date:** [July 6, 2021, 3:40am UTC](https://discuss.hashicorp.com/t/nomad-cluster-in-wsl-mode/26399/1 "2021-07-06T03:40:57Z")

</div>

We have successfully create nomad cluster in windows systems and was able to run the applications in cluster. Let me know if below use case is achievable

**Use Case:** “Create nomad cluster in Windows OS as we are deploying in on-premise environment. The service we are trying to launch in nomad is not compatible with Windows and it is available as linux container. Hence trying to create nomad cluster in Windows WSL(Windows subsystem for Linux) mode.”

**What’s working:** “Was able to create single node nomad instance in WSL mode and deployed the service. It’s working ”

**What’s not working:** “Not able to create nomad cluster in WSL mode in windows.”

---

<div class="post-metadata">

**Author:** ![jrasell](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/jrasell/32/5500_2.png) [@jrasell](https://discuss.hashicorp.com/u/jrasell)\
**Post date:** [July 6, 2021, 7:24am UTC](https://discuss.hashicorp.com/t/nomad-cluster-in-wsl-mode/26399/2 "2021-07-06T07:24:47Z")

</div>

Hi @vasu.chikkanna. I do not know the definitive answer of the top of my head, so will raise this internally and come back to you. In the meantime, are you getting any error messages or such which might help identify the issues you’re facing when running Nomad under WSL?

Thanks,  
jrasell and the Nomad team

---

<div class="post-metadata">

**Author:** ![sharish27](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/sharish27/32/16400_2.png) [@sharish27](https://discuss.hashicorp.com/u/sharish27)\
**Post date:** [July 6, 2021, 10:44am UTC](https://discuss.hashicorp.com/t/nomad-cluster-in-wsl-mode/26399/3 "2021-07-06T10:44:59Z")

</div>

@jrasell  
Please find the details of issue we are facing. This is inline with use case reported by @vasu.chikkanna  
Please find the sample configuration used to run nomad agent as server and client.  
For server.hcl:  
“”"  
**datacenter = "dc1"**  
**data\_dir = "C:\data"**  
**bind\_addr = “0.0.0.0”** or specific “\<server\_ip\>”

**advertise {**  
\*\* # Defaults to the first private IP address.\*\*  
\*\* http = “\<server\_ip\>”\*\*  
\*\* rpc = “\<server\_ip\>”\*\*  
**}**  
**server {**  
\*\* enabled = true\*\*  
\*\* bootstrap\_expect = 1\*\*  
**}**  
“”"

For client.hcl  
“”"  
**datacenter = "dc1"**  
**data\_dir="/data"**  
**bind\_addr=“0.0.0.0”** or specific “\<client\_ip\>”

**client{**  
\*\* enabled=true\*\*  
\*\* servers=["\<server\_ip\>:4647"]\*\*  
**}**  
“”"

The Nomad Server agent and the client agent is running in WSL mode of windows

Below is the error snapshot. The client is unable to connect to server

 ![image](https://global.discourse-cdn.com/hashicorp/original/3X/9/c/9ce4e8168a1774345a4b33f497853925c47d80c6.png)
