Skip to content

moreandres/packer-post-processor-vagrant-vmware-ovf

 
 

Repository files navigation

packer-post-processor-vagrant-vmware-ovf

This packer plugin leverages VMware OVF Tool to create a vmware_ovf Vagrant box that is compatible with vagrant-vcloud, vagrant-vcenter and vagrant-vcloudair, you can find a detailed explanation of the format here on the wiki.

This plugin is used to build the boxes available at https://vagrantcloud.com/gosddc you can find the packer templates here

Prerequisites

Software:

  • VMware OVF Tool

Notes:

  • This post processor only works with the VMware builder.

Installation

Add

{
  "post-processors": {
    "vagrant-vmware-ovf": "packer-post-processor-vagrant-vmware-ovf"
  }
}

to your packer configuration (see: http://www.packer.io/docs/other/core-configuration.html -> Core Configuration)

Make sure that the directory which contains the packer-post-processor-vagrant-vmware-ovf executable is your PATH environmental variable (see http://www.packer.io/docs/extend/plugins.html -> Installing Plugins)

Usage

In your JSON template add the following post processor:

  "post-processors": [
    {
        "type": "vagrant-vmware-ovf"
    }
  ]

Other parameters available are:

  • provider: You can override the provider metadata to vcloud or vcenter to build legacy boxes for old vagrant-vcloud and vagrant-vcenter installs.
  • compression: You can set compression of the box with an integer from 0 to 9 (default is 6).

If you don't want to compile the code, you can grab a release here.

About

Packer Post Processor to create vagrant-vcloud and vagrant-vcenter compatible boxes.

Resources

Stars

Watchers

Forks

Packages

No packages published