Commit Graph
208 Commits
Author SHA1 Message Date
Mitchell Hashimoto c8c0c9d76c builder/vmware: style 2013-12-18 08:40:35 -08:00
Mitchell Hashimoto c09f37a68b go fmt 2013-12-11 11:19:36 -08:00
Mitchell Hashimoto d125dc9244 builder/vmware: clarify guestiphack error message [GH-639] 2013-12-07 10:31:57 -08:00
Mitchell Hashimoto ea09c1105c builder/vmware: correct logic in cehcking if file is still there 2013-12-06 19:12:49 -08:00
Mitchell Hashimoto b12871dc28 builder/vmware: more resilient to racing deletes [GH-675] 2013-12-06 19:11:40 -08:00
adrian kalaveshi a2de093b72 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 99605a0816 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 9c32d73f2e 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 afa9f4aa3e 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 2503f8a4ba 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 7992693737 builder/vmware: ctrl-c works during wait for boot 2013-11-12 16:20:52 +00:00
Mitchell Hashimoto aa59cd55ae builder/vmware: downcase more vmx data 2013-11-08 14:21:31 -08:00
Mitchell Hashimoto 8062fd729d builder/vmware: Fusion suppresses upgrade requests 2013-11-08 12:19:09 -08:00
Mitchell Hashimoto 1915c00525 builder/vmware: fix local output dir exists check 2013-11-08 11:48:04 -08:00
Mitchell Hashimoto 7495f5bd26 builder/vmware: case-insensitive VMX creation [GH-608] 2013-11-07 22:06:30 -08:00
Mitchell Hashimoto 226c244a46 builder/vmware: start/stop ESXi5 VMX with proper path 2013-11-07 21:22:12 -08:00
Mitchell Hashimoto f88301a890 builder/vmware: only unregister if registration success 2013-11-07 21:19:24 -08:00
Mitchell Hashimoto 5f380a614f builder/vmware: register the VMX to the proper path on esx 2013-11-07 21:18:25 -08:00
Mitchell Hashimoto 4fd6b3222f builder/vmware: log when writing a VMX 2013-11-07 21:03:15 -08:00
Mitchell Hashimoto d1134ea788 builder/vmware: for remote builds, put VMX in temp dir 2013-11-07 21:02:12 -08:00
Mitchell Hashimoto 8dba90e4ad builder/vmware: set proper default disk type for esx 2013-11-07 20:57:05 -08:00
Mitchell Hashimoto 13a420fe50 builder/vmware: make upload dst,src like normal go 2013-11-07 20:47:15 -08:00
Mitchell Hashimoto a665e01ba8 builder/vmware: esx file check works properly 2013-11-07 20:46:34 -08:00
Mitchell Hashimoto aba932b58b builder/vmware: upload the ISO to the ESXi machine 2013-11-07 12:28:41 -08:00
Mitchell Hashimoto 4d299ee41d 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 e7542ff33d 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 d740015ef4 builder/vmware: check for ifconfig in /sbin [GH-591] 2013-11-04 14:34:51 -08:00
Mitchell Hashimoto dd6b5f0d85 builder/vmware: force LANG=C for ifconfig [GH-592] 2013-11-04 14:26:18 -08:00
Mitchell Hashimoto f40a6e21aa builder/virtualbox,vmware: warning if shutdown_command is not specified 2013-11-02 23:17:21 -05:00
Mitchell Hashimoto f9747ad110 builder/all: update to warnings 2013-11-02 23:03:59 -05:00