1773 Commits

Author SHA1 Message Date
Jake Champlin
f01578c91e Only validate vmware resources on local hosts
Disable resource validation when `remote_type` is specified
2016-01-25 12:01:56 -05: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
d6fad30162 Merge pull request #2955 from yayugu/feature/ami_product_codes
Add AMI Product Codes modification for amazon-ebs & amazon-chroot
2016-01-20 09:13:09 -08:00
Ryan Uber
7732cf45a0 builder/googlecompute: fix image name defaults 2016-01-19 11:12:19 -08:00
Chris Bednarski
ab721b7cb1 Merge pull request #2898 from markpeek/http-refactor
Refactor http server config into common
2016-01-14 17:10:17 -08:00
Chris Bednarski
e6f1ea9ab2 Merge pull request #2911 from jtslear/endless-loop
vmware-iso-builder: Corrects logic checking destroy
2016-01-14 15:00:34 -08:00
Chris Bednarski
61aea5f123 Merge pull request #2912 from esemplare/esxi_ssh_key_support
Add support for SSH Key Authentication with ESX builder
2016-01-13 14:33:10 -08:00
Chris Bednarski
7b468af6b8 Merge pull request #2939 from bitrise-io/digitalocean_timeout_increase
increased DigitalOcean unlock wait timeouts
2016-01-13 14:11:09 -08:00
Chris Bednarski
b3c1fbc092 Merge pull request #3009 from msabramo/openstack_WaitForImage_retry_on_404
openstack: WaitForImage: treat 404 as retryable
2016-01-13 14:03:00 -08:00
Chris Bednarski
f1d6fbb8c4 Merge pull request #3030 from caiush/gce-external-static-ip
Added support for GCE external static IPs
2016-01-12 19:36:32 -08:00
Chris Bednarski
1ab5fc8ca5 Merge pull request #3037 from ColinHebert/subnet_az_discovery
Add auto discovery of AZ based on the subnet
2016-01-12 19:35:54 -08:00
Chris Bednarski
0cad32c696 Move region list into a function so we can re-use it in tests 2016-01-12 19:03:21 -08:00
Chulki Lee
20c0f6b02b fix doc: wrong function name 2016-01-11 13:06:34 -08:00
Chulki Lee
1aa24035fc add ap-northeast-2: Asia Pacific (Seoul) 2016-01-11 13:05:18 -08:00
Chulki Lee
7018517374 one region per line, sorted 2016-01-11 13:04:35 -08:00
Chulki Lee
3f0795b23c sort regions by name 2016-01-11 13:04:00 -08:00
Chulki Lee
7f3f5f4bfa add tests for all ami regions 2016-01-11 13:02:38 -08:00
Colin Hebert
48d242a8f8 Use pointers in the AWS API 2016-01-06 08:12:20 +01:00
Colin Hebert
9385a277c6 Fix API calls and remove az detection in chroot 2016-01-06 08:02:29 +01:00
Colin Hebert
e4930e7b57 Merge branch 'master' into subnet_az_discovery 2016-01-06 07:43:03 +01:00
Caius Howcroft
069c3c21b1 Added support for GCE external static IPs 2015-12-24 19:15:41 -06:00
Marc Abramowitz
4b9c4cc3e6 openstack: WaitForImage: treat 404 as retryable
Addresses comment at
https://github.com/mitchellh/packer/issues/1415#issuecomment-165739549
2015-12-18 10:37:31 -08:00
Marc Abramowitz
b08b88b019 openstack: Add maxNumErrors for WaitForImage
This partly addresses comment at
https://github.com/mitchellh/packer/issues/1415#issuecomment-165739549
2015-12-18 10:27:18 -08:00
Chris Bednarski
e009d3fb18 Merge pull request #3005 from msabramo/more_informative
Make the OpenStack builder more informative
2015-12-17 23:52:06 -05:00
Marc Abramowitz
39d6eda370 Make the OpenStack builder more informative
about the servers, images, and keypairs that it's dealing with.
2015-12-17 11:12:52 -08:00
Andrew Starr-Bochicchio
2212125f46 Return DigitalOcean image ID in output. 2015-12-15 12:00:04 -05:00
Chris Bednarski
00ea5ff7de Merge pull request #2982 from minimum2scp/features/support-googlecompute-preemptible
Added support of preemptible instance in googlecompute builder
2015-12-14 14:34:09 -08:00
Ian Duffy
b57140da47 Add support for using cloud-init via a ConfigDrive
Signed-off-by: Ian Duffy <ian@ianduffy.ie>
2015-12-08 12:45:26 +00:00
YAMADA Tsuyoshi
18d79cfb3d added test 2015-12-05 15:48:07 +09:00
YAMADA Tsuyoshi
afd314959b supported preemptible in googlecompute builder 2015-12-05 05:13:35 +09:00
Yuya YAGUCHI
9c8405b2c6 Add AMI Product Codes modification for amazon-ebs & amazon-chroot 2015-11-19 18:28:04 +09:00
Viktor Benei
eda2c9c605 actually make it 20 mins 2015-11-14 14:14:33 +01:00
Viktor Benei
7e568644a5 increased DigitalOcean unlock wait timeouts 2015-11-14 12:11:44 +01:00
Andy Williams
d36b653d3f Make DigitalOcean artifact ID match AWS format
The Vagrant post processor expects the DO artifact ID to look like an
AWS artifact ID (region_id:snapshot_id). This commit makes the DO
artifact Id() function output this format.
2015-11-08 14:38:56 -05:00
michael
499bd5a362 Add support for SSH Key Authentication with ESX builder 2015-11-03 19:08:35 -08:00
John T Skarbek
cf4a19a304 vmware-iso-builder: Corrects logic checking destroy
* I suspect the logic written for checking if the vm has been destroyed is incorrect.  The test will come back from the esx server indicating that the vm is gone as it should, but the logic I believe is reversed so we never hit the break in the if statement
* Feedback is MORE than welcome
2015-11-03 14:49:53 -05:00
Mark Peek
7f149e595d Refactor http server config into common 2015-11-01 14:45:47 -08:00
Mark Peek
31dd989e2e Add qcow2 shrink/compress tests for #2748 2015-10-31 18:15:19 -07:00
Mark Peek
c2fd83e04c Merge pull request #2748 from vtolstov/qcow2
add shrink step for qcow2 image format
2015-10-31 18:13:04 -07:00
Mark Peek
0c8a83e9e7 Merge pull request #2895 from higebu/fix-typo
Fix #2892: vmware-iso builder fix mapstructure typo
2015-10-31 11:11:13 -07:00
Mark Peek
ca19688316 aws: fix test breakage due to upstream breaking change #2891 2015-10-31 11:04:50 -07:00
Yuya Kusakabe
07079a5905 Fix #2892 2015-10-31 19:32:40 +09:00
Luke Amdor
8682dec178 aws: build after upstream breaking change
see 1a69d06935
2015-10-30 13:58:56 -05:00
Vasiliy Tolstov
8e1cc16ab5 add convert step for qcow2 image format
https://ext4.wiki.kernel.org/index.php/Ext4_VM_Images does not
recommends to dd zero file and deletes it, but in case of enabling
discards and qcow2 image we can recreate qcow2 file with less used
space.
Also qemu-img able to enable compression for qcow2 files, that
sometimes may be useful because it natively supported by qemu.

Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2015-10-29 12:27:46 +00:00
Mark Peek
eb15536041 Merge pull request #2774 from btd/btd-patch-1
Fix AMI creation - replace not allowed character , and add allowed .
2015-10-26 22:00:16 -07:00
Mark Peek
4e1e9b788a Merge pull request #2845 from abridgett/feature/spot_price_zero
spot_price of "0" to mean on demand
2015-10-26 21:51:44 -07:00
Mark Peek
581ab9f4f5 Merge pull request #2849 from markpeek/iso-cleanup
Refactor builder ISO options
2015-10-26 21:43:59 -07:00
Mark Peek
c3d77dc5a1 Fix unintended BC issues in ISO option refactoring 2015-10-26 17:39:48 -07:00
Mark Peek
ba7814b0ed Merge pull request #2846 from markpeek/packer-tmp
Create docker temp files under packer.d when TMPDIR is not set
2015-10-26 17:09:22 -07:00
Adrian Bridgett
3257b26fa7 one more place to check SpotPrice 2015-10-26 10:20:49 +00:00