-
Notifications
You must be signed in to change notification settings - Fork 71
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
Windows 2022 Updates Installed... But Server Doesn't Think They Are #115
Comments
@gregorywmoore I'm having this issue now, but with Windows Server 2019. The Packer logs show the windows updates as being found and installed. But when I create a VM from this template, the updates still show pending. Did you figure anything out with your problem? |
I have not seen this issue using the Windows update provisioner on 2019. The thing that I discovered on my Win 2022 issue is that the updates were in fact installed, but the OS just didn't realize they were installed. They showed pending. If you clicked Install, they wouldn't actually install, they would just immediately transition to installed. If I didn't do anything and just let a deployed system sit for a couple or few hours, it would eventually figure out on its own that that updates were installed and would no longer say that there were pending updates. Sorry, I know that probably isn't much help. I racked my brain on it, never got any further, and have just been living with it on 2022. provisioner "windows-update" { |
Yes I have the same experience on Windows 11 multi-session. Updates are installed correctly during the build and Window Update just needs a new sync to realise. |
I thought this was just me. I originally used PSWindowsUpdate in my template but noticed that while the updates get detected and installed during the build, the VM created from the image still reports things like dotNET and a Server CU. So I changed the Windows Updates task to use the packer plugin, but the same thing happens. In Azure, I use the latest SKU, so I know that image has the most recent monthly CU. My Server 2022 build won't show me the latest CU, but Server 2019 will after the image is built. I also notice that in winver, the OS build number matches what the latest CU is...so it's strange. Packer says its installed, Windows says no. On-Prem, since I'm using an untouched ISO, I see that it will download the latest CU's during the updates phase, install them and continue on. But just like Azure, when I spin up a VM, I'm told there are updates available. I might have a look at adding a step in my packer sequence to call up wuauclt /detectnow /updatenow and see how that does/does not impact Windows acknowledging the updates are installed. |
Any update on that, I have the same issue |
I am seeing a strange issue with the 'windows-update' plugin 0.14.1 and Packer 1.8.0.
The issue occurs with the Azure Marketplace Windows 2022 DataCenter ... 2016 and 2019 DataCenter do not exhibit the issue.
I am calling the 'windows-update' provisioner and just taking the defaults:
The plug-in identifies patches, installs them, handles any needed reboots, and everything appears to be good.
But when a VM is provisioned from the image created during the Packer build, on first boot I am immediately prompted that Updates Are Available.
Performing a "Check for Updates" shows that the same updates that were installed during the Packer image build are Pending Install.
If I click 'Install Updates', it is like the system realizes at that point that they are already installed, and they immediately transition to Installed.
I had opened a call with Microsoft and didn't get very far with them.
They had me check numerous log files and perform checks for updates using different methods, and ultimately stated that the updates were being installed correctly and there were no outstanding updates.
I just want to avoid releasing an image for production that is falsely calling for updates that are already installed.
Anyone encounter this, or know of any commands that I can integrate into the Packer build process that can make the server realize that the patches it says are pending install are already there and installed?
I have tried executing the windows-update provisioner twice, and even put a windows-restart provisioner in between them to no avail.
Any recommendations appreciated.
The text was updated successfully, but these errors were encountered: