-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue building Windows 11 images on Microsoft Azure (while not having no issue with other Windows versions) #345
Comments
Hi @tdefise thanks for opening up this issue. In order for us to best assist could you provide details on what is not working and if possible a log of the build. You can generate a log by setting the environment variable |
Hi @nywilken Thanks for the instruction. |
Hi @nywilken, I added this variable and launched packer using the "-debug" flag. I will retry with "PACKER_LOG=1" only |
Here is the output I get when doing the sysprep
|
Hi @tdefise thanks for updating the issue with the debug logs. Looking at the logs it appears that Packer is unable to connect to the Azure instance after the sysprep step. This is indicated by the logs entries copied below.
In the Azure portal, what is the state of the instance after running the sysprep command? I suspect that if the same template works for previous Windows versions that there may be a difference in behavior for Windows 11 and sysprep. We had a similar issue open on Packer hashicorp/packer#12663 for Windows 2022, where the sysprep was terminating the WinRM service. To determine if it is the sysprep command I recommend removing the sysprep command to see if Packer exits correctly. If it does then I would check if sysprep is disabling WinRM or if there is something preventing it from rebooting properly. Running a quick search for Azure, Windows 11, stuck after sysprep I found this post on the Windows forums. |
Since we've been waiting for a reply on this one for about 6 months I will close it, please re-open it if you have any further questions |
Community Note
Overview of the Issue
Unable to create Windows 11 using Packer on Microsoft Azure, while being able to create Windows 10, Windows Server 2019 and Windows Server 2022.
Reproduction Steps
Packer version
1.9.4
Simplified Packer Template
Operating system and Environment details
Log Fragments and crash.log files
None
The text was updated successfully, but these errors were encountered: