This builder plugin extends packer.io to support building images for oVirt.
To compile this plugin you must have a working Go compiler setup. Follow the official instructions or use your local package manager to install Go on your system.
cd $GOPATH
mkdir -p src/github.com/ganto
cd src/github.com/ganto
git clone https://github.com/ganto/packer-builder-ovirt.git
cd packer-builder-ovirt
PACKER_DEV=1 make bin
If the build was successful, you should now have the packer-builder-ovirt
binary in your $GOPATH/bin
directory.
In order to do a cross-compile, run the following build command:
XC_OS="linux" XC_ARCH="386 amd64" make bin
This builds 32 and 64 bit binaries for Linux. Native binaries will be installed
in $GOPATH/bin
as above, and cross-compiled ones in the pkg/
directory.