Commit Graph

202 Commits

Author SHA1 Message Date
Julian Phillips df180d6146 builder/vmware: We only need one runAndLog function
We shouldn't need a different one for each driver ...

Conflicts:
	builder/vmware/driver_workstation9.go
2013-07-31 22:11:07 -07:00
Julian Phillips 7b65daad37 builder/vmware: Add Support for VMware Player 5 (Linux)
We have two choices for VMware on Linux.  We already support
Workstation, add support for Player too.

VMware Player doesn't come with vmware-vdiskmanager, so fall back to
using qemu-img if we can find that.

Conflicts:
	builder/vmware/driver.go
2013-07-31 22:09:38 -07:00
Mitchell Hashimoto 54adabfd39 builder/vmware: sleep before cleaning files on Windows 2013-07-31 15:36:22 -07:00
Mitchell Hashimoto 558027465a builder/virtualbox,vmware: retry removing output dir if fails 2013-07-31 15:16:39 -07:00
Mitchell Hashimoto 8ac03e4898 builder/vmware: compile host_ip on every platform 2013-07-31 15:10:28 -07:00
Mitchell Hashimoto 1286f735be builder/vmware: redo host IP stuff for Windows 2013-07-31 14:46:12 -07:00
Mitchell Hashimoto f4adb35b9a builder/vmware: more logs for Workstation 2013-07-31 14:02:00 -07:00
Mitchell Hashimoto 6aacf20167 builder/vmware: convert line endings in workstation to Unix-style 2013-07-31 13:58:57 -07:00
Mitchell Hashimoto 8ac86e49d0 builder/vmware: improved logging for various workstation steps 2013-07-31 13:50:49 -07:00
Mitchell Hashimoto d1e0e955ab builder/vmware: verify various paths exist for Workstation 2013-07-31 12:39:49 -07:00
Mitchell Hashimoto 422f25749e builder/vmware: refactor the platform-specific stuff out
/cc @rasa - This is more idiomatic Go: to share the platform-independent
stuff and make the platform-specific stuff unexported functions
2013-07-31 12:36:17 -07:00
Mitchell Hashimoto fc89919347 Merge branch 'master' of https://github.com/rasa/packer into rasa-master 2013-07-31 11:52:20 -07:00
Mitchell Hashimoto 0363a1cdc2 builder/virtualbox,vmware: use DownloadableURL 2013-07-29 00:13:30 -07:00
Ross Smith II cf46148300 added missing fallthru in case statement for linux option, fixes #221, #222 2013-07-28 20:41:09 -07:00
Ross Smith II 56c383cf68 gofmt fixes, improved/added log messages, fixes #221/#222 2013-07-27 14:59:23 -07:00
Ross Smith II 071a6099c8 fixes #221 Add support for VMWare Workstation in Windows 2013-07-27 13:00:21 -07:00
Mitchell Hashimoto 56c3cbfb2a builder/common: common config struct for Packer configs 2013-07-23 22:48:31 -05:00
Mitchell Hashimoto 665b03a342 fmt 2013-07-23 22:36:09 -05:00
Mitchell Hashimoto f6854ae07e builder/vmware: more flexible ISO removing
/cc @timsutton - This is a bit more flexible.
2013-07-20 19:08:20 -07:00
Mitchell Hashimoto e05e83f9c8 Merge pull request #203 from timsutton/vmware-eject-isos
builder/vmware: Remove ISO from ide1 in stepCleanVMX
2013-07-20 16:59:55 -07:00
Mitchell Hashimoto 91c1bf0b8a Merge pull request #204 from sit/builder-output-directory-error
builder/v*: Include path to output dir in error
2013-07-20 16:58:39 -07:00
Mitchell Hashimoto e84811e2f8 Update changelog 2013-07-20 16:37:48 -07:00
JD Harrington dbd45dfd58 Add special keys for backspace, delete and F1-F12 2013-07-20 15:37:01 -04:00
Emil Sit 329266e86e builder/v*: Include path to output dir in error 2013-07-20 00:36:59 -04:00
Timothy Sutton 0c7efde103 Remove ISO from ide1 in stepCleanVMX 2013-07-19 20:46:26 -04:00
Mitchell Hashimoto 16d102d055 builder/*: switch to MultiErrorAppend 2013-07-19 19:08:25 -04:00
Mitchell Hashimoto 42059f9b07 builder/*: extract to common the config decoding 2013-07-19 15:00:32 -04:00
Doug MacEachern e531af96e1 fix Fusion DhcpLeasesPath 2013-07-17 13:03:05 -07:00
Mitchell Hashimoto 9d31a49fad builder/vmware: look for license for WS9 2013-07-16 14:58:16 -07:00
Mitchell Hashimoto d126c45d77 builder/vmware: workstation 9 show stderr if command fails 2013-07-16 14:46:34 -07:00
Mitchell Hashimoto a9252959ba builder/vmware: wording 2013-07-16 14:23:52 -07:00
Mitchell Hashimoto 05e081e07f builder/vmware: split drivers out into individual files 2013-07-16 14:23:01 -07:00
Julian Phillips 4846d252a3 builder/vmware: Add support for Workstation 9 (Linux).
Now the VMware builder should automatically pick between Fusion 5 and
Workstation 9, based on which one is installed.
2013-07-16 14:11:59 -07:00
Mitchell Hashimoto 29279415d0 builder/vmware: error if guest IP is blank [GH-189] 2013-07-16 11:05:47 -07:00
Mitchell Hashimoto 8e1e40c096 builder/*: convert to common StepProvision 2013-07-16 15:44:41 +09:00
Mitchell Hashimoto fd58b33b38 builder/vmware: convert to cmmon ssh step 2013-07-15 14:22:13 +09:00
Mitchell Hashimoto 9387ba0fd4 packer: Make builder type available in configs [GH-154] 2013-07-15 09:58:32 +09:00
Mitchell Hashimoto 6b6beae3b8 builder/vmware: unexport calculted config fields 2013-07-14 21:23:46 +09:00
Mitchell Hashimoto a0f1667df1 communicator/ssh: tweakable timeout on retry connection 2013-07-14 21:05:22 +09:00
Mitchell Hashimoto 2fff555e7f fmt 2013-07-14 20:55:27 +09:00
Mitchell Hashimoto 9718a4656c communicator/ssh: have a Connection func so we can re-establish
[GH-152]
2013-07-14 20:22:57 +09:00
Mitchell Hashimoto 569ec0a2bb builder/vmware: generic checksum types [GH-175] 2013-07-14 15:58:56 +09:00
Mitchell Hashimoto 3b4ef72e47 Unused keys are invalid in templates [GH-104] 2013-07-14 09:28:56 +09:00
Mitchell Hashimoto 245deaf599 buidler/virtualbox,vmware: only stat if not force
/cc @jasonberanek - Swapped this because why even bother doing a stat
if we're forcing anyways.
2013-07-13 14:47:08 +09:00
Jason A. Beranek 9c31c69a7b Remove output directory in a step when "-force" flag step [GH-178] 2013-07-12 21:23:00 -05:00
Mitchell Hashimoto 2981da4eef fmt 2013-07-13 10:01:27 +09:00
Jason A. Beranek 13c733a3db Add support for -force flag on builds [GH-119] 2013-07-11 23:43:23 -05:00
Mitchell Hashimoto e52f8e0486 fmt 2013-07-12 07:01:30 +09:00
Mitchell Hashimoto 0fdf9b09c9 builder/vmware: error if shutdown command failed 2013-07-09 14:39:02 -07:00
Mitchell Hashimoto 9ec94fc6a1 builder/vmware: support floppy_files for mounting a floppy disk 2013-07-09 12:41:36 -07:00
Mitchell Hashimoto 50095283ef builder/virtualbox, builder/vmware: keyboard-interactive [GH-121] 2013-07-02 22:02:58 -07:00
Steven Merrill 58daa1d84e Add a 'skip_compaction' step. 2013-07-02 20:22:11 -04:00
Mitchell Hashimoto 874b4acf1c builder/vmware: output VNC info if headless
/cc @smerrill
2013-07-02 12:23:19 -07:00
Mitchell Hashimoto 67920da4ec Merge pull request #108 from smerrill/headless-mode
builder/vmware, builder/virtualbox: Headless mode
2013-07-02 12:16:40 -07:00
Mitchell Hashimoto c7c22bee3c Merge pull request #115 from bdon/wait
builder/virtualbox, builder/vmware: wait5 and wait10 timers
2013-07-02 12:14:17 -07:00
Brandon Liu 471f33d02e Add wait5 and wait10 special keys for boot command. 2013-07-02 10:31:22 -07:00
Mitchell Hashimoto 4d5edcaac0 builder/vmware: Improve check for VMware cleanup 2013-07-02 09:30:24 -07:00
Mitchell Hashimoto 529f72c084 builder/vmware: No redundant errors 2013-07-02 09:10:44 -07:00
Mitchell Hashimoto 32490fb57c builder/vmware: Style nitpick
/cc @smerrill: I prefer to do state changes at the end. :)
2013-07-02 09:09:55 -07:00
Mitchell Hashimoto c23cd4310b Merge pull request #107 from smerrill/compact-disk
builder/vmware: Compact disk at end of the run
2013-07-02 09:09:15 -07:00
Mitchell Hashimoto e0881a133b builder/vmware: wait for shutdown to avoid corrupt disk files [GH-111] 2013-07-02 09:05:17 -07:00
Steven Merrill ba14170f8f Small fix to be sure "full_disk_path" is put into state. 2013-07-02 01:32:50 -04:00
Steven Merrill 0dd6fcfa47 Small doc fixes. 2013-07-02 01:15:03 -04:00
Steven Merrill bade17edef Integrate code review comments. 2013-07-02 01:12:57 -04:00
Steven Merrill c4c43b1252 Add VMWare headless mode. 2013-07-02 00:13:13 -04:00
Steven Merrill c072a56b40 Finish initial compaction feature. 2013-07-01 22:45:46 -04:00
Steven Merrill 3b49f7bd20 First try at a compaction step. 2013-07-01 22:25:33 -04:00
Steven Merrill c9d0de593e Add a computed FullDiskPath config option. 2013-07-01 22:22:00 -04:00
Mitchell Hashimoto bac976332f builder/virtualbox, builder/vmware: output and VM name based on build
[GH-91]
2013-07-01 11:11:51 -07:00
Mitchell Hashimoto f82aa7c974 builder/vmware: tools_upload_flavor and path
/cc @smerrill
2013-07-01 10:45:50 -07:00
Mitchell Hashimoto a3f47462f5 fmt 2013-07-01 09:39:34 -07:00
Steven Merrill fc06324ca0 Incorporate code review feedback. 2013-06-30 11:10:26 -04:00
Steven Merrill dbad9a4058 Add a method to get the VMware Tools ISO path. 2013-06-29 23:20:38 -04:00
Steven Merrill da3b0f54c7 Upload the linux.iso to /tmp/linux.iso. 2013-06-29 23:08:27 -04:00
Mitchell Hashimoto 9dadd1ce8a builder/vmware: delete unnecessary files from artifact 2013-06-29 13:28:08 -07:00
Mitchell Hashimoto b9fb40b8a5 builder/vmware: populate files properly in artifact [GH-63] 2013-06-29 13:00:34 -07:00
Mitchell Hashimoto e7747b3ef4 builder/vmware: default boot_wait 2013-06-28 22:40:55 -04:00
Mitchell Hashimoto 8aaadf354a builder/virtualbox,vmware: work if port range for HTTP is 0 [GH-53] 2013-06-28 22:00:01 -04:00
Mitchell Hashimoto fb4b940c53 builder/vmware: properly test file URLs 2013-06-28 09:43:49 -04:00
Mitchell Hashimoto 98b4761ef1 builder/virtualbox, vmware: delete output dir if cancelled 2013-06-27 22:23:40 -04:00
Mitchell Hashimoto 0486a90738 builder/vmware: error if output directory exists 2013-06-27 22:15:24 -04:00
Mitchell Hashimoto 8a609b67c1 builder/*: Fail if provisioning fails [GH-33] 2013-06-26 17:54:57 -07:00
Mitchell Hashimoto 53b7b3965f fmt 2013-06-23 20:43:50 -07:00
Mitchell Hashimoto a3c5fed267 builder/vmware, builder/virtualbox: Don't continue if ISO error 2013-06-23 18:23:00 -07:00
Mitchell Hashimoto 39eb9b7497 builder/vmware: Try SSH handshake multiple times 2013-06-23 18:17:38 -07:00
Mitchell Hashimoto 1a8395baab builder/vmware: support the <tab> special in boot commands 2013-06-23 16:09:12 -07:00
Mitchell Hashimoto 24f852f699 builder/vmware: configurable disk size (default 40 GB) 2013-06-23 15:07:19 -07:00
Mitchell Hashimoto 43085e472b builder/vmware: Ability to specify the SSH port with "ssh_port" 2013-06-23 14:30:52 -07:00
Mitchell Hashimoto 6b04876e35 builder/vmware: Log the output of various commands 2013-06-20 12:33:01 -07:00
Mitchell Hashimoto 6d3b09c542 builder/vmware: properly handle errors 2013-06-19 21:20:48 -07:00
Mitchell Hashimoto b9fb065d27 packer: Add Destroy method to artifact
[GH-18]
2013-06-18 16:01:14 -07:00
Mitchell Hashimoto 21b6d2a435 builder/common: multistep debug fn gracefully exits during an interrupt 2013-06-14 15:47:06 -07:00
Mitchell Hashimoto ac029d9ed0 builder/vmware: Use proper pausefn 2013-06-14 15:24:53 -07:00
Mitchell Hashimoto cbd3f59578 builder/vmware: Enable the debug runner 2013-06-14 15:07:34 -07:00
Mitchell Hashimoto a6194467ac builder/*: Adhere to the new interface 2013-06-14 12:29:48 -07:00
Mitchell Hashimoto a0a78b68e8 builder/common: Create a downloader 2013-06-12 17:41:44 -07:00
Mitchell Hashimoto 521b59a6fa Make everything support the new builder interface 2013-06-12 16:06:56 -07:00
Mitchell Hashimoto cbbc8de8b2 builder/vmware: Properly check MD5 2013-06-09 23:12:37 -07:00
Mitchell Hashimoto 520a2706ea builder/vmware: Validate MD5 2013-06-09 23:00:07 -07:00
Mitchell Hashimoto 4b46181f69 builder/vmware: require an MD5 for ISO 2013-06-09 22:47:58 -07:00