Problem:
When I create a domain controller using a chef-solo config it runs
perfectly fine till the machine reboots at the end. After this point
vagrant can't authenticate with winrm any more. And I get a message like
the following:
==> default: Detecting if a remote PowerShell connection can be made with
the guest...
Unable to establish a remote PowerShell connection with the guest.
Check if the firewall rules on the guest allow connections to the
Windows remote management service.
Software versions:
Vagrant 1.8.1
Vagrant-vmware-workstation (4.0.6).
VMWare Workstation Pro - 12.1.0 build-3272444
Windows 10
My vagrantfile:
Vagrant.configure(2) do |config|
config.vm.box = "Windows2012R2x64"
#This fixes an issue with chef solo provisioner where it can't resolve
omitruck.chef.io the first time.
config.vm.provision "shell", inline: "Resolve-DnsName omnitruck.chef.io |
out-null"
config.vm.provision :chef_solo do |chef|
chef.add_recipe "domain"
chef.cookbooks_path = "cookbooks"
end
end
I have been able to connect to the virtual machine manually via powershell
and mstc. However if I try them from vagrant they fail with the above
message.
Is there a way to change credentials after the chef_solo provisioner runs?
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vagrant-up/e7242c9f-67df-434e-9460-ffd21e08c90f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.