I couldn't figure out why the WinRM communicator was *agonizingly* slow to 
my Windows 8.1 VM.  I think I may finally have nailed it:

Turns out, it's the recurrence of a good ol' Powershell issue from back in 
the v1 days.

The Win 8.1 install doesn't seem to (or maybe, doesn't have time to?) run 
the scheduled task that "NGEN"s all the GAC assemblies.  This is needed to 
speed up launching .NET assemblies.

Thanks to this stack overflow thread 
<http://stackoverflow.com/questions/4208694/how-to-speed-up-startup-of-powershell-in-the-4-0-environment>
 
and this clever powershell function 
<http://www.geoffhudik.com/tech/2011/10/11/start-scheduled-task-and-wait-on-completion-with-powershell.html>,
 
I have now added this task to my initial Packer deployment.  So by the time 
I'm running Vagrant provisioners, the WinRM communication is no longer 
painfully awful.

I just now got all this working, so I'm only about ~75% sure this was the 
actual issue (the speed seems to vary).  But I'm putting this post out into 
the world in case it can help other searchers.

-- 
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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to