Open externl opened 8 years ago
I have same problem with Windows 10 Enterprise Edition.
I'm not sure about what causes this, but It looks like that Restart-Computer
does not start installing major update :(
My solution at this point is doing that manually.
headless
to off
in jsonwin-updates.ps1
once it starts to apply 1511HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
openssh.ps1
to install OpenSSHAfter installing OpenSSH, packer will resume to create the box.
I ran into the same problem with a newer version (16xx something). I first upped the SSH wait time from 2h to 20h in the json file, thinking that might solve it. Eventually I found this post and followed @PandaDrunkard's instructions to get Windows installed.
Few things worth mentioning is that, if you follow these instructions, the openssh.ps1 is located on a:\ and after running that script, you need to manually run Start-Service OpenSSHd, as it will not auto-start. Also note that in order to properly execute openssh.ps1, you need to start PowerShell as an administrator.
Thanks for the tips, @PandaDrunkard !
I just encountered the same reboot problem. Update script hangs installing the anniversary update.
Workaround: Use a newer ISO Windows 10 1607 file and run the packer build with Windows Updates.
Windows 10 sees to be stuck in a continuous reboot. Keep getting the same PowerShell output over and over.
Any ideas?