I've increased the retry_limit from 60 to 200, added a reload after 
provisioning and then a 1 minute sleep to allow the DC to settle, avoiding 
"InitializeDefaultDrives operation on the 'ActiveDirectory' provider 
failed" or "Server instance not found on the given port.". Resulting 
Vagranfile snippet

      override.winrm.retry_limit = 200
      override.winrm.retry_delay = 10
      override.vm.synced_folder "../.provision", "/.provision"
      override.vm.provision 'shell', path: 
'./automation/remote/capabilities.ps1'
      override.vm.provision 'shell', path: 
'./automation/provisioning/setStaticIP.ps1', args: '172.16.17.102'
      override.vm.provision 'shell', path: 
'./automation/provisioning/newForest.ps1', args: 'sky.net 
hUspefRuKapaga6P8Reh c:\.provision\w2k12R2.wim 2'

-- 
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/e85b1080-84cf-4b3e-a7b7-79f0e29ff3fd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to