Ian Duffy
9ec319e296
Allow configurable VNC bind IP for VirtualBox builders
...
Signed-off-by: Ian Duffy <ian@ianduffy.ie>
2016-05-23 14:24:16 +01:00
Sean Chittenden
3ca4782b56
Pause between boot_commands when debugging a Virtualbox build
...
When debugging a build (or maintaining an existing packer file), teach `packer build -debug` how to step through individual `boot_command`s in order to triage the packer file.
2016-05-17 04:03:45 -04:00
James Bishopp
bd8fb014c4
Removed ssh_key_path
...
- removed backwards compatibility code
- ensured key usage came from SSHPrivateKey configuration
- changed tests to use private_key
2016-02-12 17:24:42 -08:00
Chris Bednarski
4458de4ea0
Reformat
2016-02-11 23:53:40 -08:00
Ian Duffy
c4b64eb2c7
Closes #2637 - VRDP support for the virtualbox plugin
...
Signed-off-by: Ian Duffy <ian@ianduffy.ie>
2016-02-11 14:38:24 -08:00
Chris Bednarski
24dc798cfb
Revert "Prevalidate Hardware Specs on Linux"
...
This reverts commit eda84cb2d3
.
2016-02-02 12:41:43 -08:00
Chris Bednarski
ffb85f6ea5
Merge pull request #3096 from grubernaut/f-resource-limits
...
Prevalidate Hardware Specs on Linux
2016-01-25 21:06:14 -08:00
Jake Champlin
eda84cb2d3
Prevalidate Hardware Specs on Linux
...
Prevalidates hardware resources on Linux platforms for Virtualbox and
VMware builders. This is currently only available on Linux, as enabling
for both Darwin and Windows platforms, relies on cgo bindings that would
prevent effective cross-compilation.
Packer will now fail to build and validate templates if the template is
requesting that the VM to be created would allocate more system
resources than the host system has available.
This _however_ doesn't catch parallel builds that overflow the hosts
resources, will probably still need a better error message for VM's
failing to boot in that case.
Example Outputs:
```
$ $GOPATH/bin/packer build -debug ./vmware-iso.json
Debug mode enabled. Builds will not be parallelized.
vmware-iso output will be in this color.
2 error(s) occurred:
* Unavailable Resources: RAM - Requested - 204800000MB - Available 21721MB
* Unavailable Resources: Disk - Requested - 4000000000MB - Available 76701MB
```
```
$ $GOPATH/bin/packer build -debug ./vbox-iso.json
Debug mode enabled. Builds will not be parallelized.
virtualbox-iso output will be in this color.
2 error(s) occurred:
* Unavailable Resources: RAM - Requested - 10240000MB - Available 21721MB
* Unavailable Resources: Disk - Requested - 1000000000MB - Available 76701MB
```
2016-01-21 18:19:11 -05:00
Chris Bednarski
db0e098800
Merge pull request #2750 from rickard-von-essen/issue-2743
...
Fixes #2743 : Change log messages for step_forward_ssh
2016-01-21 13:28:44 -08:00
Mark Peek
7f149e595d
Refactor http server config into common
2015-11-01 14:45:47 -08:00
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