Skip to content

trodemaster/packer-ubuntu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

92 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

packer-ubuntu

Packer template that builds Ubuntu (default 25.10) for amd64 with VMware Fusion on macOS.

Prerequisites

  • macOS with VMware Fusion
  • Packer >= 1.7.0

Building

  1. Optional: override build variables by copying the example and editing:

    cp ubuntu.auto.EXAMPLE.hcl ubuntu.auto.pkrvars.hcl

    Edit ubuntu.auto.pkrvars.hcl (password hash, ssh_key, hostname, fusion_app_path, etc.). Generate a password hash with:

    openssl passwd -6 -salt $(openssl rand -hex 4) 'yourpassword'
  2. Build:

    make

    Or without the Makefile:

    packer init .
    packer build .

    With a var file:

    packer build -var-file=ubuntu.auto.pkrvars.hcl .
  3. Output: VM is in output/vmware-iso_25.10/ (path depends on os_version).

Cleanup

Stop the VM (if running) and remove the build output:

make clean

What the build does

  • Cloud-init (files/user-data.pkrtpl): user, hostname, SSH key, password.
  • Provisioning (scripts/configure.sh): installs open-vm-tools, then chezmoi with the trodemaster config, then cleanup.

Other config (dotfiles, packages) comes from the chezmoi setup, not from this repo.

About

Packer template: Ubuntu (25.10) amd64 for VMware Fusion on macOS. open-vm-tools + chezmoi.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors