Commit Graph

399 Commits (80ed988ffe4e5eb8df98b4e7cf1c8f51599bb7af)

Author SHA1 Message Date
Ali Rizvi-Santiago e5b6d8c37c Didn't know that WinRM uses a different variable for the port number when trying to determine the communication host in `CommHost`...now it's fixed.
6 years ago
Ali Rizvi-Santiago 229b5d17ff Re-worked the vmware builder drivers so that they're able to check multiple ip addresses when trying to connect via the CommHost.
6 years ago
Ali Rizvi-Santiago 0609909f1a Fixed some lint issues.
6 years ago
Ali Rizvi-Santiago ad7194c920 Rewrote the GuestIP implementation in the vmware builder to use the new dhcpd lease parsers instead of the old regexp-based logic.
6 years ago
Ali Rizvi-Santiago 020b005522 Finished implementing the final dhcpd lease entries parser for the vmware builders and also included its own unit tests.
6 years ago
Ali Rizvi-Santiago cf5332fa20 Updated the dhcpd lease entry parser in the vmware builder to return errors if any are encountered.
6 years ago
Ali Rizvi-Santiago afa4696985 Tightened the regular expressions used by the vmware builder to parse the dhcpd leases, and added support for parsing the weekdays.
6 years ago
Ali Rizvi-Santiago e2a7c317eb Implemented the dhcpd lease entry decoder and the address decoder for the vmware builder.
6 years ago
Ali Rizvi-Santiago efb775accb Added a number of parsing combinators to the vmware builder and some minor tests for them to help with parsing dhcpd leases.
6 years ago
Ali Rizvi-Santiago f17007d546 Removed the sentinelSignaller chan from the vmware builder parsers and its unit-tests, and also commented all of the goroutines that are used.
6 years ago
Ali Rizvi-Santiago 159ea595df More lint issues fixed...
6 years ago
Ali Rizvi-Santiago 32b64e0576 Fixed some lint issues in the unit tests for the vmware builder driver parsers.
6 years ago
Adrien Delorme 0fa60c68fb
Drop the iso_checksum_type & iso_checksum_url fields (#8437)
6 years ago
Ali Rizvi-Santiago 2a8bc45bc4 Added unit-tests for the netmap parsing components in the vmware builder.
6 years ago
Ali Rizvi-Santiago 7c1ad4adcf Added unit-tests for the dhcpd configuration components in the vmware builder, and fixed a few discovered race conditions.
6 years ago
Sylvia Moss 1c30a71d09
Replace file shared state by statebag (#9238)
6 years ago
Wilken Rivera e8f8ebf132
builder/vmware: Add some additional debug logging to the driver version check (#9064)
6 years ago
Megan Marsh a48c0ecf49 update docs for headless to help users know they may need to launch the gui
6 years ago
Jeff Escalante 2999934326
fix generation script, bugfixes in source comments, update website paths in primary codebase
6 years ago
Jeff Escalante 9165be87da
packer.io prefix removal, html extension remove for in-code errors
6 years ago
Jeff Escalante 4afd107eeb
patch source files for extensions changes
6 years ago
Sylvia Moss b17b211aa9
Add cleanup_remote_cache config option to vmware-iso (#8917)
6 years ago
Adrien Delorme 88297c796d Merge branch 'master' into hcl2_singular_blocks
6 years ago
Adrien Delorme 94a1f0bcb6 go fmt
6 years ago
Paul Cichonski (pcichons) c3d793255e Do not test if NIC is reachable when ssh bastion is required
6 years ago
Wilken Rivera e1a46ec293
Fix gosimple S1025 linting errors (#8838)
6 years ago
Wilken Rivera 9ec8b67392
Add golangci-lint to project (#8686)
6 years ago
Sylvia Moss dc31bad539
Sharing info with post-processors via artifact (#8632)
6 years ago
Moss 61bee60ecf Add StepHttpIpDiscover tests
6 years ago
Moss df38d11270 Fix compilation error
6 years ago
Moss 0566f1f999 Extract http ip discover to a new step
6 years ago
Megan Marsh 8c8de27509 add note about error abort to vmware warning
6 years ago
Sylvia Moss d6a351b173
Rename communicator config variables and remove deprecated code (#8584)
6 years ago
Megan Marsh be3c1ef106 bump the timeout to a very high level to protect against laggy CI machines
6 years ago
Megan Marsh 84063d2132 implement ID and Type values in the provisioner template info sharing
6 years ago
Stephen Tawn c66219084e Fix error message when ovftool is missing
7 years ago
Lars Lehtonen 5f02150e05
builder/vmware/common: defer close after testing for errors
7 years ago
Lars Lehtonen 9924d16fc3
builder/vmware/common: remove unused testHWConfig()
7 years ago
Lars Lehtonen 2b795053b4
builder/vmware: fix dropped test errors
7 years ago
Megan Marsh c24693372d
Merge pull request #8132 from scienty/support_floppy_vmx_esxi
7 years ago
Prakash Sidaraddi 67be007f45 Support floppy_files for vmx on esxi
7 years ago
Adrien Delorme ba9ffcbf73 re-indent HWConfig struct comments
7 years ago
Adrien Delorme b3cdf2ac8f remove docs typo
7 years ago
Adrien Delorme 4cb7c30987 Merge remote-tracking branch 'origin/master' into scrape_doc_to_builder_struct_config
7 years ago
Vladislav Rassokhin 991cf22504 Prevent endless reading of closed file in vmware plugin
7 years ago
Adrien Delorme 4a61dc3670 vmware: document using partials
7 years ago
Adrien Delorme c11ef90cb6 use interpolate.NewContext() instead of testConfigTemplate(t)
7 years ago
Adrien Delorme 926c8bbaa6 refactor ShutdownConfig into a single struct
7 years ago
Adrien Delorme 4bf6a56d71 split communitacor.SSH & communitacor.WinRM to facilitate documentation
7 years ago
Adrien Delorme 4399684372 make fmt autogenerated docs
7 years ago
Adrien Delorme e6cbb013ba add // go:generate struct-markdown to all previously edited files
7 years ago
Adrien Delorme f1917edd34 generate the comments for config struct of builders scraping doc website
7 years ago
Megan Marsh f7c1b5e940 add 30 minute timeout for destroying a VM
7 years ago
Adrien Delorme 56c7593725 fix panic in StepConfigureVNC
7 years ago
Adrien Delorme f555e7a9f2 allow a provisioner to timeout
7 years ago
Adrien Delorme c4f3dccc14 rename interpolation context from ctx to ictx and contexts to ctx to avoid conflicts
7 years ago
Adrien Delorme ac92916b01 StepConfigureVNC: close listener only once
7 years ago
Adrien Delorme a3838ecfad error on negative ports
7 years ago
Adrien Delorme 5a6dffde9a use port as ints
7 years ago
Adrien Delorme f828b72c10 step configure vnc: allow to use ESX5Driver again
7 years ago
Adrien Delorme c214f6735b make everything a uint
7 years ago
Adrien Delorme b5d78d47f5 vmware StepConfigureVNC: use common/net pkg to find open port
7 years ago
Eric Mowry cef3d0eb24 Ran make fmt per Megan's request.
7 years ago
Eric Mowry 109ba2c54c After testing a ISO and VMX clone along with setting the display_name option it was determined that having no name for the .vmxf file did not work either. Updating to check if displayName is not empty before using and falling back to VMName if displayName is empty.
7 years ago
Eric Mowry e74a81e27b Deny the copying of .vmxf from the source VM to the target VM. If this file gets copied over to the new VM once the VM gets deleted the .vmxf and the folder for the VM stay on the datastore. This causes Packer to hang because the folder on the datastore does not go away during the cleanup process.
7 years ago
Eric Mowry 1127096beb Setting extendedconfigfile to the name of the VM so that when ESXi makes the vmxf it is named after the VM and ESXi will properly delete the file when the VM gets deleted.
7 years ago
Megan Marsh 5cc442872e
Merge pull request #7314 from hashicorp/fix_7234
7 years ago
Megan Marsh bbc52f9a7d add noSSLVerify to ovftool args
7 years ago
Megan Marsh bd3339f1f9 also strip \r to work around windows file ending strangeness
7 years ago
Megan Marsh 6ea64bc378
Merge pull request #7191 from arizvisa/GH-7190
7 years ago
Megan Marsh ce8f5c31df escape query as suggested in issue #7200
7 years ago
Ali Rizvi-Santiago 9d2f98394e Revert "Renamed the terse option, `cores`, to to the less-terse version `cores_per_socket`."
7 years ago
Ali Rizvi-Santiago 0c37a3c68f Renamed the terse option, `cores`, to to the less-terse version `cores_per_socket`.
7 years ago
Ali Rizvi-Santiago 062c62eed8 Added support for specifying the number of cores as `cores` to vmware-common.
7 years ago
DanHam 0821653256
Fix 'nil' dir in VMware artifact when building locally
7 years ago
Ali Rizvi-Santiago 96bdf17d2e Added knowledge of the "temporaryDevices" statebag to the StepCleanVMX tests for the VMware builders.
7 years ago
Ali Rizvi-Santiago fa4998e1ec Modified StepCleanVMX to walk through the "temporaryDevices" statebag so that we can disable or remove its devices cleanly. This gets rid of the regex hack that was previously used to identify a cdrom-image.
7 years ago
Ali Rizvi-Santiago 3512c3c5ea Updated StepConfigureVMX to add the floppy disk device to the "temporaryDevices" statebag so that StepCleanVMX can remove it later.
7 years ago
Megan Marsh 11ef407b4d
Merge pull request #7016 from rickard-von-essen/vmware-tech-prev
8 years ago
Megan Marsh ec75913412 fix crash that occurs when dir is nil
8 years ago
Ali Rizvi-Santiago f8c23c1808 Updated things related to the vmware-iso builder to include @azr's suggestions.
8 years ago
Ali Rizvi-Santiago 61ee3a44f5 Modified the cpus and memory options for the vmware builders to only apply them if they were specified.
8 years ago
Ali Rizvi-Santiago fb7ce9f2b5 Renamed both `cpu_count` and `memory_size` to `cpus` and `memory` (respective).
8 years ago
Ali Rizvi-Santiago cd45248eaa Moved common hardware config options used by the vmware-iso builder into common/hw_config and added options for the CpuCount and MemorySize.
8 years ago
Rickard von Essen 4ea3d1567a
vmware: Correctly parse version for VMware Fusion Tech Preview
8 years ago
Megan Marsh dca02c7b07
Merge pull request #6962 from hashicorp/fix_6940
8 years ago
Megan Marsh 89184ae384 rework if/else to simplify main code body.
8 years ago
Megan Marsh 536e0501ac Validate username/password for ovftool during prepare.
8 years ago
Megan Marsh 49b40e0789
Merge pull request #6984 from hashicorp/add_display_name_vmware
8 years ago
Adrien Delorme f1fa28847f
remove debug line.
8 years ago
Megan Marsh e5c4a4a6fb create export directories for vmx and ovf file types, too.
8 years ago
Megan Marsh 68c9e34bfe add new display_name template option
8 years ago
Megan Marsh 790d5661c5 escape username
8 years ago
Megan Marsh 96d628eef1 fix silliness with pointers
8 years ago
Megan Marsh 5c2ca450bd fix tests
8 years ago
Megan Marsh 5815b376b4 remove unnecessary checks; we always default format to ovf if it is unset.
8 years ago
Megan Marsh c3144c2d0a add some missing template validation (copied from iso builder) and revert to current use of displayName for parsing vm ssh IP; using VMName was breaking chained builds that hadn't updated the display name from the previous build.
8 years ago
Megan Marsh c3d6d45696 modify test so that it accesses CommConfig the same way we really do within the driver
8 years ago
Megan Marsh f18bb19f96 remove redundant config; CommConfig was already a part of the SSSHConfig struct
8 years ago
Megan Marsh fa12113eaf remove unused NewLocalArtifact
8 years ago