Commit Graph

60 Commits

Author SHA1 Message Date
Dom Del Nano
3f0a2186bf
Revert "Allow ISO Storage repository to fallback to default SR if unspecified" 2023-04-14 06:43:21 -07:00
Dom Del Nano
cda48bd66e
Merge pull request #63 from ddelnano/ddelnano/sohonetlabs/iso-sr
Allow ISO Storage repository to fallback to default SR if unspecified
2023-04-14 00:35:25 -07:00
Heinrich Kruger
ffc0ffb5cd Work around XenAPI compatibility issue to get default SR 2023-04-13 23:27:34 -07:00
Heinrich Kruger
416c734853 Use default SR if sr_iso_name is not specified 2023-04-13 23:27:34 -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
AtaxyaNetwork
b4d83eb533 s/SrName/SrISOName
Signed-off-by: AtaxyaNetwork <contact@ataxya.net>
2023-04-06 18:27:24 +02: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
509b6b3c25
Fix XenServer tools guest IP address resolution 2021-12-14 19:00:09 -08:00
Dom Del Nano
5a484e08d0 Add a shared vm cleanup struct and function and ensure that the wait for ip step uses it 2021-03-23 23:36:34 -07:00
Ariel Sandor
64fb82b190
Update step_type_boot_command.go 2021-03-16 09:13:24 -03:00
Ariel Sandor
fb1d23ca8e
Update step_type_boot_command.go 2021-03-16 09:09:39 -03:00
Ariel Sandor
dbff7f1ada Replace conn master host > instance host 2021-03-15 10:00:20 -03: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
Daniel Koschützki
2266bc8af7 removed KeyboardInteractive from ssh auth methods
packer doesn't seem to support KeyboardInteractive ssh authentication
anymore
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
3d078501fd Upgrade packer to v1.6.5 2021-01-03 14:08:24 -08:00
Dom Del Nano
04120e891a Ensure required LockingMode parameter is set on VIF and fail the packer build if vif is failed to be created 2021-01-02 23:09:19 -08:00
Dom Del Nano
b2a858fe0f Ensure that SRs are set via the config file and fix other todos 2020-12-22 14:27:02 -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
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
bb008cd2c9 CP-19741: Change network config for VPXs (WLB, XCM and DLVM) from "Bond 0+1" to "Pool-wide network associated with eth0"
Signed-off-by: Kun Ma <kun.ma@citrix.com>
2016-11-17 23:39:05 +08:00
Kun Ma
b51f3e3ae0 CP-19292: added an option for "format" to export compressed xva
Signed-off-by: Kun Ma <kun.ma@citrix.com>
2016-10-21 18:14:52 +08:00
kunm
f79980553f CP-18743: refine type of NetworkNames & remove unused code
Signed-off-by: kunm <kun.ma@citrix.com>
2016-09-05 17:05:44 +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
Phus Lu
059707af53 gofmt -s -w .
Signed-off-by: Phus Lu <phus.lu@citrix.com>
2016-07-15 09:55:04 -07: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
2369b76a42 Adding ssh_config.go
Signed-off-by: Rob Dobson <rob.dobson@citrix.com>
2015-06-22 11:49:48 +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
Rob Dobson
437b4a3037 Passing the local_listener through to avoid a race with someone else picking up the port.
Signed-off-by: Rob Dobson <rob.dobson@citrix.com>
2015-05-21 16:52:54 +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
Jonas Kongslund
82d2a412ab Added VM description field 2015-05-06 06:25:12 +04:00
Rob Dobson
a135a74946 Adding an override for selecting how we obtain an IP for the created VM. In particular this helps disable HTTP snooping where the installers IP may differ from the IP obtained on firstboot.
Signed-off-by: Rob Dobson <rob.dobson@citrix.com>
2015-04-27 18:14:20 +01:00
Rob Dobson
a0e9c97c89 Adding legacy support for exporting VDI's as VHDs using the Transfer VM.
Signed-off-by: Rob Dobson <rob.dobson@citrix.com>
2015-04-27 18:11:40 +01: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
Cayce Ullman
388d48cfde Some tweaks to make it work with the current version of github.com/xenserver/go-xenserver-client. 2015-04-16 15:37:46 -05: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
Jon Ludlam
35c4ccc7c2 Add the ability to export VHD files
Signed-off-by: Jon Ludlam <jonathan.ludlam@citrix.com>
2015-02-20 11:28:59 +00:00
Cheng Sun
fc6c922f47 Add 'none' option to 'format' 2015-01-07 10:40:01 +00:00
Cheng Sun
422028bb3c Fix Shutdown step message 2015-01-06 14:02:00 +00:00
Cheng Sun
c2e3cc9756 Set correct boot order 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
d1e6bb66a9 Skip typing step if there is nothing to type 2015-01-05 17:28:41 +00:00
Cheng Sun
2591ae8226 Add ssh_port config 2015-01-02 18:20:54 +00:00
Cheng Sun
16f8c25d84 Fix shutdown_command bug
Fixes the somewhat embarrassing bug where the shutdown_command would be
run on the host rather than the guest.

This commit also rejigs things so that it is easier to do SSH commands
on either the host or the guest
2015-01-02 16:55:43 +00:00