{"id":46691641,"url":"https://github.com/homestak-iac/packer","last_synced_at":"2026-04-02T00:17:52.649Z","repository":{"id":331566576,"uuid":"1126928532","full_name":"homestak-iac/packer","owner":"homestak-iac","description":"Packer templates for custom Debian cloud images with qemu-guest-agent","archived":false,"fork":false,"pushed_at":"2026-03-20T23:32:29.000Z","size":159,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-03-21T14:45:49.207Z","etag":null,"topics":["cloud-images","debian","homelab","infrastructure-as-code","packer","proxmox"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/homestak-iac.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","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":"2026-01-02T20:49:03.000Z","updated_at":"2026-03-20T23:32:33.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/homestak-iac/packer","commit_stats":null,"previous_names":["homestak-dev/packer","homestak-iac/packer"],"tags_count":51,"template":false,"template_full_name":null,"purl":"pkg:github/homestak-iac/packer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/homestak-iac%2Fpacker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/homestak-iac%2Fpacker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/homestak-iac%2Fpacker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/homestak-iac%2Fpacker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/homestak-iac","download_url":"https://codeload.github.com/homestak-iac/packer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/homestak-iac%2Fpacker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31293339,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-01T21:15:39.731Z","status":"ssl_error","status_checked_at":"2026-04-01T21:15:34.046Z","response_time":53,"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":["cloud-images","debian","homelab","infrastructure-as-code","packer","proxmox"],"created_at":"2026-03-09T04:08:50.758Z","updated_at":"2026-04-02T00:17:52.640Z","avatar_url":"https://github.com/homestak-iac.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# packer\n\nBuild custom Debian cloud images with pre-installed packages for faster VM boot times.\n\nPart of the [homestak-dev](https://github.com/homestak-dev) organization.\n\n## Quick Start\n\n```bash\n./build.sh              # Interactive build menu\n./build.sh debian-12    # Build specific template\n./publish.sh            # Copy images to Proxmox storage\n```\n\n## Features\n\n- **Pre-installed qemu-guest-agent** - ~16s boot vs ~35s with cloud-init install\n- **Blacklisted modules** - No unnecessary drivers (wireless, floppy, joystick, etc.)\n- **Smart caching** - Skips rebuild when template and source image are unchanged\n- **Smart publish** - Checksum-based copy skips unchanged images\n- **lae.proxmox compatible** - grub-pc pre-configured for non-interactive kernel removal\n\n## Available Templates\n\n| Template | Image Size (compressed) | Boot Time | Build Time | Purpose |\n|----------|------------------------|-----------|------------|---------|\n| `debian-12` | ~780 MB | ~16s | ~2 min | Base Debian 12 with qemu-guest-agent |\n| `debian-13` | ~590 MB | ~16s | ~1.5 min | Base Debian 13 with qemu-guest-agent |\n| `pve-9` | ~3.4 GB | ~16s | ~15-20 min | PVE-ready with pre-installed packages |\n\n## Project Structure\n\n```\npacker/\n├── build.sh              # Interactive build script (caching, checksums)\n├── publish.sh            # Checksum-based copy to Proxmox storage\n├── checksums.sh          # Generate/verify SHA256 checksums\n├── templates/            # Per-template directories\n│   ├── debian-12/\n│   │   ├── template.pkr.hcl\n│   │   └── cleanup.sh\n│   ├── debian-13/\n│   │   ├── template.pkr.hcl\n│   │   └── cleanup.sh\n│   └── pve-9/\n│       ├── template.pkr.hcl\n│       └── cleanup.sh\n├── shared/               # Shared resources across templates\n│   ├── cloud-init/       # Build-time cloud-init config\n│   └── scripts/          # Shared cleanup and detection scripts\n├── images/               # Built .qcow2 images (git-ignored)\n├── cache/                # Downloaded base images (git-ignored)\n└── logs/                 # Build logs with timestamps\n```\n\n## Workflow\n\n```\ntemplates/{name}/template.pkr.hcl\n    ↓ ./build.sh\nimages/{name}/{name}.qcow2\n    ↓ ./publish.sh (qemu-img convert)\n/var/lib/vz/template/iso/{name}.img\n    ↓ iac-driver provisions VMs\nVMs boot in ~16s (vs ~35s with generic cloud images)\n```\n\n## Module Blacklist\n\nImages exclude unnecessary kernel modules for headless VMs:\n\n- `cfg80211` - Wireless networking\n- `floppy` - Floppy disk driver\n- `joydev` - Joystick device\n- `psmouse` - PS/2 mouse\n- `pcspkr` - PC speaker\n\n## Prerequisites\n\n- **Packer 1.7+** from HashiCorp (Debian's 1.6.x doesn't support HCL2 `required_plugins`)\n- KVM/QEMU with nested virtualization\n- User in `kvm` group (`sudo usermod -aG kvm $USER`)\n\nSSH keys are generated automatically per-build. To use an existing key: `SSH_KEY_FILE=~/.ssh/id_rsa ./build.sh`\n\n## Releases\n\nPre-built images are available on the [`latest` GitHub Release](https://github.com/homestak-iac/packer/releases/tag/latest).\n\n**Download via homestak CLI:**\n```bash\nhomestak images download all --publish   # Download and install all images\n```\n\n**Or manually:**\n```bash\ngh release download latest --repo homestak-iac/packer --pattern '*.qcow2'\n```\n\n## Third-Party Acknowledgments\n\n| Dependency | Purpose | License |\n|------------|---------|---------|\n| [hashicorp/qemu](https://github.com/hashicorp/packer-plugin-qemu) | QEMU builder plugin for Packer | MPL-2.0 |\n\n## Related Repos\n\n| Repo | Purpose |\n|------|---------|\n| [bootstrap](https://github.com/homestak/bootstrap) | Entry point - curl\\|bash setup |\n| [config](https://github.com/homestak/config) | Site-specific secrets and configuration |\n| [ansible](https://github.com/homestak-iac/ansible) | Proxmox host configuration |\n| [iac-driver](https://github.com/homestak-iac/iac-driver) | Orchestration engine (builds images, provisions VMs) |\n\n## License\n\nApache 2.0 - see [LICENSE](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhomestak-iac%2Fpacker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhomestak-iac%2Fpacker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhomestak-iac%2Fpacker/lists"}