Go to file
2023-04-15 15:05:02 +02:00
builder/xenserver Working Debian install 2023-04-14 17:16:54 +02:00
docs/builders/iso Initial commit 2023-02-14 15:48:24 +01:00
examples Initial commit 2023-02-14 15:48:24 +01:00
.gitignore Working Debian install 2023-04-14 17:16:54 +02:00
.goreleaser.yml Initial commit 2023-02-14 15:48:24 +01:00
debian-complied.pkr.hcl Working Debian install 2023-04-14 17:16:54 +02:00
GNUmakefile Initial commit 2023-02-14 15:48:24 +01:00
go.mod Initial commit 2023-02-14 15:48:24 +01:00
go.sum Initial commit 2023-02-14 15:48:24 +01:00
LICENSE Initial commit 2023-02-14 15:48:24 +01:00
main.go Initial commit 2023-02-14 15:48:24 +01:00
meta-data Initial commit 2023-02-14 15:48:24 +01:00
packer.json Initial commit 2023-02-14 15:48:24 +01:00
preseed.cfg Working Debian install 2023-04-14 17:16:54 +02:00
README.md Update Readme 2023-04-15 15:05:02 +02:00
user-data Initial commit 2023-02-14 15:48:24 +01:00

FORKED FROM https://github.com/ddelnano/packer-plugin-xenserver

The binary must be compiled before usage. I remove the code to plug the guest-tools disk, to have a working Debian install. Tools are installed in the end of the installation (see preseed configuration)

XCP-ng packer.io builder

This builder plugin extends packer.io to support building images for XCP-ng.

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:

  1. Developed alongside the Xenorchestra terraform provider to ensure the hashicorp ecosystem is interoperable.
  2. Reimplements how the boot commands are sent over VNC to be compatible with later versions of Xenserver (Citrix hypervisor) and XCP

Compile the plugin

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

$ go build -o packer-plugin-xcp-ng

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