228 Commits

Author SHA1 Message Date
Mitchell Hashimoto
8d963501d7 builder/vmware/iso: set SSHConfig 2013-12-25 10:44:10 -07:00
Mitchell Hashimoto
4f32692fd5 builder/vmware: StepShutdown 2013-12-24 23:33:49 -07:00
Mitchell Hashimoto
6c4af2d75f builder/vmware/iso: convert stepShutdown to use OutputDir for cleanup 2013-12-24 23:16:13 -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
7f86fa5fef builder/vmware/iso: Move remote registration out to separate step 2013-12-24 14:39:52 -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
6d83ef5499 builder/vmware/iso: move VMX methods out to the common 2013-12-23 23:09:47 -07:00
Mitchell Hashimoto
33452c2dfd builder/vmware: add more stuff to common 2013-12-23 23:07:43 -07:00
Mitchell Hashimoto
91392feb58 builder/vmware/iso: fix package name 2013-12-23 22:58:41 -07:00
Mitchell Hashimoto
d1e68875a7 builder/vmware: move to iso package 2013-12-23 22:58:13 -07:00
Mitchell Hashimoto
5ab83238bf builder/vmware: separate step to configure vmx 2013-12-23 14:38:54 -08:00
Mitchell Hashimoto
69f971094c builder/vmware: style 2013-12-18 08:40:35 -08:00
Mitchell Hashimoto
6aef114372 go fmt 2013-12-11 11:19:36 -08:00
Mitchell Hashimoto
2789281285 builder/vmware: clarify guestiphack error message [GH-639] 2013-12-07 10:31:57 -08:00
Mitchell Hashimoto
8766a93245 builder/vmware: correct logic in cehcking if file is still there 2013-12-06 19:12:49 -08:00
Mitchell Hashimoto
6211cd2028 builder/vmware: more resilient to racing deletes [GH-675] 2013-12-06 19:11:40 -08:00
adrian kalaveshi
d0387d1d3a Trivial bug fix in mechanism to clean installation ISOs for VMware builder
The resolution of Bug #608 still had issues.  This change removes a
superfluous period.

Testing Done:
- built packer with my change
- built VMware VMs and saw that the vmx file had the expected
  changes.
2013-12-05 21:36:34 +00:00
Mitchell Hashimoto
b787d6fb1d builder/vmware: ESX artifacts have a different builder ID
This is so that things like vagrant post-processors and vsphere
post processors don't work.
2013-11-18 16:10:55 -08:00
Doug MacEachern
4af1c7f1b2 builder/vmware: Double check that OutputDirectory does not already exist
The initial check in Builder.Prepare does not use the OutputDir interface.
stepPrepareOutputDir also checks if OutputDir exists, error out there unless
using -force so we get the same behavior when RemoteType is esx5.
2013-11-12 13:11:02 -08:00
Doug MacEachern
3f5a02cf2a builder/vmware: Add ListFiles and Remove methods to OutputDir interface
- Fixes builder/vmware when using RemoteType esx5,
  as there is no longer a local OutputDir
2013-11-12 12:49:57 -08:00
Doug MacEachern
9655be5582 builder/vmware: Path related fixes in esx5 driver
- Fix mkdir of packer_cache in ESX5Driver.UploadISO

- Fix vmx path in ESX5Driver.IsRunning
2013-11-12 09:17:28 -08:00
Mitchell Hashimoto
d88cb09d32 builder/vmware: ctrl-c works during wait for boot 2013-11-12 16:20:52 +00:00
Mitchell Hashimoto
c8a6def83d builder/vmware: downcase more vmx data 2013-11-08 14:21:31 -08:00
Mitchell Hashimoto
e4f1dcb6f9 builder/vmware: Fusion suppresses upgrade requests 2013-11-08 12:19:09 -08:00
Mitchell Hashimoto
781332b297 builder/vmware: fix local output dir exists check 2013-11-08 11:48:04 -08:00
Mitchell Hashimoto
52fb77a883 builder/vmware: case-insensitive VMX creation [GH-608] 2013-11-07 22:06:30 -08:00
Mitchell Hashimoto
47ac6897de builder/vmware: start/stop ESXi5 VMX with proper path 2013-11-07 21:22:12 -08:00
Mitchell Hashimoto
ba8a0dbec0 builder/vmware: only unregister if registration success 2013-11-07 21:19:24 -08:00
Mitchell Hashimoto
e5ae542142 builder/vmware: register the VMX to the proper path on esx 2013-11-07 21:18:25 -08:00
Mitchell Hashimoto
2ccc5e80c7 builder/vmware: log when writing a VMX 2013-11-07 21:03:15 -08:00
Mitchell Hashimoto
b228723903 builder/vmware: for remote builds, put VMX in temp dir 2013-11-07 21:02:12 -08:00
Mitchell Hashimoto
a4b54f1cf3 builder/vmware: set proper default disk type for esx 2013-11-07 20:57:05 -08:00
Mitchell Hashimoto
148d7c06ab builder/vmware: make upload dst,src like normal go 2013-11-07 20:47:15 -08:00
Mitchell Hashimoto
2c8843b4de builder/vmware: esx file check works properly 2013-11-07 20:46:34 -08:00
Mitchell Hashimoto
8a8ac430d1 builder/vmware: upload the ISO to the ESXi machine 2013-11-07 12:28:41 -08:00
Mitchell Hashimoto
483cda18c1 builder/vmware: make things more Go-like
This commit currently breaks the builder though, since the ISo is now
uploaded back into ESX.
2013-11-07 12:01:18 -08:00
Doug MacEachern
a828a9a064 builder/vmware: new driver to support building images directly on ESX
This driver talks directly to ESX over ssh, using vim-cmd, esxcli and sh;
no vCenter or VIM api required.

Remote* config properties added to support a remote driver

RemoteDriver interface extends Driver:
* SSHAddress - esx flavor uses esxcli to find the VM's ip address
* Download - esx flavor downloads iso files to a vmfs datastore

Driver can optionally implement the following interfaces:
* VNCAddressFinder - esx flavor needs to check remote ports
* OutputDir - esx driver needs a local and remote OutputDir
* Inventory - esx driver needs to register/unregister VMs
* HostIPFinder - esx flavor needs an address on the same network as esx itself
2013-11-07 12:01:18 -08:00
Mitchell Hashimoto
7aab3381f1 builder/vmware: check for ifconfig in /sbin [GH-591] 2013-11-04 14:34:51 -08:00
Mitchell Hashimoto
cf0ac15ecc builder/vmware: force LANG=C for ifconfig [GH-592] 2013-11-04 14:26:18 -08:00
Mitchell Hashimoto
9acaa97a32 builder/virtualbox,vmware: warning if shutdown_command is not specified 2013-11-02 23:17:21 -05:00
Mitchell Hashimoto
a6150e6596 builder/all: update to warnings 2013-11-02 23:03:59 -05:00