Jason A. Beranek
b6eb3eba1d
builder/vmware-esxi: Add configuration options for remote cache path
...
Add configuration option to explicitly control where Packer uploads
ISO and floppy files to on ESXi hosts. The `remote_cache_datastore`
defaults to the `remote_datastore` value. The 'remote_cache_directory'
defaults to 'packer_cache', similar to the local caching capabilities.
Addresses issues with [GH-1218] and [GH-1221] where paths for uploaded
ISO and floppy files are not written to a valid location in the
datastore.
2014-09-10 00:10:06 -05: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
caca50324e
Merge pull request #1426 from jasonberanek/vnc-fixes
...
vmware-iso/esxi: fix multiple issues with VNC address discovery
2014-09-05 10:45:17 -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
953fd27a27
Merge pull request #1167 from rasa/1057-add-floppy-files-to-vmware-vmx-v2
...
builder/vmware-vmx: add floppy_files support
2014-09-02 11:09:25 -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
Jason A. Beranek
ebdfa2bc56
vmware-iso/driver-esxi: Fix VNC detection of used ports
...
Fixes error in earlier commit that didn't properly detect a port
was listened to.
2014-08-20 20:42:05 -05:00
Jason A. Beranek
93e4475d6a
vmware-iso/driver-esxi: Detect VNC in cross-platform way [GH-1372]
...
Use VMware calls to determine ports being listened to, and determine
free VNC port
2014-08-18 21:50:48 -05:00
Jason A. Beranek
2c41d59e21
vmware-iso: Update VNCAddressFinder interface to return errors from VNCAddress()
2014-08-18 20:34:37 -05:00
Jason A. Beranek
6acbc91ff7
vmware-iso: Fix error vnc min/max ports [GH-1288]
2014-08-18 20:15:15 -05:00
notogawa
eacae832ad
Fixes #1334 , Add power on retry to ESXi Driver.
2014-08-11 16:43:34 +09:00
Ian Unruh
100200e1ae
Add templating to VMware SSH host option
2014-08-07 11:11:08 -04:00
Ross Smith II
2c8ea2b6d2
Merge pull request #1361 from sneal/do-not-add-floppy-files-to-vmx
...
Do not re-add floppy disk files to VMX
2014-07-21 18:09:19 -07:00
Shawn Neal
05ebc8f316
Do not re-add floppy disk files to VMX
...
This commit fixes errors like this in the vsphere post-processor when using floppy files in the builder step:
Error: File (/var/folders/zl/57c1vmr532z_ryf1scw53_b9ycmxh7/T/packer964492999) could not be found
The configure VMX step re-adds the floppy files, so we need to configure the VMX and _then_ clean the VMX in that order.
2014-07-21 17:06:43 -07:00
Mitchell Hashimoto
67bad68c9f
Merge pull request #1250 from higebu/check-upload-iso-hash
...
builder/vmware/esxi: checksum iso upload to not always upload
2014-07-19 09:42:26 -07:00
yuuzi41
982e523ba2
fix invalid esx5 path separator in windows
...
before, this code had joining path elements by filepath module. filepath module generate path string with backslash-joined in Windows. but ESX require path string with slash-joined. it means that this code generate illegal path string in windows. illegal path string raised "Error creating disk".
this patch fixes path separator from backslash to slash in windows. from this, creating disk would succeed without error.
2014-07-02 21:55:47 +09: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
Yuya Kusakabe
6ff38c86ea
Fixes #1244 , Add a check for upload iso hash to ESXi Driver
2014-06-12 14:33:34 +09: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
8313856949
builder/vmware-vmx: add floppy_files support
2014-05-12 18:24:03 -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
d92179847d
provisioner/file: set file/directory permissions
...
fixes #1064
2014-05-09 21:03:35 -07:00
Mitchell Hashimoto
e9727df15e
Merge pull request #1146 from higebu/fix-esxi-driver-iso-upload-path
...
Fixes #1062 , ESXi Driver supports PACKER_CACHE_DIR
2014-05-09 19:56:28 -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
Yuya Kusakabe
6dc858e6cf
Fixes #1062 , ESXi Driver supports PACKER_CACHE_DIR
2014-05-09 13:16:18 +09:00
Jaime Soriano Pastor
32bb745734
Force LANG=C before appending rest of environment, as only first occurence is used
2014-05-08 17:11:19 +02:00
Ross Smith II
bea167a48e
builder/vmware-vmx: add floppy_files support
...
fixes #1057
2014-05-06 17:20:26 -07:00
Jakob A. Dam
40150c376d
Fix http_files typo in comments
2014-05-06 17:13:15 +02:00
Yuya Kusakabe
5cac40b47c
Fixes #1106 , Remote ESXi builder doesn't upload floppy
2014-05-03 18:41:00 +09:00
Yuya Kusakabe
7ff781b258
Revert the way to retrieve vm ip in VMware ESXi Driver
2014-05-03 00:25:58 +09: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
5fac6c79c4
fmt
2014-04-26 11:12:43 -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
Mitchell Hashimoto
9a62269116
Merge pull request #900 from pmyjavec/ws10-linux-driver
...
VMWare Workstation 10 driver for Linux
2014-02-24 08:25:03 -08:00
Mitchell Hashimoto
e3c0715eab
fmt
2014-02-21 15:11:56 -08:00
Mitchell Hashimoto
d44a42b04f
Merge pull request #884 from pmyjavec/vmware-iso-driver-fix
...
builder/vmware: get host IP by creating & inspecting connection, allows hypervisor...
2014-02-21 15:11:35 -08:00
Mitchell Hashimoto
9f7670a50f
builder/vmware-iso: output upload error [GH-899]
2014-02-21 14:07:25 -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
Paul Myjavec
aedef06016
esx5, Get host IP by creating & inspecting connection, allows hypervisor to reside in other networks
2014-02-20 19:37:12 +11:00
Mitchell Hashimoto
430963f400
fmt
2014-01-19 19:30:11 -08:00
Myles Steinhauser
28286d2821
Fix tabs vs spaces
2014-01-13 00:03:10 -05:00
Myles Steinhauser
e4cfcb2a8a
Add more special scancodes
2014-01-10 12:40:43 -05:00
Mitchell Hashimoto
12938fe36b
builder/virtualbox,vmware: checksum not required if checksum type is
...
none
2014-01-04 11:10:13 -08:00
Mitchell Hashimoto
c74b3758d3
builder/vmware-iso: ESX5Driver impl OutputDir [GH-773]
2014-01-01 20:55:08 -08:00
Mitchell Hashimoto
2b801a7b12
builder/vmware,virtualbox: checksum_type can be "none" [GH-471]
2013-12-28 09:59:47 -07:00
Mitchell Hashimoto
eeadafc452
builder/vmware/*: can specify path to fusion [GH-677]
2013-12-27 08:37:39 -07:00
Mitchell Hashimoto
9362cb5364
builder/vmware/vmx: set the full_disk_path so compacting works
2013-12-26 15:44:39 -07:00
Mitchell Hashimoto
8e75075ec9
builder/vmware/vmx: compact disk
2013-12-26 15:35:37 -07:00
Mitchell Hashimoto
f134bcc3f4
builder/vmware/common: better UI when forcibly shutting down
2013-12-26 15:34:53 -07:00
Mitchell Hashimoto
2b3d98d48d
builder/vmware/vmx: create artifact
2013-12-26 15:32:38 -07:00
Mitchell Hashimoto
7f38cea9f3
builder/vmware/vmx: shutdown
2013-12-26 15:31:23 -07:00
Mitchell Hashimoto
ac8354ad9c
builder/vmware/vmx: step connect SSH
2013-12-26 15:28:15 -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
82fad98b07
builder/vmware/vmx: set the settings for cloning vmx
2013-12-26 08:36:00 -07:00
Mitchell Hashimoto
eeeaec3562
builder/vmware/vmx: StepCloneVMX
2013-12-26 08:34:27 -07:00
Mitchell Hashimoto
141cfeb4bb
builder/vmware/vmx: outputdir
2013-12-25 16:01:57 -07:00
Mitchell Hashimoto
6fdcb0f832
builder/vmware/vmx: initial stuff
2013-12-25 15:52:40 -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
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
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
Julian Phillips
df180d6146
builder/vmware: We only need one runAndLog function
...
We shouldn't need a different one for each driver ...
Conflicts:
builder/vmware/driver_workstation9.go
2013-07-31 22:11:07 -07:00
Julian Phillips
7b65daad37
builder/vmware: Add Support for VMware Player 5 (Linux)
...
We have two choices for VMware on Linux. We already support
Workstation, add support for Player too.
VMware Player doesn't come with vmware-vdiskmanager, so fall back to
using qemu-img if we can find that.
Conflicts:
builder/vmware/driver.go
2013-07-31 22:09:38 -07:00
Mitchell Hashimoto
54adabfd39
builder/vmware: sleep before cleaning files on Windows
2013-07-31 15:36:22 -07:00
Mitchell Hashimoto
558027465a
builder/virtualbox,vmware: retry removing output dir if fails
2013-07-31 15:16:39 -07:00
Mitchell Hashimoto
8ac03e4898
builder/vmware: compile host_ip on every platform
2013-07-31 15:10:28 -07:00
Mitchell Hashimoto
1286f735be
builder/vmware: redo host IP stuff for Windows
2013-07-31 14:46:12 -07:00
Mitchell Hashimoto
f4adb35b9a
builder/vmware: more logs for Workstation
2013-07-31 14:02:00 -07:00
Mitchell Hashimoto
6aacf20167
builder/vmware: convert line endings in workstation to Unix-style
2013-07-31 13:58:57 -07:00
Mitchell Hashimoto
8ac86e49d0
builder/vmware: improved logging for various workstation steps
2013-07-31 13:50:49 -07:00
Mitchell Hashimoto
d1e0e955ab
builder/vmware: verify various paths exist for Workstation
2013-07-31 12:39:49 -07:00
Mitchell Hashimoto
422f25749e
builder/vmware: refactor the platform-specific stuff out
...
/cc @rasa - This is more idiomatic Go: to share the platform-independent
stuff and make the platform-specific stuff unexported functions
2013-07-31 12:36:17 -07:00
Mitchell Hashimoto
fc89919347
Merge branch 'master' of https://github.com/rasa/packer into rasa-master
2013-07-31 11:52:20 -07:00
Mitchell Hashimoto
0363a1cdc2
builder/virtualbox,vmware: use DownloadableURL
2013-07-29 00:13:30 -07:00
Ross Smith II
cf46148300
added missing fallthru in case statement for linux option, fixes #221 , #222
2013-07-28 20:41:09 -07:00
Ross Smith II
56c383cf68
gofmt fixes, improved/added log messages, fixes #221/#222
2013-07-27 14:59:23 -07:00
Ross Smith II
071a6099c8
fixes #221 Add support for VMWare Workstation in Windows
2013-07-27 13:00:21 -07:00
Mitchell Hashimoto
56c3cbfb2a
builder/common: common config struct for Packer configs
2013-07-23 22:48:31 -05:00
Mitchell Hashimoto
665b03a342
fmt
2013-07-23 22:36:09 -05:00
Mitchell Hashimoto
f6854ae07e
builder/vmware: more flexible ISO removing
...
/cc @timsutton - This is a bit more flexible.
2013-07-20 19:08:20 -07:00
Mitchell Hashimoto
e05e83f9c8
Merge pull request #203 from timsutton/vmware-eject-isos
...
builder/vmware: Remove ISO from ide1 in stepCleanVMX
2013-07-20 16:59:55 -07:00
Mitchell Hashimoto
91c1bf0b8a
Merge pull request #204 from sit/builder-output-directory-error
...
builder/v*: Include path to output dir in error
2013-07-20 16:58:39 -07:00
Mitchell Hashimoto
e84811e2f8
Update changelog
2013-07-20 16:37:48 -07:00
JD Harrington
dbd45dfd58
Add special keys for backspace, delete and F1-F12
2013-07-20 15:37:01 -04:00
Emil Sit
329266e86e
builder/v*: Include path to output dir in error
2013-07-20 00:36:59 -04:00
Timothy Sutton
0c7efde103
Remove ISO from ide1 in stepCleanVMX
2013-07-19 20:46:26 -04:00
Mitchell Hashimoto
16d102d055
builder/*: switch to MultiErrorAppend
2013-07-19 19:08:25 -04:00
Mitchell Hashimoto
42059f9b07
builder/*: extract to common the config decoding
2013-07-19 15:00:32 -04:00
Doug MacEachern
e531af96e1
fix Fusion DhcpLeasesPath
2013-07-17 13:03:05 -07:00
Mitchell Hashimoto
9d31a49fad
builder/vmware: look for license for WS9
2013-07-16 14:58:16 -07:00
Mitchell Hashimoto
d126c45d77
builder/vmware: workstation 9 show stderr if command fails
2013-07-16 14:46:34 -07:00
Mitchell Hashimoto
a9252959ba
builder/vmware: wording
2013-07-16 14:23:52 -07:00
Mitchell Hashimoto
05e081e07f
builder/vmware: split drivers out into individual files
2013-07-16 14:23:01 -07:00
Julian Phillips
4846d252a3
builder/vmware: Add support for Workstation 9 (Linux).
...
Now the VMware builder should automatically pick between Fusion 5 and
Workstation 9, based on which one is installed.
2013-07-16 14:11:59 -07:00
Mitchell Hashimoto
29279415d0
builder/vmware: error if guest IP is blank [GH-189]
2013-07-16 11:05:47 -07:00
Mitchell Hashimoto
8e1e40c096
builder/*: convert to common StepProvision
2013-07-16 15:44:41 +09:00
Mitchell Hashimoto
fd58b33b38
builder/vmware: convert to cmmon ssh step
2013-07-15 14:22:13 +09:00
Mitchell Hashimoto
9387ba0fd4
packer: Make builder type available in configs [GH-154]
2013-07-15 09:58:32 +09:00
Mitchell Hashimoto
6b6beae3b8
builder/vmware: unexport calculted config fields
2013-07-14 21:23:46 +09:00
Mitchell Hashimoto
a0f1667df1
communicator/ssh: tweakable timeout on retry connection
2013-07-14 21:05:22 +09:00
Mitchell Hashimoto
2fff555e7f
fmt
2013-07-14 20:55:27 +09:00
Mitchell Hashimoto
9718a4656c
communicator/ssh: have a Connection func so we can re-establish
...
[GH-152]
2013-07-14 20:22:57 +09:00
Mitchell Hashimoto
569ec0a2bb
builder/vmware: generic checksum types [GH-175]
2013-07-14 15:58:56 +09:00
Mitchell Hashimoto
3b4ef72e47
Unused keys are invalid in templates [GH-104]
2013-07-14 09:28:56 +09:00
Mitchell Hashimoto
245deaf599
buidler/virtualbox,vmware: only stat if not force
...
/cc @jasonberanek - Swapped this because why even bother doing a stat
if we're forcing anyways.
2013-07-13 14:47:08 +09:00
Jason A. Beranek
9c31c69a7b
Remove output directory in a step when "-force" flag step [GH-178]
2013-07-12 21:23:00 -05:00
Mitchell Hashimoto
2981da4eef
fmt
2013-07-13 10:01:27 +09:00
Jason A. Beranek
13c733a3db
Add support for -force flag on builds [GH-119]
2013-07-11 23:43:23 -05:00
Mitchell Hashimoto
e52f8e0486
fmt
2013-07-12 07:01:30 +09:00
Mitchell Hashimoto
0fdf9b09c9
builder/vmware: error if shutdown command failed
2013-07-09 14:39:02 -07:00
Mitchell Hashimoto
9ec94fc6a1
builder/vmware: support floppy_files for mounting a floppy disk
2013-07-09 12:41:36 -07:00
Mitchell Hashimoto
50095283ef
builder/virtualbox, builder/vmware: keyboard-interactive [GH-121]
2013-07-02 22:02:58 -07:00
Steven Merrill
58daa1d84e
Add a 'skip_compaction' step.
2013-07-02 20:22:11 -04:00
Mitchell Hashimoto
874b4acf1c
builder/vmware: output VNC info if headless
...
/cc @smerrill
2013-07-02 12:23:19 -07:00
Mitchell Hashimoto
67920da4ec
Merge pull request #108 from smerrill/headless-mode
...
builder/vmware, builder/virtualbox: Headless mode
2013-07-02 12:16:40 -07:00
Mitchell Hashimoto
c7c22bee3c
Merge pull request #115 from bdon/wait
...
builder/virtualbox, builder/vmware: wait5 and wait10 timers
2013-07-02 12:14:17 -07:00
Brandon Liu
471f33d02e
Add wait5 and wait10 special keys for boot command.
2013-07-02 10:31:22 -07:00
Mitchell Hashimoto
4d5edcaac0
builder/vmware: Improve check for VMware cleanup
2013-07-02 09:30:24 -07:00
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