Commit Graph

382 Commits (72166febee89db489655938a047500a4569c6b3e)

Author SHA1 Message Date
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
Megan Marsh 2ae235a28a fix tests
8 years ago
Megan Marsh 290f4a7c4c cleanup to make it actually build after that monstrous rebase
8 years ago
Alexander Laamanen 3193f50f17 Support export with the vmx builder.
8 years ago
Alexander Laamanen a68a639a1a Move step_export to common.
8 years ago
Alexander Laamanen 63054fb808 Fix the test.
8 years ago
Stuart Miller da5f322484 Add quotes around all filenames to prevent issues with spaces
8 years ago
Alexander Laamanen f42f5a8ad3 Remove some extra logging.
8 years ago
Alexander Laamanen e7e6a80587 No need to make upload public.
8 years ago
Alexander Laamanen c940f7e754 Conditional reload.
8 years ago
Alexander Laamanen 17845beadc Fix the CommHost tests
8 years ago
Alexander Laamanen 5e74bcfb88 Fix tests, move remote_ default values to driver_config.
8 years ago
Alexander Laamanen 4d9cb19012 Refactor artifacts and output_dir implementations.
8 years ago
Alexander Laamanen 2d00dc6756 Add VMName to the vmx mods.
8 years ago
Alexander Laamanen 7b5943160b Re-enable the CommHost() call. Use common's driver factory.
8 years ago
Alexander Laamanen ba22090bc9 Move step_register and step_uload_vmx from iso to common.
8 years ago
Alexander Laamanen b5298464c5 Move the remote_driver from iso to common.
8 years ago
Alexander Laamanen 91c7089455 Implement the first version of the remote Clone().
8 years ago
Alexander Laamanen 46cfb5a30c Move driver_esx5 to commons and allow it to be instantiated wtih NewDriver()
8 years ago
Adrien Delorme 51d2aac9f6 SSHPrivateKey => SSHPrivateKeyFile
8 years ago
Megan Marsh bf191d1ef6
Merge pull request #6204 from arizvisa/GH-6197
8 years ago
Megan Marsh 340363a649
Merge pull request #6613 from hashicorp/merge_ssh_config_funcs
8 years ago
Megan Marsh 31d4f8af45 use a time.Duration instead of a hardcoded ms
8 years ago
Megan Marsh 918db58604 added new template variables to replace PACKER_KEY_INTERVAL with tunable key and keygroup intervals depending on driver used
8 years ago
Adrien Delorme 41f6e0334d refactor all copy pasted sshConfig with into communicator.Config.SSHConfigFunc
8 years ago
DanHam a39c5887fb
Test we halt if a bad path is set in vmx_path
8 years ago
DanHam 21117e5d38
Test we fail if displayName is not stored in the statebag as 'display_name'
8 years ago
DanHam 88c43ec98d
Test we fail if the displayName key is not found in the VMX
8 years ago
DanHam d68d26a6e5
Fix tests: We now need to set `displayName` key/val pair in the test VMX
8 years ago
DanHam 3eab3cc99b
ESXi builds require we store the value of displayName in the statebag
8 years ago
M. Marsh 406f4eeb93
Merge pull request #6394 from conradjones/master
8 years ago
Conrad Jones d9b6924986 Add cloneType to fusion driver
8 years ago
Bob Brumfield 04ff0761e6 Notify that we are skipping file, but retain error message
8 years ago
Bob Brumfield 591bfe3dfa Continue searching for leases even if one of the files cannot be read.
8 years ago
Conrad Jones d05a601d00 Add support to vmware-vmx builder for linked clones.
8 years ago
DanHam 73eb9a629e
Revert "Fix test - reporting compaction results requires a tmp file"
8 years ago
DanHam 2939cd75ae
Revert "Report the result of the disk compaction step"
8 years ago
DanHam 25dd27a164
Remove tmp directories created by builder/vmware/common tests
8 years ago
DanHam c828015bc3
Follow variable varName <-> statebag var_name convention
8 years ago
DanHam f342975ff3
Fix test - reporting compaction results requires a tmp file
8 years ago
DanHam 08f9d619a9
Report the result of the disk compaction step
8 years ago
DanHam 10d93dffa4
Fix tests for vmware/common
8 years ago
DanHam c48a7889f9
Simplify handling of disks by collating requirements and unifying ops
8 years ago
Ali Rizvi-Santiago 5d8b476a7f Fixed the regex in common/step_clean_vmx.go for the VMware builder to also support removal of sata-based cdrom devices. Also added a comment in iso/step_create_vmx.go that links both pieces of related code.
8 years ago
Matthew Hooker c6299972b9
s/boot_command/bootcommand/
8 years ago
Matthew Hooker 408eba88ad
flatten boot command config and implement for vmware
8 years ago
Matthew Hooker cba4d3235f
cleanup
8 years ago
Matthew Hooker bf0a320125
Implement new parser for qemu boot command
8 years ago
Matthew Hooker 1c0af28662
Some cleanup and comments.
8 years ago
Matthew Hooker 4e2f14196a
Rely on context to cancel typing boot command.
8 years ago
Matthew Hooker 673245afcf
Replace boot command parser with PEG parser.
8 years ago
Ali Rizvi-Santiago 2c2904c095 Modified the path finders for the Player driver in the vmware-builders to search through all the possible variations for dhcp configuration and leases..
8 years ago
Ali Rizvi-Santiago 7e9699675f Modified device matching logs to look more consistent.
8 years ago
Ali Rizvi-Santiago 6e176f97a0 Added logs to all of the VMware drivers that emits each detected network device that gets enumerated for a network.
8 years ago
Ali Rizvi-Santiago 646523c5f4 Replaced the call to os.Open and ReadNetworkMap to just a single call to ReadNetmapConfig in both the Workstation9 and Player5 VMware drivers.
8 years ago
Megan Marsh ef4f3f143b
Merge pull request #5985 from AndiDog/f-5979-vmware-fusion-guestip-lookup-multiple-devices
8 years ago
Josh Soref 61030c0d85 spelling: output
8 years ago
Josh Soref d987fcefc3 spelling: multiples
8 years ago
Andreas Sommer ff92fb883d Handle multiple devices per VMware network type
8 years ago
Megan Marsh ac2e02b938 remove loglines that should not have made it onto master
8 years ago
SwampDragons 9e8e376d6c
Merge pull request #5932 from hashicorp/add_configurable_snapshot_timeout
8 years ago
Megan Marsh 597ddc2192 add configurable snapshot timeout to oracle-classic builder
8 years ago
Ali Rizvi-Santiago 27ed479b0a Reinforced the VMWare Workstation builder methodology for locating the dhcp.conf and dhcpd.leases files on Linux.
8 years ago
Ali Rizvi-Santiago d6e5342ece Fixed a type-o in the VMWare builder when locating the dhcp configuration file on Linux.
8 years ago
Ali Rizvi-Santiago fa2dddd26d Fixed some things mucked up during rebase.
8 years ago
Ali Rizvi-Santiago 74946071d2 Added support for specifying the disk adapter type to the vmware builders. This was squashed from the vmware-diskAdapterType branch (#2968) as submitted by Rami Abughazaleh <icnocop@users.noreply.github.com>. This closes #5671 and possibly #4885.
8 years ago
Ali Rizvi-Santiago 594ed950c7 Fixed a race condition in builder/vmware/common/driver_parser.go due to a misunderstanding how channels work when you close them.
8 years ago
Ali Rizvi-Santiago 737e951685 Added missing root path to path-finders for the VMware Fusion implementation in the vmware builder as mentioned by @SwampDragons.
8 years ago
Ali Rizvi-Santiago b2fec18b1e Added parser for VMware Fusion's networking file. Replaced VmwareDriver's NetmapConfPath with a NetworkMapperInterface in order to handle the differences between VMware Fusion and the rest of the VMware suite.
8 years ago
Ali Rizvi-Santiago 069d00f70b Added the paths suggested by @phekmat and @SwampDragons for VMware Fusion... Although parser for the new mapper format is likely to be needed still.
8 years ago
Ali Rizvi-Santiago 8cc0776f3a Fixed oversight in VMware builder's mock-driver that neglected to initialize 'HostAddressResult'.
8 years ago
Ali Rizvi-Santiago 029c357d8c Modified some tests to require the PACKER_ACC environment variable to be set before executing them. This turns them into acceptance tests as per CONTRIBUTING.md.
8 years ago
Ali Rizvi-Santiago 258804106b Added missing GetVmwareDriver() method to VMware Builder's DriverMock.
8 years ago
Ali Rizvi-Santiago 75fbfa0763 Replaced a hacky type assertion in the VMware builder with a call to Driver.GetVmwareDriver() that returns the driver-specific structure for ip and addressing information. Also implemented the addressing functions for the ESXi driver interface.
8 years ago
Ali Rizvi-Santiago 884af69da1 go fmt on builder/vmware/*
8 years ago
Ali Rizvi-Santiago 0d6cf7fac4 Added support for auto-detection to the serial and parallel port types.
8 years ago
Ali Rizvi-Santiago b52e2d3f45 Added the ability for the vmware-builder to fallback and determine the network device-name using the .vmx configuration in case of a guest using the "custom" connection type.
8 years ago
Ali Rizvi-Santiago 9b95ce0bc6 Completely forgot to support the unix paths in each of the drivers for the VMware builder. Fixed.
8 years ago
Ali Rizvi-Santiago 4225b3568e Fixed bad ORs and a bad fmtstring.
8 years ago
Ali Rizvi-Santiago 75d3ea7cee Added support for sound, serial ports, parallel ports, usb, and specifying a default network to the vmware builder.
8 years ago
SwampDragons 8ae8f31a52
Merge pull request #5681 from mcandre/super-key
8 years ago
Matthew Hooker 8bdd3b45c7
use helper functions for reading vmx files
8 years ago
Matthew Hooker 76b2ce8604
log which vmware driver we decide on
8 years ago
Matthew Hooker 07421b4433
test vmware workstation version checking
8 years ago
Matthew Hooker 8cd403425e
test fixes WIP
8 years ago
Matthew Hooker 7a189a83a1
fix imports
8 years ago
Matthew Hooker a831d522be
change run signatures
8 years ago
Matthew Hooker 366dc3da0a
move multistep imports to helper.
8 years ago
Matthew Hooker ebe995c0ff
run goimports
8 years ago
Andrew Pennebaker d069dc5b7c handle holding a-z keys, such as for boot options (vmware builder)
8 years ago
Andrew Pennebaker 4acc98a729 add super key (vmware builder)
8 years ago
Matthew Hooker 4d117bf117
Make vm log output less confusing
9 years ago
Matthew Hooker 07b013945f
more consistent flag name
9 years ago
Matthew Hooker 106408f6be
add new disable_vnc option
9 years ago
nictrix 6a238a3ef3
add option to skip vnc phase and update docs
9 years ago
Michael Kuzmin 9876a28ea7 vmware: publish vm_name as artifact ID
9 years ago
Matthew Hooker bf830e393d Merge pull request #4810 from bryonr/fix_vmware_shutdown_cleanup_osx
9 years ago
James Nugent c4439aba82 builder/vmware: Add vmx_remove_ethernet_interfaces
9 years ago
JD Friedrikson a0052fdb68
Specify InsecureIgnoreHostKey for HostKeyCallback
9 years ago
Matthew Hooker 9f992b8f80
go files are 0644
9 years ago
Bryon Ross d092044834 Help ensure VMX builder properly removes mounted CDs on OS X
9 years ago
Matthew Hooker 81522dced0
move packer to hashicorp
9 years ago
Matthew Hooker 1fa643e88d Merge pull request #4498 from mitchellh/f-simple-passwords
9 years ago
Matthew Hooker 70af3d8148 Merge pull request #4497 from mitchellh/f-clickable-links
9 years ago
Chris Bednarski dcb4b50dbf Reduce character set for passwords
9 years ago
Chris Bednarski facf27ceeb Make rdp and vnc links clickable by adding the protocol
9 years ago
Matthew Hooker 22d1322bd9
always check for an error first when walking a path
9 years ago
Matthew Hooker f1175c1921
parallels/vmware: don't wait for shutdown command.
9 years ago
Matthew Hooker 0a46d883df Merge pull request #4409 from mitchellh/httpenvvar
9 years ago
Rickard von Essen 81ad800fb6 builder/vmware: Try to use `ip address` to find host IP
9 years ago
Matthew Hooker d2e59e4e92
set PACKER_HTTP_ADDR env var when available.
9 years ago
Chris Bednarski 6ad702ad74 Update comments to reflect current implementation
9 years ago
Chris Bednarski ee2d636840 Improve delay between key events
9 years ago
Chris Bednarski d0c64f90d5 Read key interval from ENV; default to 100ms
9 years ago
Chris Bednarski da083506f1 Reduce key delay to 10ms to boot times are a lot faster
9 years ago
febc.yamamoto 6088c1887c Fix keycodes for ctrl,shift and alt key when sending over VNC
10 years ago
Matthew Hooker d920b3fbf4 run gofmt
10 years ago
Matthew Hooker d6bed79429 wait for shutdown command to end so we get stderr/out
10 years ago