Skip to content
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-update works intermittently #116

Open
barry7evans opened this issue Oct 6, 2022 · 0 comments
Open

windows-update works intermittently #116

barry7evans opened this issue Oct 6, 2022 · 0 comments

Comments

@barry7evans
Copy link

First of all, thank you for maintaining this plugin.
I'm having an issue with Windows Server 2019, where the updates only work some of the time
When they don't work, I am not getting an error. I just see the following:

==> vsphere-iso.WinServer19: Uploading the Windows update elevated script...
==> vsphere-iso.WinServer19: Uploading the Windows update check for reboot required elevated script...
==> vsphere-iso.WinServer19: Uploading the Windows update script...
==> vsphere-iso.WinServer19: Running Windows update...
==> vsphere-iso.WinServer19: Shutting down VM...

I am defining the plug-in, like:

packer {
required_plugins {
windows-update = {
version = "0.14.1"
source = "github.com/rgl/windows-update"
}
}
}

...and then running it by using:

provisioner "windows-update" {
search_criteria = "IsInstalled=0"
filters = [
"include:$true",
]
update_limit = 25
}

I have run my script a number of times sequentially and there seems to be about a 50% success rate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant