Megan Marsh
822dcf93af
Merge pull request #10543 from arizvisa/GH-10009
...
Added a fallback to both the player and workstation drivers from the vmware builder when trying to determine the network-mapping configuration
2021-02-22 09:34:39 -08:00
Ali Rizvi-Santiago
c7545c37dd
Fixed an issue identified by @SwampDragons when checking if the networkmapper configuration file exists.
2021-02-21 05:32:30 -06:00
Sergei Parshev
b3b4559434
Added "attach_snapshot" parameter to vmware vmx builder
2021-02-18 15:16:28 -08:00
Wilken Rivera
f36554fa0e
Update redirects and URLs to legacy JSON template docs ( #10530 )
2021-01-27 09:08:59 -05:00
Megan Marsh
37dcf6183c
skip credential validation if we are not exporting an image ( #10520 )
2021-01-25 10:53:51 +01:00
Ali Rizvi-Santiago
9b1d31cee7
Added a fallback to the vmware builder when trying to determine the networkmapping configuration.
...
Some instances of VMWare will not generate the networkmapping configuration (netmap.conf)
at the time of installation. To deal with this issue, we check for the networkmapping file
first, and then fallback to the networking file which also might exist and contain the
interface information that we require.
This fixes issue #10009 .
2021-01-05 11:24:50 -06:00
Megan Marsh
88b7b0e14a
remove sdk
2020-12-17 13:29:25 -08:00
Pyrrvs
12a6fddbd8
handle apple dhcp lease with missing 'name' and 'lease' informations
2020-12-14 19:16:00 +01:00
Pyrrvs
f0612e4688
improve parser by skipping all lines containing a '{' or a '}'. fix unecessary []byte cast (linter issue).
2020-12-14 01:00:24 +01:00
gla
7201ce9248
make packer compatible MacOS BigSur by making vmware fusion drivers able to lookup the VM IP address in apple dhcpd leases instead of vmware leases.
2020-12-13 23:26:53 +01:00
Megan Marsh
39354f64e5
move helper/communicator dir into packer-plugin-sdk
...
fix imports; fix website and generated partials
2020-12-02 08:41:32 -08:00
Megan Marsh
d5971ca25e
fix tests by moving mock hooks and communicators, and BasicUi definition, into SDK
2020-11-30 14:30:30 -08:00
Megan Marsh
56a45b04ab
Move hook and communicator definitions to packer-plugin-sdk
2020-11-30 14:30:30 -08:00
Megan Marsh
14bdb9516c
move Artifact and artifact mock to the sdk
2020-11-30 14:29:52 -08:00
Megan Marsh
001886670d
move Ui definition into the packer plugin sdk.
2020-11-30 14:26:54 -08:00
Megan Marsh
9e47696dff
move helper/config to bundle with the other template definitions
2020-11-18 10:34:59 -08:00
Megan Marsh
007337989e
move communicator helpers into communicator dir
2020-11-18 10:24:25 -08:00
Megan Marsh
3f6deb8828
move multistep into the plugin sdk
2020-11-17 16:31:03 -08:00
Megan Marsh
7d658149ea
update tests and website and generated partials to reflect new package format
2020-11-17 10:36:01 -08:00
Megan Marsh
6402362018
create packer-plugin-sdk directory and begin moving the relevant folders into it.
2020-11-13 10:47:36 -08:00
Megan Marsh
df9febef1b
move communicators into sdk-internals directory
2020-11-13 10:44:07 -08:00
Megan Marsh
8d0058dad6
allow user to set tools source path
2020-09-24 09:51:01 -07:00
Sylvia Moss
9737b85bbc
Remove usb_keyboard option ( #9945 )
2020-09-17 10:38:33 +02:00
Sylvia Moss
7736ae6c67
Add VMware vnc_over_websocket option ( #9938 )
2020-09-16 11:02:46 +02:00
Megan Marsh
f28cabb162
Merge pull request #9940 from hashicorp/fix_9936
...
skip slot 7 in disk creation so we don't use reserved slot
2020-09-14 13:36:16 -07:00
Megan Marsh
b08dd28b85
skip slot 7 in disk creation so we don't use reserved slot
2020-09-14 13:13:59 -07:00
Megan Marsh
6935f47809
add tests for disk defaulting
2020-09-14 12:16:56 -07:00
Megan Marsh
eae3fda901
refactor out disk defaulting so it can be used to default the vmx cdrom too
2020-09-14 12:16:56 -07:00
Sylvia Moss
31f08909b4
Add usb_scan_codes option to use USB scancodes instead of VNC for remote builds ( #9895 )
2020-09-11 16:46:33 +02:00
Lars Lehtonen
03a0beb683
builder/vmware/common: simplify type assertion switch ( #9893 )
2020-09-04 16:25:19 +02:00
Wilken Rivera
f4556fd3f1
Merge pull request #9831 from hashicorp/remedial_remote_export_config_tests
...
add tests to make sure prepare for export defaults properly
2020-08-31 15:47:05 -04:00
Wilken Rivera
03a374f4b6
Fix linting issues for SA6005 check ( #9854 )
...
Before change
```
⇶ golangci-lint run --disable-all --no-config --enable=staticcheck | ack SA6005
builder/profitbricks/step_create_server.go:254:22: SA6005: should use strings.EqualFold(a, b) instead of strings.ToLower(a) == strings.ToLower(b) (staticcheck)
builder/oneandone/config.go:97:7: SA6005: should use strings.EqualFold(a, b) instead of strings.ToLower(a) == strings.ToLower(b) (staticcheck)
builder/vmware/common/driver_parser.go:1199:7: SA6005: should use strings.EqualFold(a, b) instead of strings.ToLower(a) == strings.ToLower(b) (staticcheck)
```
After change
```
⇶ golangci-lint run --disable-all --no-config --enable=staticcheck | ack SA6005
```
2020-08-31 15:44:42 +02:00
Megan Marsh
1c5bc41beb
refactor ovftool validation into vmware driver
2020-08-27 10:55:57 -07:00
Megan Marsh
a6d5106cd7
Allow "export" to ovf/ova for local vmware builds in addition to esx ones.
...
Refactor step_export and the driver interface to move the ovftool call
into the vmware driver. This refactor allows us to add meaningful tests
to step_export, which I have also added here.
2020-08-26 09:45:12 -07:00
Megan Marsh
e9b526ee2d
Move step_create_disk into common folder, and add to vmx builder ( #9815 )
...
Pull additional disk related config options into their own file.
2020-08-26 10:13:11 +02:00
Megan Marsh
a2cfaace59
extract output dir configuration and defaulting into the step_output_dir, using pointers to make sure they get set properly back on the main config
2020-08-18 12:50:06 -07:00
Megan Marsh
3b2bedf794
implement a remote_output_directory option, and heavily comment output code
2020-08-18 12:50:00 -07:00
Megan Marsh
b0d2201d55
Merge pull request #9782 from hashicorp/fix_9151
...
fully destroy vm if it was cancelled or errored
2020-08-18 07:22:18 -07:00
Megan Marsh
0a5cd953fc
fully destroy vm if it was cancelled or errored
2020-08-17 14:07:58 -07:00
Megan Marsh
aa2418cf01
add progress tracker to vmware-esx iso upload. Add colored prefix to … ( #9779 )
...
* add progress tracker to vmware-esx iso upload. Add colored prefix to tracker to make it clear which build a tracker belongs to.
* fix mock; fix tests
2020-08-17 14:35:42 -04:00
Megan Marsh
25f2ec48d3
add network_name option to vmware builder to make it match the network option on the vsphere builder, so vmware users needn't update vmx data just for the network name ( #9718 )
2020-08-06 13:19:55 +02:00
Megan Marsh
395a0c472e
improve postprocessor stdout
2020-07-25 08:24:21 -07:00
Megan Marsh
74aef3c819
apply same url encoding to other places we call ovftool
2020-07-23 17:03:42 -07:00
Megan Marsh
a687d6fe12
ci/tech-debt: Fix vmware acceptance tests ( #9636 )
...
* add kex algorithm option to ssh config
* regenerate code
* This commit fixes old vmware acceptance tests that have not been run in some time. It does this in two parts:
1) It modifies the minimal vmware build configuration to use a custom kex algorithm, which enables the ssh connection to succeed.
2) It modifies logic in reading and defaulting hardware config values, which was crashing.
3) It adds a new acceptance test with a preseed file to test loading from an http directory.
2020-07-23 09:40:57 +02:00
Adrien Delorme
1edd848877
esx5driver.VerifyChecksum: try checksum remote file instead of local file
...
fix #9456
2020-07-15 18:21:08 +02:00
Ali Rizvi-Santiago
3da5a64a8d
Fixed a race in the ReadNetworkingConfig implementation from the parsers belonging to the vmware builders that existed between reading the version and consuming tokens from the rest of the file.
2020-06-09 19:37:38 -05:00
Megan Marsh
5d67183c4c
fix test
2020-06-05 14:05:59 -07:00
Megan Marsh
093cfcfd9f
Merge pull request #9322 from arizvisa/GH-8528
...
Fix the VMware builders when the guest platform's dhcpcd switches the ip address in-between a build
2020-06-05 10:58:00 -07:00
Ali Rizvi-Santiago
8985ba077c
Re-added the (mistakenly removed) host override to the CommHost for the vmware builders.
2020-06-05 12:39:20 -05:00
Megan Marsh
4cd3429914
add ssh override test
2020-06-05 10:15:11 -07:00