benwebber / packer-post-processor-vhd

:package: Packer post-processor plugin to produce Virtual Hard Disk (VHD) files
Mozilla Public License 2.0
24 stars 13 forks source link
packer post-processor qemu vhd virtualbox

packer-post-processor-vhd

Build Status Packer post-processor plugin Requires Packer 0.7 or higher

Packer post-processor plugin to produce Virtual Hard Disk (VHD) files.

VHD files can be used with the following hypervisors:

packer-post-processor-vhd supports converting VirtualBox and QEMU images to VHDs. It can be used as a post-processor for artifacts from both builders.

Dependencies

Usage

Add a post-processor declaration to your Packer template:

{
  "post-processors": [
    {
      "type": "vhd",
      "only": ["virtualbox-iso"],
    }
  ]
}

Configuration

packer-post-processor-vhd supports the following optional configuration items:

Installation

Linux, Mac OS X, and Windows

  1. Download the latest release.

  2. Rename the plugin packer-post-processor-vhd.

  3. Copy the binary to your Packer plugins directory.

    • Linux and Mac OS X:

      ~/packer.d/plugins
    • Windows:

      %APPDATA%\packer.d\plugins

Other Platforms

  1. Install the Go toolchain, then install the package:

    go get github.com/benwebber/packer-post-processor-vhd
    go install github.com/benwebber/packer-post-processor-vhd
  2. Copy the binary to your Packer plugins directory.

    • Linux and Mac OS X:

      cp $GOPATH/bin/packer-post-processor-vhd ~/packer.d/plugins
    • Windows:

      Copy-Item %GOPATH%\bin\packer-post-processor-vhd %APPDATA%\packer.d\plugins