packer/builder
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
..
amazon Merge pull request #2955 from yayugu/feature/ami_product_codes 2016-01-20 09:13:09 -08:00
digitalocean Merge pull request #2939 from bitrise-io/digitalocean_timeout_increase 2016-01-13 14:11:09 -08:00
docker Use alternate temp directories for docker 2015-10-20 11:34:14 -07:00
file Added acceptance test for file builder 2015-06-16 11:31:53 -07:00
googlecompute builder/googlecompute: fix image name defaults 2016-01-19 11:12:19 -08:00
null should be ssh_host, not host 2015-07-07 17:04:27 -05:00
openstack openstack: WaitForImage: treat 404 as retryable 2015-12-18 10:37:31 -08:00
parallels Refactor http server config into common 2015-11-01 14:45:47 -08:00
qemu Refactor http server config into common 2015-11-01 14:45:47 -08:00
virtualbox Prevalidate Hardware Specs on Linux 2016-01-21 18:19:11 -05:00
vmware Prevalidate Hardware Specs on Linux 2016-01-21 18:19:11 -05:00