πŸš› A packer builder for Veertu Anka
Branch: master
Clone or download
mkt4 Merge pull request #10 from joshenders/readme
Updates README to include boot_delay config option
Latest commit d0741ea Jun 11, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
builder/anka Remove go-cmd Sep 18, 2017
client Remove go-cmd Sep 18, 2017
examples Get communicator mostly working Jun 24, 2017
vendor Remove go-cmd Sep 18, 2017
.gitignore Update references to lox Aug 29, 2017
.goreleaser.yml Add a goreleaser file Aug 29, 2017
LICENSE Add a LICENSE.md Jun 6, 2018
Makefile Update references to lox Aug 29, 2017
README.md Updates README to include boot_delay config option Jun 9, 2018
main.go Update references to lox Aug 29, 2017

README.md

Packer Builder for Anka

This is a Packer Builder for building images that work with Veertu Anka, a macOS virtualization tool.

Note that this builder does not manage images. Once it creates an image, it is up to you to use it or delete it.

Installing from Binary

  1. Install Packer
  2. Install Veertu Anka
  3. Download the latest release for your host environment
  4. Unzip the plugin binaries to a location where Packer will detect them at run-time, such as any of the following:
    • The directory where the packer binary is.
    • The ~/.packer.d/plugins directory.
    • The current working directory.
  5. Change to a directory where you have packer templates, and run as usual.

Configuration

{
  "builders": [{
    "type": "veertu-anka",
    "installer_app": "/Applications/Install macOS Sierra.app/",
    "disk_size": "25G",
    "source_vm_name": "{{user `source_vm_name`}}"
  }]
}
  • type (required)

Must be veertu-anka

  • installer_app (optional)

The path to a macOS installer. This must be provided if source_vm_name isn't provided. This process takes about 20 minutes

  • disk_size (optional)

The size in "[0-9]+G" format, defaults to 25G

  • ram_size (optional)

The size in "[0-9]+G" format, defaults to 2G

  • cpu_count (optional)

The number of CPU cores, defaults to 2

  • source_vm_name (optional)

The VM to clone for provisioning, either stopped or suspended.

  • vm_name (optional)

The name for the VM that is created. One is generated if not provided.

  • boot_delay (optional)

The time to wait before running packer provisioner commands, defaults to 2s.

Development

You will need a recent golang installed and setup.

make packer-test

If you've already built a base macOS VM, you can use:

make packer-test SOURCE_VM_NAME=macos-10.12.3-base