Commit Graph

164 Commits

Author SHA1 Message Date
Melchior NOGUES
1b20fbac99
Disable exclusive VNC connection when packer in debug mode 2024-04-10 14:00:36 +02:00
Marko Mahnič
e62c1a1373 Apply HostSshPort in ssh port forwarding 2024-01-17 06:49:43 -08:00
Marko Mahnič
30498d8258 Add a new setting HostSshPort
A XenServer host may accept SSH connections on port other than
22. This commit adds a packer option 'remote_ssh_port' to connect
to a custom port.
2024-01-17 06:49:43 -08:00
Dom Del Nano
6bf1ad468c
Merge pull request #111 from Shackelford-Arden/compile-notes
Compile Notes / General Documentation
2024-01-16 11:51:31 -08:00
Cécile MORANGE
23fdf2286d Allow user to set VDI name 2024-01-16 17:29:22 +01:00
Arden Shackelford
84a3a2389a
Adding a few more config items to docs; Adjusting compile script to be consistent; 2024-01-09 20:33:52 -06:00
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
4438cdce28
remove file 2023-08-07 12:13:01 +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
dac47c649b Fix tests
Signed-off-by: Dom Del Nano <ddelnano@gmail.com>
2023-07-07 07:59:05 -07:00
Cécile MORANGE
8ef30c26e4
remove ToolsIsoName 2023-07-07 09:08:24 +02:00
Cécile MORANGE
0b9d7be27e
don't use tools by default 2023-06-21 17:16:18 +02:00
Dom Del Nano
de1a62d88c Update config.hcl2spec.go with go generate 2023-04-15 16:00:27 -07:00
Heinrich Kruger
5c090071a9 Allow tagging VMs
(cherry picked from commit 4200795cf0)
2023-04-15 16:00:27 -07:00
Dom Del Nano
2fe14d14ac Update XVA builder to use shared StepCreateInstance step 2023-04-15 15:33:08 -07: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
Heinrich Kruger
0bb70e8957 Update XVA builder to match ISO builder 2023-04-14 21:16:31 -07:00
Heinrich Kruger
17c58e8d24 Enable xva builder to create VM from existing template 2023-04-14 21:16:31 -07:00
Dom Del Nano
3c5fc29b36 Ensure that SrISOName is no longer a required field 2023-04-14 00:34:32 -07:00
Heinrich Kruger
70fd83e803 Work around XenAPI compatibility issue to get default SR 2023-04-14 00:03:51 -07:00
Heinrich Kruger
d8294d3ccd Use default SR if sr_iso_name is not specified 2023-04-14 00:03:51 -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
somerandomqaguy
880d12c66f Get the tests compiling again.
Looks like the consts got moved into common
2023-04-06 23:12:25 -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
BryceTech122
4b531de0ff add step to remove disks param from other-config 2023-01-12 11:46:10 -07: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
Dom Del Nano
f4a161e806
Merge pull request #33 from liath/fix-xen-tools-ip-resolution
Fix XenServer tools guest IP address resolution
2021-12-18 17:13:44 -08:00
John Jones
509b6b3c25
Fix XenServer tools guest IP address resolution 2021-12-14 19:00:09 -08:00
John Jones
aa4ea9d5c8
More reliable cloud-init startup 2021-12-14 18:50:15 -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
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
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
zheng chai
c7ac4898ed Add options to configure vCPU numbers for XVA builders also.
Signed-off-by: zheng chai <zheng.chai@citrix.com>
2020-03-24 23:21:35 +08:00