Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
timeout property not honored by msu_package #9245
Describe the problem
While provisioning a Windows 8.1 x64 vagrant box using packer and the chef-solo provisioner, I am attempting to install the Windows 8.1 Update 1 update using
Looking in the code, it appears the issue is because
The expectation is that setting a
But the link I referenced above is on
Here is the code from the recipe I'm using to install the updates. KB2919442 installs fine and is a prereq for KB2919355, which is the one that times out. That said, the issue doesn't appear to be specific to KB2919355. Any update that takes longer than 600 seconds to install should trigger it. Note that the recipe checks for
Unfortunately, no. In my particular case, Windows 8.1 was a nice-to-have but not a requirement compared to other Windows versions, so we punted for the time being.
One workaround I thought about, but didn't explore, would be to basically recreate
Another one might be forking Chef, making the change and somehow getting Packer to use the fork. I don't know if that is even possible. We ran into another issue where WinRM is super slow on Windows 10 with Packer and the transferring of Chef files to the VM was either timing out or taking forever (literally hours), and the possible solution we talked about was to use Packer's built in HTTP server to get the chef files into the VM rather than relying on the Packer Chef provisioner to do it. That might make using the forked Chef repo possible? Again, haven't explored it.
Yes, it is. That's basically the same boat I was in. I was trying to get VMware guest tools to install under Windows 8.1, which requires four Windows updates, applied in order. Two of them are included in the guest tools installer. It took me a few days to track down the other two. One of them was Windows 8.1 Update 1, which is huge and takes longer than 600 seconds to install.