rgl / packer-plugin-windows-update

Packer plugin for installing Windows updates
Mozilla Public License 2.0
305 stars 71 forks source link

Azurerm Windows 2016 datacenter - Search for Windows updates failed with 'Exception from HRESULT: 0x8024402F #52

Closed Marcus-James-Adams closed 4 years ago

Marcus-James-Adams commented 4 years ago

Packer 1.4.3 Base image MS - Windows2016 Datacenter image in azure Builder azurerm


==> Azure-UK-South: Running Windows update... Azure-UK-South: Searching for Windows updates... Azure-UK-South: Waiting for operation to complete (system performance: 2 % cpu; 26 % memory)... Azure-UK-South: Waiting for operation to complete (system performance: 16 % cpu; 96 % memory)... Azure-UK-South: Waiting for operation to complete (system performance: 3 % cpu; 95 % memory)...


same scripts working ok on none azure infrastructure based on other notes i've checked if its using a proxy - none is shown I've also tried disabling windows agent on the vm but still get the same error

rgl commented 4 years ago

FWIW, I have never encountered that problem.

This is what I'm successfully using on on-prem infrastructure to create a windows 2016 base image:

https://github.com/rgl/windows-2016-vagrant/blob/ddefee42f3ff3a434c657afbf908e7817aa639f6/windows-2016-vsphere.json#L58-L90

That memory usage seems pretty high, maybe try to increase it too.

Marcus-James-Adams commented 4 years ago

it works on all other cloud providers and im using it in a few :-) and VirtualBox etc fine - it's just azure that it throws errors. I'll try running it on a box with more memory and see what it gives then

Marcus-James-Adams commented 4 years ago

That's it. It is the memory of the machine, I've been building on similar spec boxes to other clouds but if I move up a size and double the memory in azure it then works. Only MS would make a product that requires now power in their own cloud than it does in others.