Commit Graph

295 Commits

Author SHA1 Message Date
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
Mitchell Hashimoto 896c727097 builder/vmware: Basic support for downloading an ISO 2013-06-09 22:44:35 -07:00
Mitchell Hashimoto 657c3fd87d builder/vmware: better tests around iso_url, test files 2013-06-09 22:08:53 -07:00
Mitchell Hashimoto 62309cb6de Build/Builder take a Cache object now 2013-06-09 22:00:47 -07:00
Mitchell Hashimoto a23500e0a4 builder/vmware: downloadIso step, although not functional yet 2013-06-09 21:50:15 -07:00
Mitchell Hashimoto e39965e32a builder/vmware: validate iso_url more strictly 2013-06-09 21:44:18 -07:00
Mitchell Hashimoto c29d754fa8 builder/vmware: break out the proper loop 2013-06-08 19:26:07 -07:00
Mitchell Hashimoto ccfb4664cf builder/vmware: Make vmx path absolute when checking if running 2013-06-08 19:03:51 -07:00
Mitchell Hashimoto 174ae65a12 builder/vmware: Handle interrupts while waiting for SSH 2013-06-08 18:56:28 -07:00
Mitchell Hashimoto a0664c7ec8 builder/vmware: Ability to set the guest OS type 2013-06-07 21:54:08 -07:00
Mitchell Hashimoto 09db84eb5e builder/vmware: Verify VMware is ready 2013-06-07 21:46:59 -07:00
Mitchell Hashimoto f73ae4ef71 builder/vmware: seed RNG 2013-06-07 16:23:24 -07:00
Mitchell Hashimoto fd42a21f48 builder/vmware: support custom vmx data 2013-06-07 16:20:58 -07:00
Mitchell Hashimoto d3ea7956bc builder/vmware: if no files to serve, don't start http server 2013-06-07 15:50:54 -07:00
Mitchell Hashimoto 85ab8621d4 builder/vmware: Randomize HTTP port to avoid collisions 2013-06-07 15:20:39 -07:00
Mitchell Hashimoto 56108f2b16 fmt 2013-06-07 15:12:24 -07:00
Mitchell Hashimoto 16295dfbf3 builder/vmware: tests for vnc_port_* settings 2013-06-07 15:11:13 -07:00
Mitchell Hashimoto 7a5dce0dc9 builder/vmware: proper port range for VNC 2013-06-07 14:58:49 -07:00
Mitchell Hashimoto 0596266776 builder/vmware: Add better logging 2013-06-07 14:50:07 -07:00
Mitchell Hashimoto 5947d77f05 builder/vmware: configure VNC port randomly 2013-06-07 14:48:59 -07:00
Mitchell Hashimoto 068e94c3ee builder/vmware: Don't step VNC stuff in createVMX 2013-06-07 13:29:27 -07:00
Mitchell Hashimoto 43b8ec3709 builder/vmware: Test the shutdown timeout 2013-06-06 16:31:21 -07:00
Mitchell Hashimoto 03e22c6323 builder/vmware: graceful shutdown 2013-06-06 16:30:37 -07:00
Mitchell Hashimoto c559ec7d71 builder/vmware: check if running prior to shutting down 2013-06-06 16:14:07 -07:00
Mitchell Hashimoto f851e56dbd builder/vmware: Artifacts implemented 2013-06-06 15:12:54 -07:00
Mitchell Hashimoto 378a7320a3 builder/vmware: A lot more validation, testing 2013-06-06 14:46:48 -07:00
Mitchell Hashimoto 057d656eda builder/vmware: Don't start HTTP server if we specified no files 2013-06-06 14:42:23 -07:00
Mitchell Hashimoto 1a5c9d300f builder/vmware: Better config validation, testing 2013-06-06 14:38:14 -07:00
Mitchell Hashimoto 275dc6d21f builder/vmware: Driver abstraction 2013-06-06 12:19:38 -07:00
Mitchell Hashimoto 9e9196eab8 builder/vmware: boot_wait is now a duration 2013-06-06 09:21:50 -07:00
Mitchell Hashimoto fd7d1fde70 builder/vmware: Log the timeout 2013-06-06 09:12:58 -07:00
Mitchell Hashimoto a3800625ac builder/vmware: Have an overall ssh wait timeout 2013-06-06 09:10:14 -07:00
Mitchell Hashimoto ca39d23636 builder/vmware: Run the provisioner 2013-06-06 08:42:38 -07:00
Mitchell Hashimoto c0e6fbd8ae builder/vmware: Connect to SSH 2013-06-05 23:16:40 -07:00
Mitchell Hashimoto aee611db4f builder/vmware: Support reading guest IP from DHCP 2013-06-05 21:51:16 -07:00
Mitchell Hashimoto 323647e3a6 builder/vmware: functions for parsing VMX 2013-06-05 21:01:22 -07:00
Mitchell Hashimoto 60dba3f8ef builder/vmware: GuestIP lookup interface 2013-06-05 20:53:34 -07:00
Mitchell Hashimoto dfee3eb8ef builder/vmware: Properly detect host IP 2013-06-05 20:40:39 -07:00
Mitchell Hashimoto b1bd71c133 builder/vmware: Create WaitForIP step 2013-06-05 20:04:55 -07:00
Mitchell Hashimoto d5cfa42e05 builder/vmware: Wait a minimum time before shutting down VM 2013-06-05 17:59:33 -07:00
Mitchell Hashimoto daf076bbd9 builder/vmware: Implement cancel 2013-06-05 17:52:37 -07:00
Mitchell Hashimoto aefb947fa9 builder/vmware: Support <wait>, send proper keycodes 2013-06-05 17:32:57 -07:00
Mitchell Hashimoto 6d610f1c6e builder/vmware: type the boot sequence 2013-06-05 17:15:16 -07:00
Mitchell Hashimoto 429ff62128 builder/vmware: Add a boot wait in seconds 2013-06-05 15:48:13 -07:00
Mitchell Hashimoto cd3523fd4f builder/vmware: Stop the run properly 2013-06-05 15:19:25 -07:00
Mitchell Hashimoto 8055e396a0 builder/vmware: Add the run step 2013-06-05 15:12:43 -07:00
Mitchell Hashimoto 9c27f5857b builder/vmware: Better commenting 2013-06-05 15:10:16 -07:00
Mitchell Hashimoto 5d465c2ff3 builder/vmware: comments for stepCreateVMX 2013-06-05 14:47:19 -07:00
Mitchell Hashimoto eb8278b21c builder/vmware: Start HTTP server to serve files 2013-06-05 14:24:48 -07:00
Mitchell Hashimoto 875951a817 builder/vmware: Enable VNC 2013-06-05 13:17:56 -07:00
Mitchell Hashimoto dca2795751 builder/vmware: Generate more correct VMX file 2013-06-04 17:00:29 -07:00
Mitchell Hashimoto 05a34d2fb1 builder/vmware: Create disk and create VMX file 2013-06-04 16:52:59 -07:00
Mitchell Hashimoto 2e57496a82 builder/vmware: Start it. Creates disks so far... 2013-06-04 15:00:58 -07:00