joefitzgerald / packer-windows

Windows Packer Templates
MIT License
1.63k stars 1.12k forks source link

Windows 10 continuous reboot #204

Open externl opened 8 years ago

externl commented 8 years ago

Windows 10 sees to be stuck in a continuous reboot. Keep getting the same PowerShell output over and over.

powershell output

Any ideas?

PandaDrunkard commented 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.

After installing OpenSSH, packer will resume to create the box.

gboor commented 7 years ago

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 !

StefanScherer commented 7 years ago

I just encountered the same reboot problem. Update script hangs installing the anniversary update.

bildschirmfoto 2016-11-01 um 09 37 08

Workaround: Use a newer ISO Windows 10 1607 file and run the packer build with Windows Updates.