{"id":39257180,"url":"https://github.com/ccdc-opensource/packer-ccdc-basebox-windows","last_synced_at":"2026-01-18T00:18:23.981Z","repository":{"id":45067149,"uuid":"356371761","full_name":"ccdc-opensource/packer-ccdc-basebox-windows","owner":"ccdc-opensource","description":null,"archived":false,"fork":false,"pushed_at":"2026-01-16T17:37:48.000Z","size":280,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-17T03:39:57.764Z","etag":null,"topics":["basebox","build-systems","packer"],"latest_commit_sha":null,"homepage":null,"language":"HCL","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ccdc-opensource.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-04-09T18:59:08.000Z","updated_at":"2025-12-16T22:52:11.000Z","dependencies_parsed_at":"2025-05-13T23:23:05.713Z","dependency_job_id":"d1337e41-7936-4cdb-8f04-b817a23880d2","html_url":"https://github.com/ccdc-opensource/packer-ccdc-basebox-windows","commit_stats":null,"previous_names":["ccdc-opensource/packer-ccdc-basebox-windows","ccdc-opensource/packer-ccdc-basebox-windows-server-2019"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ccdc-opensource/packer-ccdc-basebox-windows","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ccdc-opensource%2Fpacker-ccdc-basebox-windows","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ccdc-opensource%2Fpacker-ccdc-basebox-windows/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ccdc-opensource%2Fpacker-ccdc-basebox-windows/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ccdc-opensource%2Fpacker-ccdc-basebox-windows/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ccdc-opensource","download_url":"https://codeload.github.com/ccdc-opensource/packer-ccdc-basebox-windows/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ccdc-opensource%2Fpacker-ccdc-basebox-windows/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28523625,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T23:53:28.710Z","status":"ssl_error","status_checked_at":"2026-01-17T23:52:20.131Z","response_time":85,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["basebox","build-systems","packer"],"created_at":"2026-01-18T00:18:22.571Z","updated_at":"2026-01-18T00:18:23.963Z","avatar_url":"https://github.com/ccdc-opensource.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Packer configuration for Windows base boxes\n\nThis repository contains a number of HashiCorp Configuration Language files specifying builds\nfor Vagrant boxes based on different versions of Windows, to be used as base boxes for e.g.\nbuild machines or other infrastructure VMs.\n\nThere is also a Windows unattended installation Answer File for each of these versions with a\nminimal setup - most of the provisioning is done via Ansible roles. Generally the only thing\nthe answer files do is set up WinRM so that Ansible can connect.\n\n## How to build\n\n```\npacker build -on-error=abort windows-10-21h2.pkr.hcl\n```\n\n## How to build Hyper-V images\n\nBuilding Hyper-V images is somewhat more complex because it only works on Windows; however Ansible\n(which is used to provision the base system) does not work natively on Windows. There are a few\nprerequisites for building Hyper-V images:\n\n* Hyper-V enabled (`Enable-WindowsOptionalFeature Microsoft.Hyper-V`)\n* WSL installed with an Ubuntu distribution set up\n* Your user SSH keys set up in Ubuntu WSL (in order to get the provisioning Ansible roles)\n* Ansible installed to Ubuntu system Python (`sudo apt update; sudo apt install python3-pip; sudo pip3 install ansible`)\n* mkisofs installed to WSL Ubuntu (`sudo apt update; sudo apt install genisoimage`)\n\n## Detailed build information\n\nThe full process, end-to-end, will perform the following steps:\n\n- `[Packer]` Create and boot a VM for the specified Windows version\n- `[Packer]` Mount the `autounattend.xml` file for the Windows installer to read\n- `[Windows installer]` Set up Windows according to `autounattend.xml`\n  - WinRM is configured in the `autounattend.xml` file - if Packer fails to connect after Windows\n    has finished installing, then the answer file has not correctly set up WinRM\n- `[Packer]` Run Ansible with the playbook in `ansible-provisioning/playbook.yml` against the VM\n- `[Ansible]` Set up the VM for use as a Vagrant base box\n  - [Provision CCDC-specific Vagrant base box options](https://github.com/ccdc-confidential/ansible-role-vagrant-base-box)\n  - [Install VM guest tools as appropriate](https://github.com/ccdc-confidential/ansible-role-vm-tools)\n  - [Debloat Windows](https://github.com/ccdc-confidential/ansible-role-debloat-windows)\n  - [Compact the VM image for export](https://github.com/ccdc-confidential/ansible-role-compact-vm-image)\n- `[Packer]` Export the VM to Vagrant box format\n- `[Packer]` Upload the finished Vagrant box to Artifactory\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fccdc-opensource%2Fpacker-ccdc-basebox-windows","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fccdc-opensource%2Fpacker-ccdc-basebox-windows","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fccdc-opensource%2Fpacker-ccdc-basebox-windows/lists"}