{"id":16632716,"url":"https://github.com/benwebber/packer-post-processor-vhd","last_synced_at":"2025-03-23T14:31:20.484Z","repository":{"id":53143424,"uuid":"42370868","full_name":"benwebber/packer-post-processor-vhd","owner":"benwebber","description":":package: Packer post-processor plugin to produce Virtual Hard Disk (VHD) files","archived":false,"fork":false,"pushed_at":"2021-04-04T20:17:34.000Z","size":35,"stargazers_count":24,"open_issues_count":5,"forks_count":13,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-18T21:11:21.856Z","etag":null,"topics":["packer","post-processor","qemu","vhd","virtualbox"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/benwebber.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-09-12T19:52:32.000Z","updated_at":"2024-09-15T20:24:01.000Z","dependencies_parsed_at":"2022-09-26T19:13:17.517Z","dependency_job_id":null,"html_url":"https://github.com/benwebber/packer-post-processor-vhd","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benwebber%2Fpacker-post-processor-vhd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benwebber%2Fpacker-post-processor-vhd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benwebber%2Fpacker-post-processor-vhd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benwebber%2Fpacker-post-processor-vhd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/benwebber","download_url":"https://codeload.github.com/benwebber/packer-post-processor-vhd/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245115806,"owners_count":20563238,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["packer","post-processor","qemu","vhd","virtualbox"],"created_at":"2024-10-12T05:09:56.304Z","updated_at":"2025-03-23T14:31:19.585Z","avatar_url":"https://github.com/benwebber.png","language":"Go","readme":"# packer-post-processor-vhd\n\n[![Build Status](https://travis-ci.org/benwebber/packer-post-processor-vhd.svg?branch=master)](https://travis-ci.org/benwebber/packer-post-processor-vhd)\n[![Packer post-processor plugin](https://img.shields.io/badge/packer-post--processor-blue.svg)](https://www.packer.io/docs/basics/terminology.html#Post_processors)\n![Requires Packer 0.7 or higher](https://img.shields.io/badge/packer-0.7+-blue.svg)\n\nPacker post-processor plugin to produce Virtual Hard Disk (VHD) files.\n\nVHD files can be used with the following hypervisors:\n\n* Hyper-V\n* VMWare\n* VirtualBox\n* XenServer\n\n**packer-post-processor-vhd** supports converting [VirtualBox](https://www.packer.io/docs/builders/virtualbox.html) and [QEMU](https://www.packer.io/docs/builders/qemu.html) images to VHDs. It can be used as a post-processor for artifacts from both builders.\n\n## Dependencies\n\n* Packer 0.7+\n* VirtualBox (`VBoxManage`) is required to convert VirtualBox artifacts.\n* QEMU (`qemu-img`) is required to convert QEMU artifacts.\n\n## Usage\n\nAdd a post-processor declaration to your Packer template:\n\n```json\n{\n  \"post-processors\": [\n    {\n      \"type\": \"vhd\",\n      \"only\": [\"virtualbox-iso\"],\n    }\n  ]\n}\n```\n\n## Configuration\n\n**packer-post-processor-vhd** supports the following optional configuration items:\n\n* `output` (string)\n\n    The path to the VHD file. This is a [configuration template](https://www.packer.io/docs/templates/configuration-templates.html). The template supports the following variables:\n\n    * `{{ .BuildName }}`\n\n        Replaced by the name of the builder (e.g., `virtualbox-iso` or a custom `name`).\n\n    * `{{ .Provider }}`\n\n        Replaced by the input artifact provider (e.g., `virtualbox`).\n\n    * `{{ .ArtifactId }}`\n\n        Replaced by the ID of the input artifact.\n\n    Defaults to `packer_{{ .BuildName }}_{{ .Provider }}.vhd`.\n\n* `force` (boolean)\n\n    Whether to overwrite a pre-existing VHD file at `output` if it exists. Specifying `--force` on the command line has the same effect. Defaults to `false`.\n\n* `keep_input_artifact` (boolean)\n\n    Whether to keep the input artifact (e.g., VirtualBox image) after processing. Defaults to `false`.\n\n## Installation\n\n### Linux, Mac OS X, and Windows\n\n1. Download the [latest release](https://github.com/benwebber/packer-post-processor-vhd/releases).\n\n2. Rename the plugin `packer-post-processor-vhd`.\n\n3. Copy the binary to your [Packer plugins directory](https://www.packer.io/docs/extend/plugins.html).\n\n    * Linux and Mac OS X:\n\n        ```\n        ~/packer.d/plugins\n        ```\n    * Windows:\n\n        ```\n        %APPDATA%\\packer.d\\plugins\n        ```\n\n### Other Platforms\n\n\n1. Install the [Go toolchain](https://golang.org/doc/install), then install the package:\n\n    ```\n    go get github.com/benwebber/packer-post-processor-vhd\n    go install github.com/benwebber/packer-post-processor-vhd\n    ```\n\n2. Copy the binary to your [Packer plugins directory](https://www.packer.io/docs/extend/plugins.html).\n\n    * Linux and Mac OS X:\n\n        ```\n        cp $GOPATH/bin/packer-post-processor-vhd ~/packer.d/plugins\n        ```\n    * Windows:\n\n        ```\n        Copy-Item %GOPATH%\\bin\\packer-post-processor-vhd %APPDATA%\\packer.d\\plugins\n        ```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenwebber%2Fpacker-post-processor-vhd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbenwebber%2Fpacker-post-processor-vhd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenwebber%2Fpacker-post-processor-vhd/lists"}