Issue in ‘Winrm’ while ‘Vagrant Provision’

26 views
Skip to first unread message

Mayank Suthar

unread,
Jun 13, 2017, 2:53:35 AM6/13/17
to Vagrant

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

Untitled.jpg

Alvaro Miranda Aguilera

unread,
Jun 13, 2017, 3:33:42 AM6/13/17
to vagra...@googlegroups.com
Whats your Vagrantfile ?

--
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 vagrant-up+unsubscribe@googlegroups.com.
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

Mayank Suthar

unread,
Jun 13, 2017, 5:47:44 AM6/13/17
to Vagrant
Kindly find the attached Vagrantfile for your reference.

Thank you.

Alvaro Miranda Aguilera

unread,
Jun 13, 2017, 2:35:06 PM6/13/17
to vagra...@googlegroups.com
hi

no attachment.

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 vagrant-up+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Alvaro

Mayank Suthar

unread,
Jun 15, 2017, 3:26:03 AM6/15/17
to Vagrant
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 <m.is....@gmail.com> 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 vagrant-up+...@googlegroups.com.



--
Alvaro

Vagrantfile
Reply all
Reply to author
Forward
0 new messages