Chris Bednarski
24dc798cfb
Revert "Prevalidate Hardware Specs on Linux"
...
This reverts commit eda84cb2d3
.
2016-02-02 12:41:43 -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
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
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
Mitchell Hashimoto
93bb0d86af
builder/virtualbox: fix default names
2015-06-22 09:25:15 -07:00
Mitchell Hashimoto
d600456487
builder/virtualbox: fix interpolation weirdness
2015-06-22 09:17:09 -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
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
9ea34d4ea8
virtualbox/iso: force iso extension for downloads
2015-06-08 20:42:16 -07:00
Mitchell Hashimoto
d15bc90453
builder/virtualbox/iso: new interpolation
2015-05-27 14:01:08 -07: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
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
749baa19c4
builder/virtualbox/iso: append timestamp to name [GH-1365]
2014-09-03 20:54:02 -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
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
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
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
12938fe36b
builder/virtualbox,vmware: checksum not required if checksum type is
...
none
2014-01-04 11:10:13 -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
437dc12de3
builder/virtualbox/iso: load shutdown config [GH-754]
2013-12-26 23:28:15 -07: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
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