Running packer build on windows-2022.pkr.hcl #9030
-
|
Hey all, We would like to use packer to build the windows-2022 image from windows-2022.pkr.hcl. We made some minor modifications to the file to publish the image to a shared image gallery in Azure and the build appears to run fine until we hit the Miniconda issue below. It is unable to find the checksum and fails the build. Any suggestions on how we might fix this?
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
Hey @michaelmowry! |
Beta Was this translation helpful? Give feedback.
-
|
Hi there, This issue usually happens because the Miniconda installer’s filename or checksum has changed on the Anaconda side, and the script can’t match it. You can work around it by manually specifying the expected checksum in your script, or by updating the URL to a specific (non‑latest) version. For a more reliable Windows + Packer setup, feel free to check out winpkr for pc, it covers building and customizing Windows images with Packer, including workarounds for checksum failures like this. Hope that helps move you forward. |
Beta Was this translation helpful? Give feedback.
Hey @michaelmowry!
I assume that you are using a release branch or an outdated version of the main one to build. Using the latest version of the main branch of the repository to build will solve the problem.