Commit Graph

39 Commits

Author SHA1 Message Date
Cécile MORANGE
a9e5f30a55 Converting to template is now the default behavior + add docs
Signed-off-by: Cécile MORANGE <contact@ataxya.net>
2023-09-04 18:25:16 +02:00
Cécile MORANGE
757529e20b
typo 2023-08-07 12:12:33 +02:00
Cécile MORANGE
8fe24bddcd
Allow having a template or a full VM 2023-08-07 11:56:14 +02:00
Dom Del Nano
7c4b652c17 Update StepCreateInstance to accommodate both ISO and XVA builders 2023-04-15 15:32:58 -07:00
Dom Del Nano
461367ad1c Move create instance step to common directory 2023-04-15 14:49:11 -07:00
Dom Del Nano
6c808da038 Remove remaining usages of iso_checksum_type, fix config.hcl2spec.go generation and re-run it 2023-04-06 23:23:51 -07:00
somerandomqaguy
6b0b4baf2f Remove iso_checksum_type checks
This aligns the Xenserver plugin to being a bit more inline with what
Packer > 1.6.0 is expecting, since packer now simply ignores the
iso_checksum_type (it's supposed to error out but that code path isn't
working right now because we don't set PluginType in the configs. The
unit tests have been altered to reflect this reality.

Note that this isn't a comprehensive change; the config still has the
inert ISOChecksumType, and there's probably a laundry list of other
things that needs to be looked at, For now though, we have working
unit tests again.

Documentation from SDK has been aligned for iso_checksum
2023-04-06 23:12:25 -07:00
somerandomqaguy
c49d4ebf12 Capture actual errors from Prepare
Solves TestBuilderPrepare_InvalidKey failing, since we weren't capturing
it's errors before.
2023-04-06 23:12:25 -07:00
Dom Del Nano
0ccc53b8b5 Prevent ISO used in iso builder from being uploaded if it already exists 2023-02-26 23:23:28 -08:00
Maxence Boutet
c6147b13c9
feat: Make firmware configurable
I extracted the changes as-is from https://github.com/ddelnano/packer-plugin-xenserver/pull/28.
2022-06-05 11:28:23 -04:00
John Jones
aa4ea9d5c8
More reliable cloud-init startup 2021-12-14 18:50:15 -08:00
Daniel Koschützki
657145a852 ran gofmt 2021-02-24 00:02:50 +01:00
Daniel Koschützki
9d066f31d1 Ran the migrator tool from hashicorp and fixed all resulting compile errors 2021-02-23 23:54:28 +01:00
Dom Del Nano
906728b229 Upgrade packer and ensure that provisioners work 2021-01-13 22:15:33 -08:00
Dom Del Nano
8526cde728 Add hcl2 spec configuration and fix tests 2021-01-03 19:21:11 -08:00
Dom Del Nano
3d078501fd Upgrade packer to v1.6.5 2021-01-03 14:08:24 -08:00
Dom Del Nano
70adca2259 Add support for setting final VM as template and remove hard coding of SR 2020-12-22 12:17:42 -08:00
Dom Del Nano
d258626c85 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
Dom Del Nano
1221794f0a Get plugin building and mostly working 2020-09-13 01:22:59 -07:00
Michael Zhao
10270c90a0 Fix comments: remove redundant default setting of cores-per-socket. 2017-10-18 01:14:47 -07:00
Michael Zhao
5a206f2d2c Fix gofmt error. 2017-10-12 03:02:04 -07:00
Michael Zhao
191ac47af3 Add options to configure the number of VCPUs. 2017-10-12 00:14:23 -07:00
Rob King
4e5b3bee63 Fix SSH handling in pool environment.
This adds a new build step executed after StepStartVmPaused. This sets
the "ssh_address" state variable to the IP of the host the VM was started on.
This enables SSH commands to work correctly in a pool environment.

This also modifies SSH calls to use this address rather than config.HostIp

Fixes #47
2017-02-02 03:13:23 -05:00
Kun Ma
2a9073838e CP-18791: Make appliance-specs building stable
Signed-off-by: Kun Ma <kun.ma@citrix.com>
2016-10-10 17:39:52 +08:00
kunm
d1de461cdb CP-18743: Make packer-build-xenserver support VIF configuration
Signed-off-by: kunm <kun.ma@citrix.com>
2016-09-02 23:15:34 +08:00
Rob Dobson
2bad924ff0 Merge pull request #44 from makunterry/master
CP-18646: Make packer-build-xenserver support other-config for vm pac…
2016-09-01 09:44:21 +01:00
Jon Ludlam
f6978fb5ae Eject floppy and installation ISO after the VM has been provisioned.
To work around an issue in the PV drivers for Windows, the floppy and
installation ISO were removed before restarting the guest. This was due
to the drivers bluescreening on a failed assert of the presence of a
floppy disk.

Now that behaviour has been fixed, the builder should behave in the
expected way, and not introduce an extra shutdown/restart.

Signed-off-by: Rob Dobson rob.dobson@citrix.com
Reapplied-by: Jon Ludlam <jonathan.ludlam@citrix.com>
2016-08-26 14:17:45 +01:00
kunm
b1f0013d8c CP-18646: Make packer-build-xenserver support other-config for vm packing
Signed-off-by: kunm <kun.ma@citrix.com>
2016-08-23 11:55:38 +08:00
Phus Lu
a850d3d4f0 Rebase and add USE_XE option to xva export
Signed-off-by: Phus Lu <phus.lu@citrix.com>
2016-07-15 09:54:23 -07:00
Rob Dobson
aa0bbcae25 Add the missing Prepare call for the SSHConfig step.
Signed-off-by: Rob Dobson <rob.dobson@citrix.com>
2015-06-22 16:49:52 +01:00
Rob Dobson
351fdbba9d Refactoring to work with upstream packer changes around templates and SSH connect.
Signed-off-by: Rob Dobson <rob.dobson@citrix.com>
2015-06-22 11:17:20 +01:00
Robert Breker
52fa3fe1b5 gofmt -w -s .
Signed-off-by: Robert Breker <robert.breker@citrix.com>
2015-05-18 15:13:02 +00:00
Rob Dobson
d63518195d Re-adding support for bypassing ISO upload and just using and attaching one already present on an available SR.
Signed-off-by: Rob Dobson <rob.dobson@citrix.com>
2015-04-27 18:11:40 +01:00
Rob Dobson
7f52133218 Pulling out the client library and importing it from upstream: xenserver/go-xenserver-client.
Signed-off-by: Rob Dobson <rob.dobson@citrix.com>
2015-03-13 13:23:20 +00:00
Cheng Sun
0407989de8 Remove floppy before provision
Workaround for Windows Tools floppy BSOD
2015-01-06 14:02:00 +00:00
Cheng Sun
6ef9b70500 Try getting IP if reported by PV drivers 2015-01-06 14:02:00 +00:00
Cheng Sun
176c4ad7a3 IP snooping 2015-01-05 17:28:42 +00:00
Cheng Sun
6ffa99d624 Split shutdown and export, and detach VBDs in between 2015-01-05 17:28:41 +00:00
Cheng Sun
152bdee7f2 Initial work on splitting ISO and XVA builders
Compiles -- but xva create_instance is incomplete

Several changes were rolled into this commit, including:

- "export_format" is now "format", and "keep_instance" is "keep_vm"
- gox is used for building (with the intention of allowing
  cross-compilation in the future)
2014-12-31 16:09:23 +00:00