I have successfully build 2016 boxes previously, but now I am always having the issue that module 'xCertificateImport' cannot be found when it runs the vbox_guest_additions recipe. if I remote in and quickly add it, it then works, but fails on the next powershell module required (xFirewall from memory)
Can't for the life of me work this out, the logs s uggest the xCertificate module was correctly installed by install_ps_modules.
I tried explicitly adding the module to the dsc_resource block:
I just ran into this too. My hunch is that its a bug in a recent version of chef but to quickly workaround it I changed the guest additions recipie to not use DSC.
host os: Windows 10 iso: en_windows_server_2016_x64_dvd_9327751 (with product key added) packer: 0.12.2 vagrant: 1.9.1 virtualbox 5.1.18
I have successfully build 2016 boxes previously, but now I am always having the issue that module 'xCertificateImport' cannot be found when it runs the vbox_guest_additions recipe. if I remote in and quickly add it, it then works, but fails on the next powershell module required (xFirewall from memory)
Can't for the life of me work this out, the logs s uggest the xCertificate module was correctly installed by install_ps_modules.
I tried explicitly adding the module to the dsc_resource block:
it fails slightly differently but still complaining about xCertificateImport not being found.
Logs below: