I finished the packer-vyos builder: https://github.com/robertoberto/packer-vyos
It runs in two stages:
- vyos-image1.pkr.hcl: Uses
vyos.iso
as the source and buildsvyos.qcow2
as the output. It installs using the VyOS installer. - vyos-image2.pkr.hcl: Boots using the previous
vyos.qcow2
and customizes the VyOS image.
Some features:
cloud-init
apt install
- GRUB serial configuration
qemu-guest-agent
installation- Custom VyOS configuration
I am currently testing and cleaning up the build. You can preview it now.
My setup:
- Images built and tested on Proxmox
- Builder using a VM running Ubuntu 24 with
cpu=host
- VyOS used for testing: LTS VyOS 1.3.6 (should work with 1.4.0)
- Packer builder: QEMU
Feel free to check it out and provide feedback!