StefanScherer / packer-windows

Windows Templates for Packer: Windows 11, Windows 10, Windows Server 2022, 2019, 2016, also with Docker
MIT License
1.28k stars 430 forks source link

Waiting for WinRM to become available (again) #330

Closed LazyBrush closed 1 year ago

LazyBrush commented 1 year ago

Hi,

Similar to Issue https://github.com/StefanScherer/packer-windows/issues/250. The recommendation for that issue is be patient, and there are windows updates happening which can take some time.

But when I look on VirtualBox Activity Overview, I see no network traffic or disk IO. So it is difficult for me to see that there is Windows Updates happening.

For me the setup stops at this point, see image. And with the below line.

After 2 hours of this nothingness, I give up.

==> virtualbox-iso: Waiting for WinRM to become available...

Screenshot 2023-06-01 at 11 44 08

Screenshot 2023-06-01 at 11 47 06

It feels like the auto unattend magic isn't happening.

Can you point me in the direction of how you develop the unattended scripts?

How can you verify that the updates are happening?

Thanks Again!

LazyBrush commented 1 year ago

For those hitting this, perhaps like me, some more info and I'll close this ticket.

Perhaps I had a newer version of Windows 10 iso, or perhaps I had an international version and not the en-US version. Either way the answer file did not work and hung at the above.

I ran up a Windows Server 2019 successfully, and saw both the terminal scripts running and network activity when there was updates done.

Back to Windows 10...

Windows has a tool, Windows System Image Manager that you can use to make a new answer file. A very boring process using lots of mouse clicks, you can see some example config here between the adverts https://www.windowscentral.com/how-create-unattended-media-do-automated-installation-windows-10

With a different answer file, I got passed this point. I think the process is, click around the Windows SIM tool, save an answer file, test it, repeat.

LazyBrush commented 1 year ago

Close