Issue in ‘Winrm’ while ‘Vagrant Provision’

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Issue in ‘Winrm’ while ‘Vagrant Provision’

Mayank Suthar

I am beginner at Vagrant and created windows base box which is completely installed.

For creating windows box i referred link 'http://huestones.co.uk/node/305'.

'vagrant up' cmd is completely running.

But, while provisioning vagrant for any string to print or any script to run from Vagrant file, it is showing error “WinrmAuthorizationError”,which suggests that winrm is not actually getting connected to Vagrant.


Pls find the attached error snapshot.


Waiting for positive answer.


Thanking you in advance.


Regards,

Mayank

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/df856069-b543-426f-a1c4-3c8bc9d9b8aa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Untitled.jpg (20K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Issue in ‘Winrm’ while ‘Vagrant Provision’

Alvaro Miranda Aguilera
Whats your Vagrantfile ?

On Tue, Jun 13, 2017 at 7:53 AM, Mayank Suthar <[hidden email]> wrote:

I am beginner at Vagrant and created windows base box which is completely installed.

For creating windows box i referred link 'http://huestones.co.uk/node/305'.

'vagrant up' cmd is completely running.

But, while provisioning vagrant for any string to print or any script to run from Vagrant file, it is showing error “WinrmAuthorizationError”,which suggests that winrm is not actually getting connected to Vagrant.


Pls find the attached error snapshot.


Waiting for positive answer.


Thanking you in advance.


Regards,

Mayank

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/df856069-b543-426f-a1c4-3c8bc9d9b8aa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Alvaro

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/CAHqq0ez6UXSC0-ora-i%2BuavEPCpgbBdnpa0WBskGVrgX6oSkMQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Issue in ‘Winrm’ while ‘Vagrant Provision’

Mayank Suthar
In reply to this post by Mayank Suthar
Kindly find the attached Vagrantfile for your reference.

Thank you.

On Tuesday, 13 June 2017 12:23:35 UTC+5:30, Mayank Suthar wrote:

I am beginner at Vagrant and created windows base box which is completely installed.

For creating windows box i referred link '<a href="http://huestones.co.uk/node/305" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fhuestones.co.uk%2Fnode%2F305\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFbVltG2QdWAwmUr5ocy0loWnYHFA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fhuestones.co.uk%2Fnode%2F305\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFbVltG2QdWAwmUr5ocy0loWnYHFA&#39;;return true;">http://huestones.co.uk/node/305'.

'vagrant up' cmd is completely running.

But, while provisioning vagrant for any string to print or any script to run from Vagrant file, it is showing error “WinrmAuthorizationError”,which suggests that winrm is not actually getting connected to Vagrant.


Pls find the attached error snapshot.


Waiting for positive answer.


Thanking you in advance.


Regards,

Mayank

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/77b94972-15f3-4948-ae0b-babf05bcb61d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Issue in ‘Winrm’ while ‘Vagrant Provision’

Alvaro Miranda Aguilera
hi

no attachment.

Alvaro.

On Tue, Jun 13, 2017 at 11:47 AM, Mayank Suthar <[hidden email]> wrote:
Kindly find the attached Vagrantfile for your reference.

Thank you.

On Tuesday, 13 June 2017 12:23:35 UTC+5:30, Mayank Suthar wrote:

I am beginner at Vagrant and created windows base box which is completely installed.

For creating windows box i referred link 'http://huestones.co.uk/node/305'.

'vagrant up' cmd is completely running.

But, while provisioning vagrant for any string to print or any script to run from Vagrant file, it is showing error “WinrmAuthorizationError”,which suggests that winrm is not actually getting connected to Vagrant.


Pls find the attached error snapshot.


Waiting for positive answer.


Thanking you in advance.


Regards,

Mayank

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/77b94972-15f3-4948-ae0b-babf05bcb61d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Alvaro

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/CAHqq0exTWDkJHUnUq6gxZba5Dv3GurX%2BwxfWN8kcq3rcddy17Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Issue in ‘Winrm’ while ‘Vagrant Provision’

Mayank Suthar
Hi,

Please find the below content  as Vagrantfile.


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


On Wednesday, 14 June 2017 00:05:06 UTC+5:30, Alvaro Miranda Aguilera wrote:
hi

no attachment.

Alvaro.

On Tue, Jun 13, 2017 at 11:47 AM, Mayank Suthar <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="uy7wB0csAwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">m.is....@...> wrote:
Kindly find the attached Vagrantfile for your reference.

Thank you.

On Tuesday, 13 June 2017 12:23:35 UTC+5:30, Mayank Suthar wrote:

I am beginner at Vagrant and created windows base box which is completely installed.

For creating windows box i referred link '<a href="http://huestones.co.uk/node/305" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fhuestones.co.uk%2Fnode%2F305\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFbVltG2QdWAwmUr5ocy0loWnYHFA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fhuestones.co.uk%2Fnode%2F305\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFbVltG2QdWAwmUr5ocy0loWnYHFA&#39;;return true;">http://huestones.co.uk/node/305'.

'vagrant up' cmd is completely running.

But, while provisioning vagrant for any string to print or any script to run from Vagrant file, it is showing error “WinrmAuthorizationError”,which suggests that winrm is not actually getting connected to Vagrant.


Pls find the attached error snapshot.


Waiting for positive answer.


Thanking you in advance.


Regards,

Mayank

--
This mailing list is governed under the HashiCorp Community Guidelines - <a href="https://www.hashicorp.com/community-guidelines.html" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.hashicorp.com%2Fcommunity-guidelines.html\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGHa_CaKfZaJiwbkUndUQbVGlQCDw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.hashicorp.com%2Fcommunity-guidelines.html\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGHa_CaKfZaJiwbkUndUQbVGlQCDw&#39;;return true;">https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: <a href="https://github.com/mitchellh/vagrant/issues" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmitchellh%2Fvagrant%2Fissues\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHxcA5DuHlQlPInMi_k1Pz4pMNqNw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmitchellh%2Fvagrant%2Fissues\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHxcA5DuHlQlPInMi_k1Pz4pMNqNw&#39;;return true;">https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="uy7wB0csAwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">vagrant-up+...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/vagrant-up/77b94972-15f3-4948-ae0b-babf05bcb61d%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/vagrant-up/77b94972-15f3-4948-ae0b-babf05bcb61d%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/vagrant-up/77b94972-15f3-4948-ae0b-babf05bcb61d%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/vagrant-up/77b94972-15f3-4948-ae0b-babf05bcb61d%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.



--
Alvaro

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/e5cae771-3a49-4011-bdf1-e0fac3f60198%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Vagrantfile (4K) Download Attachment