# WinRM not getting connected

**URL:** <https://talk.openmrs.org/t/winrm-not-getting-connected/11860>\
**Category:** Bahmni\
**Created:** [June 13, 2017, 6:27am UTC](https://talk.openmrs.org/t/winrm-not-getting-connected/11860 "2017-06-13T06:27:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mansijat](https://talk.openmrs.org/letter_avatar/mansijat/32/5_5575768a8748004e209b776fc1b2916d.png) [@mansijat](https://talk.openmrs.org/u/mansijat)\
**Post date:** [June 13, 2017, 6:27am UTC](https://talk.openmrs.org/t/winrm-not-getting-connected/11860/1 "2017-06-13T06:27:55Z")

</div>

Hi all, I am a beginner at Vagrant and I am trying to connect VirtualMachine with Vagrant using Winrm After configuring the host and guest machine using Winrm from the mentioned link [http://huestones.co.uk/node/305](http://huestones.co.uk/node/305) whileprovisioning vagrant i can find that winrm is not actually connected. Can you guys please help it out of it?

![](https://talk.openmrs.org/uploads/default/original/2X/8/804c986390f3f0ef04b925a70fcb07873c4e435f.png)

Thanks in advance

---

<div class="post-metadata">

**Author:** ![binduak](https://talk.openmrs.org/letter_avatar/binduak/32/5_5575768a8748004e209b776fc1b2916d.png) [@binduak](https://talk.openmrs.org/u/binduak)\
**Post date:** [June 14, 2017, 4:18am UTC](https://talk.openmrs.org/t/winrm-not-getting-connected/11860/2 "2017-06-14T04:18:03Z")

</div>

Hi @mansijat, From the above error it looks like vagrant is not up and that is the reason you are not able to connect to the VirtualMachine. Can you please share the `Vagrantfile`.

---

<div class="post-metadata">

**Author:** ![mansijat](https://talk.openmrs.org/letter_avatar/mansijat/32/5_5575768a8748004e209b776fc1b2916d.png) [@mansijat](https://talk.openmrs.org/u/mansijat)\
**Post date:** [June 14, 2017, 5:02am UTC](https://talk.openmrs.org/t/winrm-not-getting-connected/11860/3 "2017-06-14T05:02:51Z")

</div>

Thanks @binduak.

By doing Vagrant up the machine is actually getting started even though it is giving time out error. Please find the Vagrant file as below:

Vagrant.configure(“2”) do |config| config.vm.box = “windows” config.vm.guest = :windows config.vm.communicator = “winrm” config.winrm.username = “vagrant” config.winrm.password = “vagrant” config.vm.boot\_timeout = 30 config.vm.graceful\_halt\_timeout = 600 config.vm.provision “shell”,inline: “echo hello”

(1…2).each do |i| config.vm.define “node-#{i}” do |node| end end config.vm.network :forwarded\_port, guest: 3389, host: 3388 config.vm.network :forwarded\_port, guest: 5985, host: 5985, id: “winrm”, auto\_correct: true end

---

<div class="post-metadata">

**Author:** ![binduak](https://talk.openmrs.org/letter_avatar/binduak/32/5_5575768a8748004e209b776fc1b2916d.png) [@binduak](https://talk.openmrs.org/u/binduak)\
**Post date:** [June 15, 2017, 4:55am UTC](https://talk.openmrs.org/t/winrm-not-getting-connected/11860/4 "2017-06-15T04:55:21Z")

</div>

Hi @mansijat, We can help with Vagrant Box issues related to Bahmni. I am afraid we can’t be much help in your case. Try to post your question in winrm/vagrant community channels so that right people will get to know about the issue.
