Skip to content

HashiCorp Packer Template for building an ARM64 Vagrant Base Box of Debian 12 (bookworm) - built on macOS M3 (Apple Silicon).

Notifications You must be signed in to change notification settings

aphorise/hashicorp.packer-arm64-debian12-bookworm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

HashiCrop packer Template of Arm64 Debian 12 (bookworm)

This repo contains a packer template for building an ARM64 Vagrant Base Box of Debian 12.5.0 (aka Bookworm) that was built on 🍎 MacOS & M3 (aka Apple Silicon).

You can also find these boxes on Vagrant cloud:

For x86-64 / AMD64 builds see: github.com/aphorise/hashicorp.packer-debian12-bookworm.

Prerequisites

Ensure that you already have the following applications installed & working:

Usage

  1. Verify or set sha512 that's used in "iso_checksum": "sha512:...". Version specific values of SHASUM can be found on the URL path for that version - eg:

  2. Make all changes as required (eg: d-i mirror/country string Netherlands in ui-input.http/pressed_debian12-bookworm.cfg) and thereafter commence with build using packer CLI:

    packer validate debian12-bookworm.json ;
    # // if output: Template validated successfully.
    packer build debian12-bookworm.json
  3. Add Box & Test using Vagrant when box is produced:

    vagrant box add --name debian_arm vmware-debian-arm64-12.5.0.box ;
    vagrant init debian_arm ;
    vagrant up ;
    # // when done:
    vagrant destroy -f && vagrant box remove debian_arm

The resulting Vagrant Base *.box file will be produced in the root of the repository (if no issues / errors).

Install Notes

brew tap hashicorp/tap ;
brew install hashicorp/tap/hashicorp-vagrant && brew install hashicorp/tap/packer ;
vagrant plugin install vagrant-vmware-desktop ;
packer plugins install github.com/hashicorp/vmware && packer plugins install github.com/hashicorp/vagrant ;

Last Run

  # Build 'vmware-iso.vmware-debian-arm64-12.5.0' finished after 8 minutes 39 seconds.
date '+%Y-%m-%d %H:%M:%S' && uname -a && sw_vers && \
 /Applications/VMware\ Fusion.app/Contents/Library/vmware-vmx-stats -v && \
 packer version && vagrant version ;
  # 2024-04-11 12:53:19
  # Darwin ... 23.4.0 Darwin Kernel Version 23.4.0: Wed Feb 21 21:44:54 PST 2024; root:xnu-10063.101.15~2/RELEASE_ARM64_T6030 arm64 arm Darwin
  # ProductName:		macOS
  # ProductVersion:		14.4
  # BuildVersion:		23E214
  # VMware Fusion Information:
  # VMware Fusion 13.5.0 build-22583790 STATS
  # Installed Version: 2.4.0
  # Latest Version: 2.4.1

Reference & Credits:

Accreditation of other material used:


About

HashiCorp Packer Template for building an ARM64 Vagrant Base Box of Debian 12 (bookworm) - built on macOS M3 (Apple Silicon).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages