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