2022-08-30 05:02:26 +02:00
# Packer templates
2021-12-07 13:49:58 +01:00
2022-08-28 20:56:11 +02:00
This repository holds Packer's VM templates I use. Most (if not all) of them run [AlpineLinux ](https://alpinelinux.org ).
2022-08-30 05:02:26 +02:00
## Dependencies
For [update_iso_checksum.sh ](./update_iso_checksum.sh ) script:
- [hcl2json ](https://github.com/tmccombs/hcl2json )
- [jq ](https://github.com/stedolan/jq ) ([gojq](https://github.com/itchyny/gojq) and [jaq ](https://github.com/01mf02/jaq ) also work)
Other:
- [packer ](https://www.packer.io/ ) (of course)
- [terraform ](https://www.terraform.io/ )
- [make ](https://www.gnu.org/software/make/ ) (for convenience’ sake)
- [qemu ](http://www.qemu.org/ ) + [libvirt ](https://libvirt.org/ )
Note that libvirt plugins (for both Packer and Terraform) do not support modular daemons so running `libvirtd` service is required. Issue filled at < https: // github . com / digitalocean / go-libvirt / issues / 171 > .
2022-08-28 20:56:11 +02:00
## VM boxes
2022-08-30 05:02:26 +02:00
- [alpine-qemu.pkr.hcl ](./alpine-qemu.pkr.hcl ): libvirt-compatible VM on local machine running Alpine edge
```bash
VM_STATE_RUNNING=true make alpine-qemu.pkr.hcl alpine-qemu
```
2022-09-02 16:18:54 +02:00
- [alpine-libvirt.pkr.hcl ](./alpine-libvirt.pkr.hcl ): a variation of `alpine-qemu` box with UEFI and stable APK repository
2022-08-29 06:09:30 +02:00
```bash
2022-09-02 16:18:54 +02:00
make alpine-libvirt.pkr.hcl alpine-libvirt
2022-08-29 06:09:30 +02:00
```
2022-08-28 20:56:11 +02:00
2022-08-30 05:02:26 +02:00
## Acknowledge
- [rgl/alpine-vagrant ](https://github.com/rgl/alpine-vagrant )
2022-08-28 20:56:11 +02:00
## License
MIT