2022-09-30 14:27:46 +02:00
# Packer for Alpine (Virt) GNS3 appliance
2023-10-15 01:11:40 +02:00
This is the bare version of `Alpine Linux` installed from iso, no extra package added. From `v3.18.4` , the image file goes from 100MB to 200MB, and is using `qcow2` format to allow compression.
2022-09-30 14:27:46 +02:00
2023-10-15 01:11:40 +02:00
Build in 1m14s on `macOS Monterey` .
2022-09-30 14:27:46 +02:00
2022-10-03 22:07:44 +02:00
### Linux (tested)
2022-09-30 14:27:46 +02:00
```bash
packer build alpine.json
```
2022-10-03 22:07:44 +02:00
> :information_source: Uses `kvm` QEMU accelerator.
2022-09-30 14:27:46 +02:00
### macOS (tested)
```bash
packer build -var-file macos.json alpine.json
```
2022-10-03 22:07:44 +02:00
> :information_source: Uses `hvf` QEMU accelerator. `Packer` will fail on `macOS` without `hvf` (timing issue).
2023-10-15 01:11:40 +02:00
See:
- https://wiki.alpinelinux.org/wiki/Alpine_setup_scripts#setup -disk
- https://wiki.alpinelinux.org/wiki/Enable_Serial_Console_on_Boot#Example_ .2Fboot.2Fextlinux.conf
- https://wiki.alpinelinux.org/wiki/Install_to_disk
- https://www.packer.io/plugins/builders/qemu