Commit Graph

202 Commits

Author SHA1 Message Date
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
Mitchell Hashimoto 5e3c8c4fe6 builder/virtualbox,vmware: support user templates in SSH key path
[GH-539]
2013-10-20 15:58:39 -07:00
Mitchell Hashimoto acd9f3c9a3 builder/vmware: always set msg.AutoAnswer 2013-09-05 13:44:57 -07:00
Mitchell Hashimoto 3fc00a2dfa builder/vmware: auto-answer dialogs [GH-393] 2013-09-05 13:43:01 -07:00
Greg Karékinian 2378b652ca Fix typo
s/Detatching/Detaching/
2013-09-02 12:46:47 +02:00
Mitchell Hashimoto f74ff91166 builder/vmware: new multistep API 2013-08-31 12:50:25 -07:00
Mitchell Hashimoto d54b0bd629 builder/vmware: support key based SSH auth [GH-70] 2013-08-27 22:57:42 -07:00
Mitchell Hashimoto 1566b4d858 builder/vmware: support vmx_template_path [GH-270] 2013-08-27 17:23:28 -07:00
Mitchell Hashimoto c753946c84 builder/vmware: ability to not request a PTY for SSH [GH-270] 2013-08-27 16:51:05 -07:00
Justin Bronn c6d1c8e9d5 Make it possible to customize the VMware virtual disk type id. 2013-08-22 11:40:56 -07:00
Mitchell Hashimoto 3fc069c48b builder/vmware: interrupts work during VNC type on VMware 2013-08-16 09:07:27 -07:00
Mitchell Hashimoto 64d87bfaf3 *: switch to packer ConfigTemplate 2013-08-15 19:17:23 -07:00
Mitchell Hashimoto 334cf37fbb builder/vmware: support iso_urls for multiple URLs [GH-110] 2013-08-15 17:46:41 -07:00
Mitchell Hashimoto b872448758 builder/vmware: switch to common download step 2013-08-15 17:46:41 -07:00
Mitchell Hashimoto 71664cb34e common: return -1 download percent if download hasn't started [GH-288] 2013-08-14 11:15:47 -04:00
Mitchell Hashimoto b879b17b1c builder/vmware: create driver in Run method 2013-08-13 08:54:12 -07:00
Mitchell Hashimoto 1b2d9c4044 builder/vmware: find files if they exist [GH-279] 2013-08-12 16:13:06 -07:00
Mitchell Hashimoto c2506e9410 builder/vmware: fix windows builds 2013-08-12 14:01:50 -07:00
Mitchell Hashimoto 060ae56b2d builder/vmware: nitpick some styles
/cc @rasa - I changed up quite a bit here. I tried to reduce function
count if possible, renamed some functions, etc. Overall the
functionality was all spot on, but I felt the functions were too
specialized. Thanks!
2013-08-09 17:31:43 -07:00
Ross Smith II 1e18249da9 fixed typo in vmware path on Windows XP, fixes #237/#238 2013-08-09 17:10:05 -07:00
Ross Smith II d4c45b412e Add support for VMWare Workstation on Windows XP, fixes #237 2013-08-09 17:09:55 -07:00
Mitchell Hashimoto 332bdf6edc builder/*, provisioner/*: set user vars 2013-08-09 15:57:08 -07:00
Mitchell Hashimoto c023588614 builder/vmware: error checking on upload path template 2013-08-08 17:25:25 -07:00
Mitchell Hashimoto 8bb5d40537 builder/vmware: use new template stuff 2013-08-08 17:25:25 -07:00
Mitchell Hashimoto 5b7d8fbc74 rename builder/common to common since it is generally useful 2013-08-01 12:11:54 -07:00
Mitchell Hashimoto 6b2c2db77e builder/vmware: slightly nicer error messages 2013-07-31 22:52:36 -07:00
Mitchell Hashimoto 69d6d8f1b6 builder/vmware: error message tweaking for Player driver 2013-07-31 22:15:13 -07:00