A builder plugin for Packer.IO to support building XenServer images.
Go to file
Dom Del Nano cdb9300ac1
Merge pull request #1 from ddelnano/build-the-packer-plugin
Get the packer builder compiling and ensure that it can create terraform compatible VM templates
2020-12-27 21:16:29 -08:00
builder/xenserver Ensure that SRs are set via the config file and fix other todos 2020-12-22 14:27:02 -08:00
docs/builders Update docs to reflect current state of the project 2020-12-22 14:57:16 -08:00
examples/http Fix issues with typing the boot command over VNC and ensure that centos VMs can run kickstarter (albeit with errors) 2020-12-15 23:17:27 -08:00
plugin Rebase and add USE_XE option to xva export 2016-07-15 09:54:23 -07:00
.gitignore Fix issues with typing the boot command over VNC and ensure that centos VMs can run kickstarter (albeit with errors) 2020-12-15 23:17:27 -08:00
.travis.yml Rebase and add USE_XE option to xva export 2016-07-15 09:54:23 -07:00
build.sh Get plugin building and mostly working 2020-09-13 01:22:59 -07:00
go.mod Fix issues with typing the boot command over VNC and ensure that centos VMs can run kickstarter (albeit with errors) 2020-12-15 23:17:27 -08:00
go.sum Fix issues with typing the boot command over VNC and ensure that centos VMs can run kickstarter (albeit with errors) 2020-12-15 23:17:27 -08:00
LICENSE Initial plugin for building XenServer images using Packer.IO 2014-11-10 18:16:02 +00:00
packer.json Get plugin building and mostly working 2020-09-13 01:22:59 -07:00
README.md Update docs to reflect current state of the project 2020-12-22 14:57:16 -08:00

XenServer packer.io builder

This builder plugin extends packer.io to support building images for XenServer.

This is a fork of the original builder since the original project was abandoned and no longer compilied with recent versions of Go or worked with Xenserver 7.6 and later.

It improves the original project in the following ways: 2. Developed alongside the Xenorchestra terraform provider to ensure the hashicorp ecosystem is interoperable. 3. Reimplements how the boot commands are sent over VNC to be compatible with later versions of Xenserver (Citrix hypervisor) and XCP

Status

At the time of this writing the packer builder has been verified to work with Xenserver 7.6 and can launch VMs with the packer output through the xenorchestra terraform provider.

The following list contains things that are incomplete but will be worked on soon:

  • Official binaries have not been released yet
  • The documentation is still in an inconsistent state with upstream
  • Examples that are easier for new users to get up and running quickly
  • XVA builder is untested
  • Lots of dead code to remove from upstream

Using the builder

Official release binaries will be attached to the project's GitHub releases. Download the relevant release and copy the binary to ~/.packer.d/plugin/packer-builder-xenserver-iso.

Developing the builder

Dependencies

  • Packer >= v0.10.2 (https://packer.io)
  • XenServer / Citrix Hypervisor > 7.6
  • Golang 1.14

Compile the plugin

Once you have installed Packer, you must compile this plugin and install the resulting binary.

$ go build github.com/xenserver/packer-builder-xenserver/plugin/builder-xenserver-iso

# Add the builder to the location packer expects it to be installed in
$ mkdir -p ~/.packer.d/plugins/
$ cp builder-xenserver-iso  ~/.packer.d/plugins/packer-builder-xenserver-iso

Documentation

For complete documentation on configuration commands, see the xenserver-iso docs