Commit Graph

573 Commits

Author SHA1 Message Date
Mark Peek cdcffecc2d Refactor builder ISO options
The ISO builders (parallels, qemu, virtualbox, and vmware) had too
much common code which needed to be maintained separately. This change
moves that code to a common ISO configuration.
2015-10-20 16:27:47 -07:00
Mark Peek e9657e6a9f Merge pull request #2642 from oliviertremblay/master
Make TargetPath customizable
2015-10-20 12:11:13 -07:00
Mark Peek e5a713ff01 Alternative fix for #2641: make random script name actually random 2015-10-11 13:31:09 -07:00
Orivej Desh 46d687d5ad Make ssh_host_port_max an inclusive bound to agree with documentation 2015-09-29 03:09:38 +00:00
Rickard von Essen e4dc543cae Fixes #2743: Change log messages for step_forward_ssh
Changed the log messages and changed the m name of the
VirtualBox builder NAT rule name from packerssh to
packercomm.
2015-09-17 13:43:08 +02:00
Olivier Tremblay f301a6454d Added documentation, renamed config param to iso_target_path 2015-08-20 07:37:24 -04:00
Olivier Tremblay 223e35fc65 Makes StepDownload's TargetPath customizable.
I exposed TargetPath as a config file option "target_path". I don't like
the name, but it follows the naming convention. The purpose of TargetPath
stands unmodified, and it enables a fair amount of customization.
2015-07-28 07:45:02 -04:00
Lorenzo Villani 7e64e90670 Use --portcount on VirtualBox 5.x 2015-07-13 20:32:45 +02:00
Mitchell Hashimoto 93bb0d86af builder/virtualbox: fix default names 2015-06-22 09:25:15 -07:00
Mitchell Hashimoto 84189f7a28 builder/*: properly save interpolation context 2015-06-22 09:22:42 -07:00
Mitchell Hashimoto d600456487 builder/virtualbox: fix interpolation weirdness 2015-06-22 09:17:09 -07:00
Mitchell Hashimoto 54e081d5af builder/virtualbox: only remove output dir after check 2015-06-22 09:09:12 -07:00
Mitchell Hashimoto 9c6d0dfc8b builder/virtualbox: fix type casting
/cc @pearkes - This fixes that crash
2015-06-21 19:56:55 -07:00
Mitchell Hashimoto d9fceaf39d update CHANGELOG 2015-06-18 10:19:46 +02:00
Mitchell Hashimoto ba2cf18460 Merge branch 'master' of https://github.com/ldx/packer into ldx-master 2015-06-18 10:18:17 +02:00
Mitchell Hashimoto 70af21615e Merge pull request #2233 from mitchellh/b-output-dir
builder/virtualbox,vmware: validate output dir in step
2015-06-15 09:40:36 -07:00
Mitchell Hashimoto 7fc69828c5 builder/virtualbox: fix forwarding to work with WinRM 2015-06-14 21:47:53 -07:00
Mitchell Hashimoto 115d583cff helper/communicator: make host more generic 2015-06-13 19:23:33 -04:00
Mitchell Hashimoto d5166a8e6c builder/virtualbox: use new communicator abstraction 2015-06-13 18:08:12 -04:00
Mitchell Hashimoto 3976a34d29 builder/virtualbox: validate output dir in step, no in config 2015-06-13 16:58:37 -04:00
Mark Peek 16320372d6 Make some builder config usage more consistent with other builders 2015-06-12 14:02:09 -07:00
Mitchell Hashimoto bd04b52b32 virtualbox/common: style 2015-06-10 10:50:08 -07:00
Mitchell Hashimoto 8d6a99457a Merge pull request #1078 from pleschev/skip_nat_port
Adding the ability to skip nat port forwarding for ssh connectivity
2015-06-10 10:47:03 -07:00
Mitchell Hashimoto f6f9cca7ce Merge pull request #2189 from mitchellh/b-download-extension
common: StepDownload can force an extension
2015-06-09 20:56:43 -07:00
Mitchell Hashimoto 23a48d6619 go fmt 2015-06-08 21:34:20 -07:00
Mitchell Hashimoto 20504da796 Merge pull request #2190 from mitchellh/b-http-addr
virtualbox,vmware: http server should listen on IPv4
2015-06-08 21:23:49 -07:00
Mitchell Hashimoto 9f0b8b71db virtualbox,vmware: http server should listen on IPv4 2015-06-08 20:47:47 -07:00
Mitchell Hashimoto 9ea34d4ea8 virtualbox/iso: force iso extension for downloads 2015-06-08 20:42:16 -07:00
Mitchell Hashimoto 35246ba986 virtualbox/common: fix test 2015-06-08 20:31:53 -07:00
Mitchell Hashimoto b441348ba4 virtualbox/common: remove devices should delete floppy controller
GH-1879
2015-06-08 20:25:21 -07:00
Mitchell Hashimoto 0885e03bbf virtualbox/iso: acceptance test 2015-06-08 20:24:49 -07:00
jszwedko b1497b951c code.google.com/p/go.crypto/ssh -> golang.org/x/crypto/ssh
code.google.com/p/go.crypto/ssh is now at golang.org/x/crypto/ssh as of
https://code.google.com/p/go/source/detail?spec=svn.crypto.69e2a90ed92d03812364aeb947b7068dc42e561e&repo=crypto&r=8fec09c61d5d66f460d227fd1df3473d7e015bc6

Using the code.google.com import redirects properly, but runs into
issues if you try to use a subpackage of `ssh`, e.g. `agent` which
refers to golang.org/x/crypto/ssh causing conflicts if your types expect
code.google.com/p/go.crypto/ssh.

This is a precursor to a PR for #1066.
2015-05-28 08:17:49 -07:00
Mitchell Hashimoto 4bb16ac223 fix failing tests 2015-05-27 14:30:59 -07:00
Mitchell Hashimoto 0dc4226810 builder/virtualbox/ovf: new interpolation 2015-05-27 14:03:56 -07:00
Mitchell Hashimoto d15bc90453 builder/virtualbox/iso: new interpolation 2015-05-27 14:01:08 -07:00
Vilmos Nebehaj 956b9ded0a Try another ssh port if the current one is taken. 2015-04-10 17:55:51 -07:00
Emil Hessman 96b62af551 builder/virtualbox/iso: fix incorrect printf verb type
Fixes the following vet report:

builder/virtualbox/iso/builder_test.go:86: arg b.config.DiskSize for printf verb %s of wrong type: uint
2015-02-25 05:43:17 +01:00
Danny Lockard 7d1b95c907 Formatting fix :) 2015-01-16 10:34:12 -06:00
Danny Lockard 84d6d856f6 Add the ability to create a SCSI Device as the main HD controller for
virtualbox.
2015-01-15 19:53:01 -06:00
pleschev 431647997c Merge pull request #2 from mitchellh/master
Update skip_nat_port to latest master.
2014-11-26 07:52:42 +11:00
Mitchell Hashimoto 0db6cd3533 Merge pull request #1330 from qur/qemu-vagrant
Qemu vagrant
2014-10-28 08:42:17 -07:00
Mitchell Hashimoto 83772fc5b8 Merge pull request #1509 from kamazee/fix_detecting_guest_additions_when_sysprop_empty
Fix detecting guest additions URL
2014-10-27 17:04:03 -07:00
Konstantinos Koukopoulos a8b8658245 figure out VirtualBox version on FreeBSD 2014-10-09 11:45:03 +03:00
Julian Phillips 90a57c411f Expand Artifact API to expose build state
In order that something consuming an artifact can have access to extra
builder specific data add the State method which allows the caller to
ask for arbitary values by name.
2014-09-22 11:15:47 +01:00
Alexander Kurilo 3592d67093 Fix detecting guest additions URL
When system property exists with empty value, packer treats that
empty value as a URL. The issue has been spotted on Arch
with Virtualbox 4.3.16.
2014-09-18 10:53:13 -04: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 bfdc6ea6b7 builder/virtualbox: support http server for ovf [GH-1169] 2014-09-05 11:52:55 -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 9b2039121f builder/virtualbox-ovf: import_flags [GH-1383] 2014-09-05 10:23:37 -07:00
Mitchell Hashimoto 863e06a614 builder/virtualbox: comment 2014-09-05 09:59:39 -07:00
Mitchell Hashimoto f54f09d7a3 builder/virtualbox: detect vboxmanage errors with zero code [GH-1119] 2014-09-05 09:57:30 -07:00
Mitchell Hashimoto 77bd024079 builder/*: fix flaky tests, get tests passing 2014-09-04 18:11:05 -07:00
Mitchell Hashimoto c0f9dbde41 builder/virtualbox: search VBOX_MSI_INSTALL_PATH [GH-1337] 2014-09-03 21:08:57 -07:00
Mitchell Hashimoto 749baa19c4 builder/virtualbox/iso: append timestamp to name [GH-1365] 2014-09-03 20:54:02 -07:00
Mitchell Hashimoto 28de122579 builder/virtualbox: fix typo 2014-09-03 20:33:22 -07:00
Mitchell Hashimoto 94f385ecf9 builder/virtualbox: error if guest additions URL can't be read [GH-1439] 2014-09-03 20:30:16 -07:00
Mitchell Hashimoto 76a8221636 builder/*: extract key path to ssh.Signer 2014-09-03 20:23:39 -07:00
Mitchell Hashimoto c185fa42f3 Merge pull request #1200 from zigg/feature/virtualbox-iso-sata
builder/virtualbox: implement `iso_interface` setting
2014-09-02 10:56:57 -07:00
Mitchell Hashimoto 4ef3874467 builder/virtualbox-*: seed RNG [GH-1386] 2014-09-02 09:35:59 -07:00
Hiroaki Nakamura 7549735bd3 Accept VirtualBox release candidate version (ex. 4.3.14_RC1 from 4.3.14_RC1r94870) 2014-07-12 19:08:10 +09:00
Matt Behrens 9eb32e5dcd implement `iso_interface` setting
Adds a new configuration option, `iso_interface`, that can be set to
`sata` to mount the ISO on the SATA controller.  Required for OS X.
2014-05-23 21:14:24 -04: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 d92179847d provisioner/file: set file/directory permissions
fixes #1064
2014-05-09 21:03:35 -07:00
Ross Smith II 58fd5aec61 virtualbox: use local VBoxGuestAdditions.iso by default
fixes #1123
2014-05-06 16:15:55 -07:00
Jakob A. Dam 40150c376d Fix http_files typo in comments 2014-05-06 17:13:15 +02:00
Rickard von Essen c2013bf680 virtualbox-ovf support for guest_additions_mode
Fixes #1035 "virtualbox-ovf" builder doesn't support "guest_additions_mode" option
2014-05-04 18:48:41 +02:00
Jacob Helwig 38e880a187 Add ability to run vboxmanage commands just before exporting [GH-664] 2014-04-29 11:58:11 -07:00
Peter Leschev eef3223f6c Adding the ability to skip nat port forwarding for ssh connectivity 2014-04-29 08:27:23 +10:00
Mitchell Hashimoto 83add3969f builder/virtualbox: fix deps 2014-04-26 12:27:30 -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
Ross Smith II 850b066408 Merge pull request #945 from benlangfeld:feature/vb_output_opts (manually) 2014-04-21 08:38:48 -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
Ben Langfeld 128f555a2c Formatting 2014-03-14 13:22:49 -03:00
Ben Langfeld 5b07e2604c Fix export opts tests 2014-03-14 13:22:44 -03:00
Ben Langfeld 8cf0e53b19 Properly apply templates to export opts 2014-03-14 13:22:32 -03:00
Ben Langfeld 2cee7a5c10 Log export command being executed 2014-03-14 00:26:26 -03:00
Ben Langfeld bfd6755859 Move to an array of strings for a deterministic option separation 2014-03-14 00:12:50 -03:00
Ben Langfeld d1b41f2f14 Pass export_options individually to VBoxManage export 2014-03-13 23:33:35 -03:00
Ben Langfeld 0332901f63 builder/virtualbox: Add an `export_opts` option
Allows arbitrary arguments to VBoxManage export, such as product info (--product, --vendor, etc).
2014-03-12 10:12:20 -03:00
Mitchell Hashimoto 239aabb554 builder/virtualbox: retry unregister a few times [GH-915] 2014-03-01 16:20:02 +01:00
Brian Johnson ac2c4203a2 Add import_opts to the virtualbox-ovf builder. My use case is that I
have existing virtualbox virtual machines where I need to keep the mac
addresses so that the network interfaces come up when packer boots them.
Otherwise I just get SSH timeout and I'm unable to configure the machines.
2014-02-18 16:44:27 -08: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
Greg Lu 6d2e50e598 builder/virtualbox/ovf: fix shutdown_timeout handling
The shutdown_timeout config parameter was being ignored
(for both the user setting and the "5m" default) on the
virtualbox-ovf builder. As a result, packer complained
of timeouts on graceful shutdowns, and the build process
would error out. This fixes that along with some newly
created tests.
2013-12-31 18:28:33 -05:00
Mitchell Hashimoto 2b801a7b12 builder/vmware,virtualbox: checksum_type can be "none" [GH-471] 2013-12-28 09:59:47 -07:00
Mitchell Hashimoto 437dc12de3 builder/virtualbox/iso: load shutdown config [GH-754] 2013-12-26 23:28:15 -07:00
Mitchell Hashimoto eeeaec3562 builder/vmware/vmx: StepCloneVMX 2013-12-26 08:34:27 -07:00
Mitchell Hashimoto 39d0600085 builder/virtualbox: fmt 2013-12-23 14:21:28 -08:00
Mitchell Hashimoto c7bf38b63b builder/virtualbox/common: only remove ISO if it was attached 2013-12-22 17:08:07 -08:00
Mitchell Hashimoto 473fe8a950 builder/virtualbox/ovf: instantiate the driver 2013-12-22 17:04:26 -08:00
Mitchell Hashimoto c2b3fa732a builder/virtualbox/ovf: validate source_path 2013-12-22 17:02:22 -08:00
Mitchell Hashimoto e69bb1858c builder/virtualbox/ovf: specify name for import 2013-12-22 15:24:24 -08:00
Mitchell Hashimoto 5b223f0798 builder/virtualbox/ovf: re-order some steps 2013-12-22 15:20:49 -08:00
Mitchell Hashimoto dd767c9d54 builder/virtualbox/ovf: StepImport to import an OVF 2013-12-22 15:19:19 -08:00
Mitchell Hashimoto 0de7bb33cd builder/virtualbox: set Tpl on VBoxManage 2013-12-22 11:57:05 -08:00
Mitchell Hashimoto e51dde13ce builder/virtualbox: tests for StepUploadVerison 2013-12-22 11:55:01 -08:00
Mitchell Hashimoto 5f1c597269 builder/virtualbox: StepUploadVersion 2013-12-22 11:50:29 -08:00
Mitchell Hashimoto 5feb7bce18 builder/virtualbox/common: Export 2013-12-22 10:40:39 -08:00
Mitchell Hashimoto 026bcd33fe builder/virtualbox: StepRun common 2013-12-22 10:30:12 -08:00
Mitchell Hashimoto fbd20dffcb builder/virtualbox/common: StepRemoveDevices 2013-12-22 09:54:00 -08:00
Mitchell Hashimoto b65559d888 builder/virtualbox: StepShutdown tests 2013-12-22 09:47:44 -08:00
Mitchell Hashimoto 67a87ce3e4 builder/virtualbox: StepShutdown 2013-12-22 09:37:27 -08:00
Mitchell Hashimoto 4bd2aa6106 builder/virtualbox: StepVBoxmanage 2013-12-22 09:24:29 -08:00
Mitchell Hashimoto 7a4ff3f2b1 builder/virtualbox: generic SSHConfig 2013-12-22 09:08:09 -08:00
Mitchell Hashimoto 79c0c6b545 builder/virtualbox: step attach floppy 2013-12-22 08:10:11 -08:00
Mitchell Hashimoto d731dcd8f7 builder/virtualbox: floppy files config 2013-12-22 07:58:07 -08:00
Mitchell Hashimoto 598822d46b builder/virtualbox/common: move outputdir config to common 2013-12-21 17:38:06 -08:00
Mitchell Hashimoto 886c0d3ad5 builder/virtualbox/common: StepSuppressMessages 2013-12-21 16:05:34 -08:00
Mitchell Hashimoto db167c5a3d builder/virtualbox/common: StepOutputDir 2013-12-21 15:20:15 -08:00
Mitchell Hashimoto cdc02db96d builder/virtualbox/common: Move Driver here 2013-12-21 15:00:48 -08:00
Mitchell Hashimoto 14eede264f builder/virtualbox: add common package, common Artifact 2013-12-21 14:51:38 -08:00
Mitchell Hashimoto afd67ea104 builder/virtualbox/iso: rename package 2013-12-21 14:27:00 -08:00
Mitchell Hashimoto 01c7bbf8c4 builder/virtualbox: move to iso/ folder 2013-12-21 14:25:22 -08:00
Mitchell Hashimoto ac36b33f98 builder/virtualbox: fix compilation 2013-12-19 08:49:50 -08:00
Mitchell Hashimoto 3c5c9a6ea3 builder/virtualbox: sleep when stopping forcefully to allow session
unlock
2013-12-19 08:49:23 -08:00
Mitchell Hashimoto dcae79e67f builder/virtualbox: remove devices in separate step 2013-12-19 08:47:37 -08:00
Mitchell Hashimoto c264ef0a29 builer/virtualbox: avoid crash since guest additions path not set 2013-12-18 11:27:25 -08:00
Mitchell Hashimoto 675f7a43ba builder/virtualbox: don't download guest additions if disable [GH-731] 2013-12-18 11:22:02 -08:00
Mitchell Hashimoto 2920239e6e builder/virtualbox: verify output dir is writable 2013-12-18 08:40:35 -08:00
Mitchell Hashimoto d9c3aed479 builder/virtualbox: use VBOX_INSTALL_PATH to find VBoxManage 2013-11-19 12:32:10 -08:00
Mitchell Hashimoto c1bd7468d5 builder/virtualbox: ctrl-c works during wait for boot 2013-11-12 16:19:38 +00:00
Mitchell Hashimoto 6c19ba621f builder/virtualbox: no panic if ssh host port min/max is same [GH-594] 2013-11-04 14:20:26 -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 aa95caa261 builder/virtualbox: allow disabling guest addition uploading 2013-11-02 11:34:54 +01:00
Matthew Hooker 6620b9cc9b Merge pull request #572 from ktruong7/format-issues1
Spelling mistake in comments
2013-10-28 06:52:57 -07:00
ktruong7 1f31ac1737 spelling mistake in comments 2013-10-24 14:46:54 -04:00
Fabian Grutschus 5e440fa4c1 Arguments Prefix (--) was missing for (data)portconfig 2013-10-23 15:05:00 +02: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 30be4927d6 builder/virtualbox: use proper SATA port arg [GH-547] 2013-10-20 15:55:31 -07:00
Lyndon Washington bb241af7b3 Formatted contributions 2013-10-09 13:14:09 -04:00
Lyndon Washington 88e65ef59b Moved the 1 sec timeout to the export step 2013-10-09 12:59:47 -04:00
Mitchell Hashimoto 8821ef4def builder/virtualbox: detect vboxdrv issues [GH-488] 2013-10-02 17:13:22 -07:00
Mitchell Hashimoto c19fcafc01 builder/virtualbox: error if version can't be detected [GH-488] 2013-10-02 17:11:42 -07:00
Mitchell Hashimoto 865f197503 builder/virtualbox: support attaching guest additions [GH-405] 2013-09-18 18:15:46 -07:00
Mitchell Hashimoto 692278965f builder/virtualbox: fix scan codes 2013-09-15 23:41:08 -07:00
Mitchell Hashimoto 9f52b78602 fmt 2013-09-15 23:29:29 -07:00
Charlie Sharpsteen efa401e4d2 Fix scancode comment concerning key release
According to the scancode reference, the release key code is generated by
adding `0x80` to the key press code, not `0x81`.
2013-09-15 23:18:55 -07:00
Charlie Sharpsteen 4952737ddb Fix VirtualBox scancodes
Support for the backspace, delete and F1-F12 keys was added in commit 6028a3c.
However, that commit seems to have copied character codes from the vmware
builder into the VirtualBox builder. Character codes are appropriate for VMware
which communicates through a VNC. However, VirtualBox communicates through
simulating raw keyboard input and therefore needs scancodes which are key
press/key release sequences.

This patch converts backspace, delete and F1-F10 to scancodes. F11 and F12 are
not listed in the [scancode reference][scancodes] so they have been omitted.

[scancodes]: http://www.win.tue.nl/~aeb/linux/kbd/scancodes-1.html
2013-09-15 21:45:11 -07:00
Sean Mackrory 2a04f49bca Using the vm_name parameter to name OVA/OVF files and their attachments 2013-09-06 23:38:31 -07:00
Mitchell Hashimoto e732d86142 builder/virtualbox: process hdd interface as template, validate 2013-09-05 12:07:58 -07:00
Justin Bronn dbc24d9357 Enable customization of VirtualBox disk controller with `hard_drive_interface` option (SATA only). 2013-09-05 11:00:08 -07:00
Mitchell Hashimoto 1a3620d77a builder/virtualbox: new multistep API 2013-08-31 12:44:58 -07:00
Mitchell Hashimoto a6735b1d65 builder/virtualbox: support ssh keys as auth mechanism [GH-70] 2013-08-27 22:55:13 -07:00
Mitchell Hashimoto 7647b12eab builder/virtualbox: fmt 2013-08-19 16:24:29 -07:00
Mitchell Hashimoto 1fdaadb08c website: document formats feature 2013-08-19 16:10:49 -07:00
Johan Siebens a19bd564d3 builder/virtualbox: export to ovf or ova (default ovf) 2013-08-19 20:21:36 +02:00
Mitchell Hashimoto 64d87bfaf3 *: switch to packer ConfigTemplate 2013-08-15 19:17:23 -07:00
Mitchell Hashimoto c0265d108a builder/virtualbox: iso_urls for multiple ISO urls [GH-110] 2013-08-15 17:46:41 -07:00
Mitchell Hashimoto 0d152f541f builder/virtualbox: remove unused function 2013-08-15 17:46:40 -07:00
Mitchell Hashimoto 562ea28a79 builder/virtualbox: switch download guest additions to use new common 2013-08-15 17:46:40 -07:00
Mitchell Hashimoto bb352e5011 common: Add new StepDownload to DRY up downloads 2013-08-15 17:46:40 -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 0ba17a1a50 builder/virtualbox: Don't validate guest additions URL so early because it requires template 2013-08-14 09:59:09 -04:00
Mitchell Hashimoto 171ecaefa6 builder/virtualbox: guest-additions_url can use Version var [GH-272] 2013-08-13 22:11:15 -04:00
Mitchell Hashimoto 2d2eefcf33 builder/virtualbox: instantiate driver in Run method 2013-08-13 08:55:33 -07:00
Mitchell Hashimoto 332bdf6edc builder/*, provisioner/*: set user vars 2013-08-09 15:57:08 -07:00
Mitchell Hashimoto 191520bc0b builder/virtualbox: use new template processing 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 558027465a builder/virtualbox,vmware: retry removing output dir if fails 2013-07-31 15:16:39 -07:00
Mitchell Hashimoto 0363a1cdc2 builder/virtualbox,vmware: use DownloadableURL 2013-07-29 00:13:30 -07:00
Mitchell Hashimoto ce5849308b fmt 2013-07-25 20:49:39 -05:00
Jeff Stamerjohn 32eaa39a5f Merge branch 'master' into jstamerj/windows 2013-07-25 09:31:02 -07:00
Jeff Stamerjohn 4ff0185add Windows fixes
Strip carriage returns from end of lines in virtualbox/driver.go, fixing wait for virtualbox host shutdown.
Fix target upload directory path in communicator.go to use forward slashes.  (When running on windows path/filepath returns backslashes...which does not work when the target host is unix).
2013-07-25 09:28:04 -07:00
Mitchell Hashimoto 56c3cbfb2a builder/common: common config struct for Packer configs 2013-07-23 22:48:31 -05:00
Mitchell Hashimoto 56cf09f29e builder/virtualbox: shutdown messages go to Ui 2013-07-23 22:42:39 -05: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 d999d1c5dd Merge pull request #205 from sit/preserve-cache-suffix
Preserve suffix of files put in the cache.
2013-07-20 16:40:31 -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
Emil Sit e171477e15 Revert "builder/virtualbox: Copy ISO because VirtualBox can't recognize"
This reverts commit 688be43811007d33b9c70dec93b43782a4f71c06; instead
of copying the ISO (which can be huge), we have adjusted the cache path
to include the extension of the source file.

Conflicts:

	builder/virtualbox/step_download_iso.go
2013-07-20 00:26:46 -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
Mitchell Hashimoto 8e1e40c096 builder/*: convert to common StepProvision 2013-07-16 15:44:41 +09:00
Mitchell Hashimoto 979bfc412e builder/virtualbox: use common SSH connect step 2013-07-15 14:17:09 +09:00
Mitchell Hashimoto 9387ba0fd4 packer: Make builder type available in configs [GH-154] 2013-07-15 09:58:32 +09:00
Mitchell Hashimoto 16960a52f2 builder/virtualbox: unexport calculated fields 2013-07-14 21:22:11 +09:00
Mitchell Hashimoto a0f1667df1 communicator/ssh: tweakable timeout on retry connection 2013-07-14 21:05:22 +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 3007498282 builder/virtualbox: support generic hash types [GH-175] 2013-07-14 15:50:34 +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 2ad30e1ea1 builder/virtualbox: paused is still running 2013-07-09 12:41:36 -07:00
Mitchell Hashimoto dbad270d27 builder/virtualbox: remove floppy drive before exporting 2013-07-09 12:41:36 -07:00
Mitchell Hashimoto 45c47e64fa builder/virtualbox: support floppy_files 2013-07-09 12:41:36 -07:00
Mitchell Hashimoto 019ab13f53 builder/virtualbox: whitespace 2013-07-07 18:04:30 -07:00
Mitchell Hashimoto f83ec95928 builder/virtualbox: style nitpicks and CHANGELOG 2013-07-07 09:17:27 -07:00
Mitchell Hashimoto 1e7508c828 fmt 2013-07-07 09:14:41 -07:00
Mitchell Hashimoto f8617b2641 builder/virtualbox: test the configuration
/cc @sgirones
2013-07-07 09:14:16 -07:00
Mitchell Hashimoto d289a6a850 builder/virtualbox: typo in test 2013-07-07 09:09:22 -07:00
Mitchell Hashimoto 509712c4a4 Merge pull request #145 from sgirones/feature/local-mode-guest-additions
builder/virtualbox: Local mode for VBoxGuestAdditions. Provide local path and SHA256
2013-07-07 09:07:56 -07:00
Salvador Gironès babd47541b Local mode for VBoxGuestAdditions. Provide local path and SHA256 2013-07-06 11:28:56 +02:00
Mitchell Hashimoto 1a2e4f9d0b fmt 2013-07-05 11:00:18 -07:00
Brandon Liu 6cdc938f46 Virtualbox: clean up port forwarding before exporting OVF. 2013-07-04 14:46:39 -07:00
Geoffrey Bachelet c5258c5422 Typo 2013-07-03 19:11:37 -04:00
Mitchell Hashimoto 50095283ef builder/virtualbox, builder/vmware: keyboard-interactive [GH-121] 2013-07-02 22:02:58 -07:00
Mitchell Hashimoto 2b010269a3 builder/virtualbox: Warning about headless mode
/cc @smerrill
2013-07-02 12:20:26 -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
Brandon Liu 471f33d02e Add wait5 and wait10 special keys for boot command. 2013-07-02 10:31:22 -07:00
Steven Merrill 2aeb756a56 Add VirtualBox headless mode. 2013-07-02 00:13:24 -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 9cf78edcf0 builder/virtualbox: trim whitespace when getting version 2013-07-01 10:59:04 -07:00
Mitchell Hashimoto b317c763ac builder/virtualbox: add more logging to version detection 2013-06-29 13:45:30 -07:00
Mitchell Hashimoto daac8b959f builder/common: Fix nil deref on race condition [GH-52]
When verifying large files, the checksum would take a long time and
downloader would be nil. When the goroutine asked for progress,
it would raise a nil exception.
2013-06-28 22:34:43 -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 30fadde297 builder/virtualbox: Tests for the defaults [GH-44] 2013-06-28 16:01:50 -04:00
Mitchell Hashimoto 4abd1c22c1 builder/virtualbox: Set the default boot_wait [GH-44] 2013-06-28 16:01:50 -04:00
Mitchell Hashimoto 0eea40bad9 builder/virtualbox: close the input source ISO 2013-06-28 10:30:33 -04:00
Mitchell Hashimoto 620a864c49 builder/virtualbox: check the proper file path 2013-06-28 09:45:30 -04:00
Mitchell Hashimoto 2f98ab2018 builder/virtualbox: return if cancelled, to avoid nil deref 2013-06-27 22:24:53 -04:00
Mitchell Hashimoto 98b4761ef1 builder/virtualbox, vmware: delete output dir if cancelled 2013-06-27 22:23:40 -04:00
Mitchell Hashimoto 1400d20bb9 builder/virtualbox: Error if output directory already exists 2013-06-27 22:14:23 -04:00
Mitchell Hashimoto 8a609b67c1 builder/*: Fail if provisioning fails [GH-33] 2013-06-26 17:54:57 -07:00
Mitchell Hashimoto 9786986a72 fmt 2013-06-25 14:31:06 -05:00
Mitchell Hashimoto 41f4ce56a5 builder/virtualbox: "stopping" is still running [GH-30] 2013-06-24 09:32:08 -07:00
Mitchell Hashimoto 1f57d722ff builder/virtualbox: remap versions that don't have guest additions 2013-06-24 09:24:16 -07:00
Mitchell Hashimoto 1931c98fff builder/virtualbox: checksum the guest additions 2013-06-23 23:44:03 -07:00
Mitchell Hashimoto 27c9e8cf92 builder/virtualbox: treat guest_additions_path as a template 2013-06-23 23:14:19 -07:00
Mitchell Hashimoto a599074185 builder/virtualbox: upload guest additions to VM 2013-06-23 23:09:52 -07:00
Mitchell Hashimoto 921770b611 builder/virtualbox: Download guest additions for the VM 2013-06-23 23:05:32 -07:00
Mitchell Hashimoto e91421b1e1 website: update docs for virtualbox_version_file 2013-06-23 22:46:57 -07:00
Mitchell Hashimoto 85c83cbf58 builder/virtualbox: Upload version to a "virtualbox_version_file" 2013-06-23 22:44:58 -07:00
Mitchell Hashimoto 0f376457e3 builder/virtualbox: only power off the machine if it isrunning 2013-06-23 22:00:40 -07:00
Mitchell Hashimoto bdd60fe914 builder/virtualbox: Message for vboxmanage command, not say 2013-06-23 21:56:14 -07:00
Mitchell Hashimoto eacf257d83 builder/virtualbox: recognize <tab> 2013-06-23 21:50:16 -07:00
Mitchell Hashimoto 15f191deb0 builder/virtualbox: Copy ISO because VirtualBox can't recognize 2013-06-23 21:47:56 -07:00
Mitchell Hashimoto d52cd1ed83 builder/virtualbox: Output VBoxManage stderr in error 2013-06-23 21:19:41 -07:00
Mitchell Hashimoto a3bd9ecdc3 builder/virtualbox: add "vboxmanage" to run custom commands 2013-06-23 20:58:22 -07:00
Mitchell Hashimoto 72741dbe3a builder/virtualbox: Ability to set DiskSize 2013-06-23 20:43:40 -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 70c4753f77 fmt 2013-06-19 21:20:54 -07:00
Mitchell Hashimoto 64aed2b34a builder/virtualbox: proper artifact [GH-23] 2013-06-19 21:12:11 -07:00
Mitchell Hashimoto b8103ff9c0 builder/virtualbox: properly handle errors 2013-06-19 21:07:53 -07:00
Mitchell Hashimoto f754c171e8 builder/*: Add support for debug 2013-06-15 10:51:09 -07:00
Mitchell Hashimoto a6194467ac builder/*: Adhere to the new interface 2013-06-14 12:29:48 -07:00
Mitchell Hashimoto 4daefc2588 fmt 2013-06-13 10:24:10 -07:00
Mitchell Hashimoto 760995dba1 builder/virtualbox: say when forcefully shutting down 2013-06-12 18:19:29 -07:00
Mitchell Hashimoto 6516e5a627 builder/virtualbox: export 2013-06-12 18:07:08 -07:00
Mitchell Hashimoto 48a3892ce6 builder/virtualbox: graceful shutdown 2013-06-12 18:02:42 -07:00
Mitchell Hashimoto 52391bb1f3 builder/virtualbox: Use the common downloader 2013-06-12 17:42:18 -07:00
Mitchell Hashimoto 521b59a6fa Make everything support the new builder interface 2013-06-12 16:06:56 -07:00
Mitchell Hashimoto e101b031fc builder/virtualbox: Cancel mid-type if we can 2013-06-12 10:47:55 -07:00
Mitchell Hashimoto 574286bdd6 builder/virtualbox: provision step 2013-06-12 08:47:36 -07:00
Mitchell Hashimoto c58d5ab3af builder/virtualbox: time out on SSH handshake for retry 2013-06-12 00:54:25 -07:00
Mitchell Hashimoto 5c0d8ecd72 builder/virtualbox: Wait for SSH to become available 2013-06-12 00:41:58 -07:00
Mitchell Hashimoto e7cc350536 builder/virtualbox: scancode reference 2013-06-12 00:27:31 -07:00
Mitchell Hashimoto 7344d9e52c builder/virtualbox: type boot command 2013-06-12 00:26:08 -07:00
Mitchell Hashimoto c7071b3bd2 builder/virtualbox: http server for local files 2013-06-11 23:44:40 -07:00
Mitchell Hashimoto e7aa9b409c builder/virtualbox: add boot_command 2013-06-11 21:08:45 -07:00
Mitchell Hashimoto 9e4a5a227b builder/virtualbox: support boot_wait 2013-06-11 20:56:44 -07:00
Mitchell Hashimoto 4d351edadf builder/virtualbox: improved validation 2013-06-11 20:51:58 -07:00
Mitchell Hashimoto 24895069aa builder/virtualbox: start the VM 2013-06-11 20:46:32 -07:00
Mitchell Hashimoto 70df8c8c8b builder/virtualbox: add the ssh host port to state 2013-06-11 20:30:07 -07:00
Mitchell Hashimoto ad1c59f34e builder/virtualbox: Create forwarded port mapping 2013-06-11 20:29:39 -07:00
Mitchell Hashimoto 081b0d6853 builder/virtualbox: Attach ISO 2013-06-11 20:07:11 -07:00
Mitchell Hashimoto 54057b7b49 builder/virtualbox: download ISO 2013-06-11 20:00:30 -07:00
Mitchell Hashimoto c1c9204ee8 builder/virtualbox: actually attach the hard drive 2013-06-11 16:48:01 -07:00
Mitchell Hashimoto 7a9499e1f0 builder/virtualbox: Attach the hard drive, not quite working yet 2013-06-11 16:44:43 -07:00
Mitchell Hashimoto b9cd48bbc6 builder/virtualbox: Create a virtual disk 2013-06-11 16:34:44 -07:00
Mitchell Hashimoto 7fe40cfce1 builder/virtualbox: Create the VM 2013-06-11 16:12:19 -07:00
Mitchell Hashimoto 07cacb6dda builder/virtualbox: Add GuestOSType config 2013-06-11 15:57:20 -07:00
Mitchell Hashimoto 4c18b0ae5b builder/virtualbox: more comprehensive message suppression 2013-06-11 15:52:46 -07:00
Mitchell Hashimoto e14b00c818 builder/virtualbox: Look for virtualbox on the path 2013-06-11 15:47:10 -07:00
Mitchell Hashimoto d31d54366a builder/virtualbox: Suppress some messages 2013-06-11 15:45:52 -07:00
Mitchell Hashimoto 99af93f86a foundation for virtualbox builder 2013-06-11 15:12:45 -07:00