Skip to content

feat(vyos): migrate image build from Packer to vyos-build#35

Merged
jmgilman merged 9 commits intomasterfrom
joshuagilman/hom-23-migrate-vyos-image-build-from-packer-to-custom-vyos-build
Dec 20, 2025
Merged

feat(vyos): migrate image build from Packer to vyos-build#35
jmgilman merged 9 commits intomasterfrom
joshuagilman/hom-23-migrate-vyos-image-build-from-packer-to-custom-vyos-build

Conversation

@jmgilman
Copy link
Collaborator

Summary

  • Replaces the Packer-based VyOS image build with the official vyos-build toolchain
  • New build uses Docker container (vyos/vyos-build:current) with TOML build flavors
  • SSH credentials and full gateway configuration baked directly into image via default_config
  • Updates all architecture documentation to reference the new vyos-build flow

Changes

New Files

  • infrastructure/network/vyos/vyos-build/ - Build flavor, scripts, and documentation
  • .github/workflows/vyos-build.yml - New CI workflow for building VyOS images

Modified Files

  • .github/workflows/packer-vyos.yml - Marked as deprecated
  • bootstrap/genesis/scripts/build-vyos-image.sh - Rewritten for vyos-build
  • Architecture docs updated to reference vyos-build instead of Packer

Test plan

  • Verify vyos-build workflow triggers on workflow_dispatch
  • Confirm generated flavor template contains valid VyOS config syntax
  • Test local build with bootstrap/genesis/scripts/build-vyos-image.sh

Closes HOM-23

🤖 Generated with Claude Code

jmgilman and others added 3 commits December 19, 2025 23:17
Replace the Packer-based VyOS image build with the official vyos-build
toolchain. This approach bakes the gateway configuration directly into
the image via build flavors, eliminating the need for KVM/QEMU nested
virtualization and brittle keystroke automation.

New files:
- vyos-build/build-flavors/gateway.toml: Build flavor with config
- vyos-build/scripts/generate-flavor.sh: Injects SSH credentials
- vyos-build/scripts/build.sh: Container build orchestration
- .github/workflows/vyos-build.yml: New CI workflow

The Packer workflow is deprecated but preserved for reference.

Closes HOM-23

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Updates all architecture documentation and bootstrap scripts to
reflect the migration from Packer to the vyos-build toolchain for
VyOS gateway image creation.

- B_bootstrap_procedure.md: Updated prerequisites, workflow steps
- 06_runtime_view.md: Updated VyOS image source reference
- 07_deployment_view.md: Updated deployment method reference
- 02_tinkerbell_provisioning.md: Updated provisioning description
- 007_image_pipeline_s3_intermediary.md: Updated ADR context
- build-vyos-image.sh: Rewrote to use Docker-based vyos-build

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Updates runbook and script descriptions in the directory tree
to reference vyos-build instead of Packer.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@linear
Copy link

linear bot commented Dec 20, 2025

jmgilman and others added 6 commits December 20, 2025 08:09
- Fix permission denied errors when finding .raw output file
- Search in vyos-build root directory first (where build-vyos-image places it)
- Add better debugging output for troubleshooting
- Remove temporary PR trigger used for testing

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Remove all Packer-based VyOS image build code now that vyos-build
toolchain is fully implemented and tested. This includes deleting
the packer directory, workflow, and updating all documentation
references to reflect the new build approach.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@jmgilman jmgilman merged commit 58775fa into master Dec 20, 2025
4 checks passed
@jmgilman jmgilman deleted the joshuagilman/hom-23-migrate-vyos-image-build-from-packer-to-custom-vyos-build branch December 20, 2025 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant