Commit Graph

148 Commits

Author SHA1 Message Date
Mitchell Hashimoto 115d583cff helper/communicator: make host more generic 2015-06-13 19:23:33 -04:00
Mitchell Hashimoto b61ed3adfc builder/vmware: convert to helper/comm 2015-06-13 18:52:44 -04:00
Mitchell Hashimoto d851898131 builder/vmware: mirror virtualbox output dir changes 2015-06-13 17:00:14 -04:00
Mitchell Hashimoto 3ba9d70b22 Merge pull request #1382 from sneal/AdditionalDisksForVMwareISO
Additional disks for vmware iso
2015-06-10 12:39:50 -07:00
Mitchell Hashimoto fafdfc962f vmware/common: detect Vmware 'unknown error' and show better message 2015-06-10 11:31:36 -07:00
Mitchell Hashimoto 23a48d6619 go fmt 2015-06-08 21:34:20 -07:00
Mitchell Hashimoto fa2bcb8bc5 update CHANGELOG 2015-06-08 21:33:53 -07:00
Mitchell Hashimoto 2373640881 Merge pull request #1663 from beezly/fix-vnc-missed-keys
Add 1/10th second delay between key events to VNC
2015-06-08 21:31:55 -07:00
Mitchell Hashimoto 9f0b8b71db virtualbox,vmware: http server should listen on IPv4 2015-06-08 20:47:47 -07:00
Eric Richardson 5f183026b3 Fix vmware compact_disk step when there are no additional disks 2015-06-04 08:22:50 -07:00
Eric Richardson fab9ca9cdb Initial work to implement additional disk support in the vmware-iso builder
* Matches the syntax from mitchellh/packer#703
* Creates disk(s), adds them to the vmx template, and runs compact at the end
2015-06-04 08:22:50 -07:00
Mitchell Hashimoto 7e74a38ff8 Merge pull request #2000 from cyberhouse/ifconfig-regex
Make the Vmware build extract the host IP properly from ifconfig stdout
2015-05-28 09:39:32 -07:00
Mitchell Hashimoto 7bd618b56b Merge pull request #1989 from marcomorain/upper-case-mac-address
Fix for VMWare on OSX – MAC address can be upper or lower case
2015-05-28 09:38:23 -07:00
jszwedko b1497b951c code.google.com/p/go.crypto/ssh -> golang.org/x/crypto/ssh
code.google.com/p/go.crypto/ssh is now at golang.org/x/crypto/ssh as of
https://code.google.com/p/go/source/detail?spec=svn.crypto.69e2a90ed92d03812364aeb947b7068dc42e561e&repo=crypto&r=8fec09c61d5d66f460d227fd1df3473d7e015bc6

Using the code.google.com import redirects properly, but runs into
issues if you try to use a subpackage of `ssh`, e.g. `agent` which
refers to golang.org/x/crypto/ssh causing conflicts if your types expect
code.google.com/p/go.crypto/ssh.

This is a precursor to a PR for #1066.
2015-05-28 08:17:49 -07:00
Mitchell Hashimoto 4bb16ac223 fix failing tests 2015-05-27 14:30:59 -07:00
Mitchell Hashimoto f5945eeb1b vmware/iso: new interpolation 2015-05-27 14:16:28 -07:00
Georg Großberger 8c0169b1c4 Make the Vmware build extract the host IP properly from ifconfig stdout 2015-03-25 14:45:15 +01:00
Marc O'Morain 9b2d219cab MAC address can be upper or lower case 2015-03-18 16:40:05 +00:00
Andrew Beresford a81c8905fb Add 1/10th second delay between key events to VNC 2015-03-09 13:58:46 +00:00
Emil Hessman fdb64f6f25 builder/vmware/common: fix missing format argument for Fatalf call in test
Fixes the following vet report:

builder/vmware/common/step_shutdown_test.go:130: missing argument for Fatalf("%s"): format reads arg 1, have only 0 args
2015-02-25 05:43:17 +01:00
Mitchell Hashimoto 0db6cd3533 Merge pull request #1330 from qur/qemu-vagrant
Qemu vagrant
2014-10-28 08:42:17 -07:00
Mitchell Hashimoto cdc0a53f92 builder/vmware: fix compilation issues 2014-10-28 08:37:12 -07:00
Mitchell Hashimoto e422a45449 fmt 2014-10-28 08:35:21 -07:00
Mitchell Hashimoto fc5db2604e builder/vmware: FUSION_APP_PATH to specify path [GH-1552] 2014-10-28 08:21:39 -07:00
Shawn Neal 5fd9651982 GH 1508 - Ensure Packer VMX is updated and saved
We need to ensure the VMWare process has exited before attempting to run VMX file cleanup steps, otherwise VMWare may overwrite our changes. While Packer does its best to ensure VMWare has exited, there's still a race condition on some OSs between VMWare flushing the VMX and Packer updating it. The workaround is to artifically wait 5 seconds.

When using the VMX builder its possible for the source machine to have a floppy and/or CD-ROM mounted which gets cloned to the new VM Packer spins up, but have no Packer configuration for those devices. With this change we always attempt to remove the mounted devices regardless of the Packer configuration.
2014-09-24 09:42:10 -07:00
Julian Phillips 90a57c411f Expand Artifact API to expose build state
In order that something consuming an artifact can have access to extra
builder specific data add the State method which allows the caller to
ask for arbitary values by name.
2014-09-22 11:15:47 +01:00
Shawn Neal 7d9c252b3a Clean VMX step should always remove floppy.
When using the VMX builder its possible for the source machine to have a floppy configured which gets cloned to the new VM Packer spins up. When the new VM's Packer config doesn't have a floppy_files config entry, the Packer clean VMX step fails to remove the floppy disk from the new VM. This can cause build failures, for example with the vsphere post processor; generating errors like:

* Post-processor failed: Failed: exit status 1
Error: File (/home/teamcity/tmp/buildTmp/packer941120499) could not be found.

Opening the cloned VM's VMX file you can clearly see it has a floppy entry from the source machine's VMX file (exact same path) even though the Packer config contains no floppy_files entry.
2014-09-16 18:27:00 -07:00
Ross Smith II a7aa20c8c7 Add support for VMware Fusion 7 Pro [GH-1478] 2014-09-10 10:14:50 -07:00
Mitchell Hashimoto 75395af12d Merge branch '1064-fix-upload-file-permissions' of github.com:rasa/packer into rasa-1064-fix-upload-file-permissions
Conflicts:
	builder/parallels/common/step_upload_parallels_tools.go
	builder/vmware/common/step_upload_tools.go
	provisioner/chef-client/provisioner.go
	provisioner/chef-solo/provisioner.go
2014-09-08 13:20:46 -07:00
Mitchell Hashimoto 812ba35479 fmt 2014-09-08 10:28:21 -07:00
Mitchell Hashimoto 1a45b96674 builder/vmware: add VNC to vmx 2014-09-05 12:10:40 -07:00
Mitchell Hashimoto b72605c2f6 builder/vmware: style 2014-09-05 12:01:07 -07:00
Mitchell Hashimoto 759c46487c builder/vmware-vmx: support http files 2014-09-05 11:59:46 -07:00
Mitchell Hashimoto c74f0c7cfe Merge branch '1082-add-boot-commands-to-vmx-and-ovf-builders' of github.com:rasa/packer into rasa-1082-add-boot-commands-to-vmx-and-ovf-builders
Conflicts:
	builder/virtualbox/ovf/config.go
	builder/vmware/vmx/config.go
2014-09-05 11:42:01 -07:00
Mitchell Hashimoto 71d0c39ef9 builder/vmware: better error if clone not supported [GH-787] 2014-09-05 11:28:43 -07:00
Mitchell Hashimoto ac58773eed builder/vmware: better error output from vmrun 2014-09-05 11:27:33 -07:00
Mitchell Hashimoto cf731bf65c builder/vmware: no error if stopping already stopped [GH-1300] 2014-09-05 10:29:35 -07:00
Mitchell Hashimoto 67afff5ede fmt 2014-09-03 21:27:54 -07:00
Mitchell Hashimoto 76a8221636 builder/*: extract key path to ssh.Signer 2014-09-03 20:23:39 -07:00
Mitchell Hashimoto 8d88aaf150 Merge pull request #1168 from rasa/972-add-clone-support-for-vmware-player-6-v2
builder/vmware: add VMWare Player 6 support
2014-09-02 11:08:18 -07:00
Mitchell Hashimoto ba3bae8a65 Merge pull request #1239 from StefanScherer/fix_skip_floppy_in_vmx_data_post_step
builde/vmware: skip adding floppy again in vmx_data_post step
2014-09-02 10:02:17 -07:00
Mitchell Hashimoto 3827c02126 Merge pull request #1396 from ianunruh/feature/vmware-ssh-host-template
builder/vmware: Add templating to VMware SSH host option
2014-09-02 09:19:50 -07:00
Fabio Rapposelli d2a9a98eeb Fixed multiple VMware typos. 2014-08-22 10:07:36 +02:00
Ian Unruh 100200e1ae Add templating to VMware SSH host option 2014-08-07 11:11:08 -04:00
Yuya Kusakabe 2b8ebe65e4 Resolves #1256, add warning mesasge to VMware ESXi driver 2014-06-25 11:20:24 +09:00
StefanScherer 9dc06b608e increase VMware cleanup timeout to 120 seconds 2014-06-20 01:07:40 +02:00
StefanScherer de5c38e6c5 skip adding floppy again in vmx_data_post step 2014-06-09 01:02:21 +02:00
Ross Smith II e93697ab4e builder/virtualbox-ovf,vmware-vmx: add `boot_command` support
Fixes #1082
2014-05-12 21:19:24 -07:00
Ross Smith II 750ffc8a54 builder/vmware: add VMWare Player 6 support
Also added VMWare Player support in Windows
Fixes #972
2014-05-12 18:35:37 -07:00
Ross Smith II 38d1d7fd3c Update vmx_config.go
Tiny typo.
I really should add a unit test here.
2014-05-12 14:43:12 -07:00
Ross Smith II b397d75a52 Update driver_workstation9.go
1 line typo
2014-05-11 08:46:19 -07:00
Mitchell Hashimoto 6a930d819c builder/vmware/common: remove unnecessary tags 2014-05-10 10:21:44 -07:00
Mitchell Hashimoto d925331902 fmt 2014-05-10 10:19:35 -07:00
Mitchell Hashimoto ad72c5a4bb builder/vmware/common: more tests 2014-05-10 10:19:14 -07:00
Mitchell Hashimoto 7e991af48e builder/vmware/common: tests for StepPrepareTools
/cc @rasa - an example
2014-05-10 10:16:53 -07:00
Mitchell Hashimoto 1b1d87128c Merge pull request #1154 from rasa/765-add-tools-upload-flavor-support-in-vmware-vmx
builder/vmware-vmx: Added tools_upload_flavor support
2014-05-10 10:07:34 -07:00
Ross Smith II 779c7184a2 go fmt 2014-05-09 21:12:14 -07:00
Ross Smith II ba13239672 builder/vmware-vmx: Added tools_upload_flavor support 2014-05-09 17:24:19 -07:00
Ross Smith II bdfac49410 builder/vmware: added vmx_data_post option 2014-05-09 09:25:15 -07:00
Ross Smith II f2186fa6ff Merge pull request #995 from asatara/add-ssh-host-vmware
Added ssh_host variable to vmware iso builder
2014-04-28 11:33:40 -07:00
Mitchell Hashimoto 91574c3a60 builder/vmware: fix builds 2014-04-26 12:25:18 -07:00
Mitchell Hashimoto e84e5e4f2c Merge branch 'update-ssh-package' of github.com:higebu/packer into higebu-update-ssh-package
Conflicts:
	builder/amazon/common/ssh.go
	builder/digitalocean/ssh.go
	builder/googlecompute/ssh.go
	builder/openstack/ssh.go
	communicator/ssh/communicator_test.go
	communicator/ssh/keychain.go
	communicator/ssh/keychain_test.go
2014-04-26 11:12:06 -07:00
higebu 37b92dff3a Fix unknown command and syntax error of the ESX5Driver 2014-04-22 00:27:33 +09:00
Ross Smith II 3f4baf4aec Merge pull request #1011 from rasa/add-cloning-in-windows
builder/vmware-vmx: add cloning support on Windows [GH-824]
2014-04-21 07:38:05 -07:00
higebu f087ce16dc Fix the build problem by updating ssh package 2014-04-15 10:17:26 +09:00
Ross Smith II 27491f93f8 use old ssh code until higebu's branch is ready, see #1019 2014-04-11 08:23:12 -07:00
Ross Smith II d420947db6 added %s for productVersion param 2014-04-06 15:50:19 -07:00
Ross Smith II 72924f0d56 builder/vmware-vmx: add cloning support on Windows [GH-824] 2014-04-06 15:31:49 -07:00
asatara ecbb0e8498 Added ssh_address variable to vmware builders 2014-03-31 11:54:14 -07:00
Mitchell Hashimoto 3c59d0ef96 builder/vmware/common: fix failing tests on Windows 2014-03-07 10:29:04 -08:00
Mitchell Hashimoto 68524a3840 builder/vmware/common: fix build tag for Windows 2014-03-07 10:22:33 -08:00
Mitchell Hashimoto 4576093c17 fmt 2014-02-24 08:26:51 -08:00
Paul Myjavec 3ea4aa1a5a added workstation 10 driver for linux 2014-02-21 15:20:54 +11:00
Paul Myjavec 6e7a69372a these functions can be shared by 9 and 10 vmware workstation drivers 2014-02-20 20:08:57 +11:00
Mitchell Hashimoto eeadafc452 builder/vmware/*: can specify path to fusion [GH-677] 2013-12-27 08:37:39 -07:00
Mitchell Hashimoto f134bcc3f4 builder/vmware/common: better UI when forcibly shutting down 2013-12-26 15:34:53 -07:00
Mitchell Hashimoto 7f38cea9f3 builder/vmware/vmx: shutdown 2013-12-26 15:31:23 -07:00
Mitchell Hashimoto e11f655d22 builder/vmware/vmx: run the VMs 2013-12-26 15:26:09 -07:00
Mitchell Hashimoto 286edcb2b4 builder/vmware/vmx: configure VMX 2013-12-26 15:14:19 -07:00
Mitchell Hashimoto 03fb5fb0f1 builder/vmware/common: Fusion6 driver can clone 2013-12-26 15:03:12 -07:00
Mitchell Hashimoto 8fecdf179d builder/vmware/common: Fusion6Driver 2013-12-26 14:54:26 -07:00
Mitchell Hashimoto f23d66a1b9 builder/vmware/vmx: clone vmx 2013-12-26 14:39:41 -07:00
Mitchell Hashimoto 141cfeb4bb builder/vmware/vmx: outputdir 2013-12-25 16:01:57 -07:00
Mitchell Hashimoto 16911d75e9 builder/vmware: move drivers out to common 2013-12-25 15:50:12 -07:00
Mitchell Hashimoto bee879409a builder/vmware: new artifact type that is common 2013-12-25 11:27:53 -07:00
Mitchell Hashimoto 4f32692fd5 builder/vmware: StepShutdown 2013-12-24 23:33:49 -07:00
Mitchell Hashimoto 87ab914a3c builder/vmware: StepCompactDisk 2013-12-24 23:09:22 -07:00
Mitchell Hashimoto f01b21c610 builder/vmware: StepCleanVMX 2013-12-24 18:40:52 -07:00
Mitchell Hashimoto 8f8ea60b4f builder/vmware/common: StepCleanFiles 2013-12-24 18:17:58 -07:00
Mitchell Hashimoto 95e0e465cf builder/vmware: move StepRun to common 2013-12-24 18:12:43 -07:00
Mitchell Hashimoto 6cf8d9b319 builder/vmware/common: StepSuppressMessages 2013-12-24 14:26:44 -07:00
Mitchell Hashimoto e5f674a8c2 builder/vmware/common: Mock driver and test for DHCP Lease IP lookup 2013-12-24 11:55:44 -07:00
Mitchell Hashimoto 458bfd186f builder/vmware: move driver out of ISO 2013-12-24 11:31:57 -07:00
Mitchell Hashimoto d73cbd3744 builder/vmware/common: make the dir private for LocalOutputDir 2013-12-24 11:22:22 -07:00
Mitchell Hashimoto 50f8b2c1a3 builder/vmware: move outputdir stuff to common 2013-12-24 11:21:02 -07:00
Mitchell Hashimoto 8bd3ca4470 builder/vmware/common: shuffling stuff around 2013-12-24 11:00:51 -07:00
Mitchell Hashimoto 29931cd0c0 builder/vmware/common: SSHConfig 2013-12-23 23:27:01 -07:00
Mitchell Hashimoto 33452c2dfd builder/vmware: add more stuff to common 2013-12-23 23:07:43 -07:00