This Packer post processor uses the VMware ovftool binaries to export generated VMware vmx files to ova/ovf formats.
- Packer 0.7.5
- Refer to Developing Packer to install the software required to compile this code.
- If you downloaded and installed the Packer binaries you can stop after installing Gox.
- VMware OVFTool insalled and in your search path.
- Run the following:
$ go get github.com/daxgames/packer-post-procesror-ovaexport
$ go install github.com/daxgames/packer-post-processor-ovaexport
Export type is determined by the target filename extension specified in the Packer template file. As shown below with default values:
{
"type": "ovaexport",
"target": "ova/vmware/rhel-6.6-chef12.0.3.ova",
"disk_mode": "thick",
"remove_floppy": "false",
"remove_optical_drive": "false",
"remove_ethernet": "false",
"compress": 9,
"only": ["vmware-iso"]
}
Thanks to Mitchell Hashimoto, and others, for Packer and the vsphere post processor on which this code is based.
Thanks to Ian McCracken who wrote packer-post-processor-ovftool. I could not get it to work with the latest Packer 0.7.5 but it inspired me to cobble this together instead.