Commit Graph

1203 Commits

Author SHA1 Message Date
Mitchell Hashimoto 74a4f27a16 buidler/docker: remove container [GH-1206] [GH-1095] 2014-09-04 17:03:24 -07:00
Mitchell Hashimoto 67afff5ede fmt 2014-09-03 21:27:54 -07:00
Mitchell Hashimoto dc74c2bbdd builder/amazon: tests 2014-09-03 21:27:43 -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 6bbf64c5ab builder/qemu: use 512M for -m [GH-1444] 2014-09-02 11:19:12 -07:00
Mitchell Hashimoto 90d4bcdbe8 builder/digitalocean: region supports vars [GH-1452] 2014-09-02 11:16:39 -07:00
Mitchell Hashimoto 953fd27a27 Merge pull request #1167 from rasa/1057-add-floppy-files-to-vmware-vmx-v2
builder/vmware-vmx: add floppy_files support
2014-09-02 11:09:25 -07:00
Mitchell Hashimoto 8d88aaf150 Merge pull request #1168 from rasa/972-add-clone-support-for-vmware-player-6-v2
builder/vmware: add VMWare Player 6 support
2014-09-02 11:08:18 -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 2a9cb50b17 builder/amazon: fix broken build 2014-09-02 10:17:52 -07:00
Mitchell Hashimoto ba3bae8a65 Merge pull request #1239 from StefanScherer/fix_skip_floppy_in_vmx_data_post_step
builde/vmware: skip adding floppy again in vmx_data_post step
2014-09-02 10:02:17 -07:00
Mitchell Hashimoto 825864a9ea Merge branch 'additional-user-variables' of github.com:nBerg/packer into nBerg-additional-user-variables
Conflicts:
	builder/amazon/common/run_config.go
2014-09-02 09:57:52 -07:00
Mitchell Hashimoto 752162c234 fmt 2014-09-02 09:55:06 -07:00
Mitchell Hashimoto 5d1c1e6716 Merge pull request #1373 from anthonybishopric/debug_bundle_commands
builder/amazon-instance: Debug the evaluated bundle commands
2014-09-02 09:49:12 -07:00
Mitchell Hashimoto e8889e56ed Merge pull request #1381 from pas256/chroot-hvm
builder/amazonchroot: can build both PV and HVM images
2014-09-02 09:47:53 -07:00
Mitchell Hashimoto dac078b451 Merge pull request #1360 from jmassara/ee_fix
builder/amazon-chroot: Fix bug with getting ec2 connection instead of source image
2014-09-02 09:46:10 -07:00
Mitchell Hashimoto 4ef3874467 builder/virtualbox-*: seed RNG [GH-1386] 2014-09-02 09:35:59 -07:00
Mitchell Hashimoto 78c534227a Merge branch 'master_add_support_for_tcg_accel_in_qemu_builder_' of github.com:mattthias/packer into mattthias-master_add_support_for_tcg_accel_in_qemu_builder_
Conflicts:
	builder/qemu/builder.go
	website/source/docs/builders/qemu.html.markdown
2014-09-02 09:31:53 -07:00
Mitchell Hashimoto 88c186df39 Merge branch 'master' of github.com:matthbak/packer into matthbak-master
Conflicts:
	builder/qemu/step_run.go
2014-09-02 09:24:31 -07:00
Mitchell Hashimoto 3827c02126 Merge pull request #1396 from ianunruh/feature/vmware-ssh-host-template
builder/vmware: Add templating to VMware SSH host option
2014-09-02 09:19:50 -07:00
Mikhail Zholobov 16cb6f60c8 builder/parallels: "guest_os_distribution" renamed to "guest_os_type".
"guest_os_distribution" become deprecated and is not required anymore.
But if it is defined (in outdated templates),then the value will be copied to "guest_os_type" and warning will be displayed.
2014-09-02 18:14:50 +04:00
Mikhail Zholobov bed6270288 builder/parallels: Detect path to Parallels Tools ISO automatically.
'parallels_tools_host_path' param is deprecated
'parallels_tools_flavor' is added (mandatory).
2014-09-02 18:14:26 +04:00
Mikhail Zholobov 40c169f757 builder/parallels: Added 'StepPrepareParallelsTools' 2014-09-02 18:14:26 +04:00
Mikhail Zholobov 13b355eaf0 builder/parallels: Added 'ToolsConfig' struct 2014-09-02 18:13:40 +04:00
Mikhail Zholobov 909d5ccb54 builder/parallels: 'ToolsIsoPath' added 2014-09-02 11:02:03 +04:00
Mitchell Hashimoto 668bd51fa2 Merge pull request #1410 from msabramo/openstack_builder_blank_keypair_is_error
builder/openstack: error out when gets blank keypair
2014-09-01 21:44:41 -07:00
Mitchell Hashimoto 18a4a4d5ea Merge pull request #1407 from hiroyuki-sato/patch_for_packer
builder/qemu: add machine_type option for qemu builder.
2014-09-01 21:39:06 -07:00
Mitchell Hashimoto 1c58f8f210 Merge pull request #1418 from msabramo/openstack_builder_region_not_mandatory
builder/openstack: Make region not required if not rackspace
2014-09-01 21:36:05 -07:00
Mitchell Hashimoto 704648896e Merge pull request #1425 from dysinger/1424-amazon-instance-s3-region-not-url
builder/amazon-instance: Use Region not S3Endpoint (see Issue 1424)
2014-09-01 21:31:36 -07:00
Mitchell Hashimoto 5c09afe22c Merge pull request #1448 from vtolstov/simple
builder/digitalocean: add ability to set api url in template
2014-09-01 21:23:41 -07:00
Ulf Mansson bebca3bfae It's not necessary to use an instance-store image to build an instance-store image, see this example http://sorcery.smugmug.com/2014/01/29/instance-store-hvm-amis-for-amazon-ec2/ so there should be no restriction on the ExpectedRootDevice 2014-08-29 09:22:27 +02:00
Vasiliy Tolstov e18f0f7f5b fix missing parts
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2014-08-28 22:24:31 +04:00
Vasiliy Tolstov 4166c63732 add ability to set api url in template
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2014-08-28 16:53:07 +04:00
Rickard von Essen f9cddd2e18 builder/parallels: Added some navigation keys. Fixes [GH-1442] 2014-08-26 01:00:58 +02:00
Mikhail Zholobov fc2d695b0f builder/parallels: Added compatibility with Parallels Desktop 10 2014-08-24 07:38:24 +04:00
Mikhail Zholobov 10be7e27de builder/parallels: Added platform check 2014-08-24 07:30:29 +04:00
Mikhail Zholobov 9ad2b98673 builder/parallels: Removed config parameter 'ostype'
We have to set either 'ostype' or 'distribution', but not both.
2014-08-24 07:30:29 +04:00
Rickard von Essen 732c767bfd parallels: Support for Parallels Desktop 10 2014-08-23 20:23:13 +02:00
Fabio Rapposelli d2a9a98eeb Fixed multiple VMware typos. 2014-08-22 10:07:36 +02:00
Jason A. Beranek ebdfa2bc56 vmware-iso/driver-esxi: Fix VNC detection of used ports
Fixes error in earlier commit that didn't properly detect a port
  was listened to.
2014-08-20 20:42:05 -05:00
Matt Page 8f237b7b94 Allow specifying project for source images in GCE
Within GCE, images may be shared across projects. Prior to this
commit, there was no way to inform the GCE builder that a source
image belonged to a specific project. This adds an optional
'source_image_project_id' key to the GCE builder config.
2014-08-20 10:20:28 -07:00
Jason A. Beranek 93e4475d6a vmware-iso/driver-esxi: Detect VNC in cross-platform way [GH-1372]
Use VMware calls to determine ports being listened to, and determine
  free VNC port
2014-08-18 21:50:48 -05:00
Jason A. Beranek 2c41d59e21 vmware-iso: Update VNCAddressFinder interface to return errors from VNCAddress() 2014-08-18 20:34:37 -05:00
Jason A. Beranek 6acbc91ff7 vmware-iso: Fix error vnc min/max ports [GH-1288] 2014-08-18 20:15:15 -05:00
Tim Dysinger c79121617c Use Region not S3Endpoint 2014-08-18 08:52:31 -10:00
Marc Abramowitz 9bd33d1e0b Make region required for rackspace but not other providers
Update test to make it pass.
2014-08-15 11:19:04 -07:00
Marc Abramowitz 69500b6943 OpenStack builder: Make region not required
Perhaps "region" is required when using a public provider like
Rackspace? It's not required for my private cloud from Metacloud. I
suspect a lot of private clouds have only a single region and thus don't
need "region" to be specified.
2014-08-15 00:32:53 -07:00
Marc Abramowitz 031c25154f openstack builder error out when gets blank keypair 2014-08-12 08:29:00 -07:00
Hiroyuki Sato 965d273907 Add machine_type option for qemu builder.
On CentOS7, ``pc-1.0'' qemu-kvm machine type are not supported.

Supported machines are:
none                 empty machine
pc                   RHEL 7.0.0 PC (i440FX + PIIX, 1996) (alias of pc-i440fx-rhel7.0.0)
pc-i440fx-rhel7.0.0  RHEL 7.0.0 PC (i440FX + PIIX, 1996) (default)
rhel6.5.0            RHEL 6.5.0 PC
rhel6.4.0            RHEL 6.4.0 PC
rhel6.3.0            RHEL 6.3.0 PC
rhel6.2.0            RHEL 6.2.0 PC
rhel6.1.0            RHEL 6.1.0 PC
rhel6.0.0            RHEL 6.0.0 PC
q35                  RHEL-7.0.0 PC (Q35 + ICH9, 2009) (alias of pc-q35-rhel7.0.0)
pc-q35-rhel7.0.0     RHEL-7.0.0 PC (Q35 + ICH9, 2009)
2014-08-12 16:02:03 +09:00
Eric Johnson a5bc5beccb Merge pull request #1397 from jfrazelle/disk_size
add disk size to google compute
2014-08-08 11:54:58 -07:00
Jessica Frazelle 8bc696ce9e add disk size to google compute, so as to avoid disk size errors on exporting the image 2014-08-08 14:39:03 -04:00
Rickard von Essen fe37d9b6e1 parallels-iso: ISO not removed from VM after install [GH-1338]
Also remove floppy and prl-tools ISO if applicable.
2014-08-08 10:07:32 +02:00
Ian Unruh 100200e1ae Add templating to VMware SSH host option 2014-08-07 11:11:08 -04:00
Matthew Baker b8c13d3e4d Keeping the -machine type=pc if accelerator method set to "none" 2014-08-07 04:08:50 -07:00
Matthew Baker 99d15abfd2 adding allowed values for accelerator 2014-08-07 02:51:24 -07:00
Matthew Baker 5814b9d3c7 Merge branch 'oracle' 2014-08-06 02:44:39 -07:00
Matthew Baker 9220d644d1 Making graphics and hardware virtualisation optional and configurable 2014-08-06 02:43:38 -07:00
Matthias Schmitz 65f71daf73 Allow 'tcg' as accelerator in builder-qemu
* Using 'tcg' as accelerator for qemu-system allows packer to run in a
  virtual machine as no kvm or xen support is needed.

* Also document the default behavior if no accelerator is given in the
  documentation.
2014-08-05 22:46:47 +02:00
Peter Sankauskas ab9f0bc3c8 Removing my debugging output 2014-07-29 22:18:43 -07:00
Peter Sankauskas a2c0b104f0 Adding the conditional necessary to construct the right options for both PV and HVM images. Also adding a test to make sure it is doing the right thing 2014-07-29 21:56:37 -07:00
Peter Sankauskas 460e2da248 The mount command for a PV image that is attached to /dev/sdf is:
mount /dev/xvdf /mnt/point
while for an HVM image that is attached to /dev/sdf, its mount command is
mount /dev/xvdf1 /mnt/point
so this code enabled that
2014-07-29 21:55:20 -07:00
Peter Sankauskas 6b751cac39 Formatting 2014-07-29 16:15:53 -07:00
Peter Sankauskas a59ee93bca To be able to build both PV and HVM images, it is not possible to use both /dev/sd[f-p] and [1-16] as the HVM images get attached at /dev/sdf but must be mounted a /dev/sdf1.
This reduces the number of simultaneous packer runs possible significantly, but unless you are Netflix, who have Aminator anyway, this is probably never going to be an issue
2014-07-29 16:07:49 -07:00
Matthew Baker c87c88fce2 OEL available net device 2014-07-29 07:41:07 -07:00
Matthew Baker 0d07960f3e Disabling SDL gui mode 2014-07-29 07:40:29 -07:00
Misha Brukman 4a85aefe0f Rename "Gsutil" to "Gcloud" now that we're updating "gcloud" and not "gsutil".
Also renamed files accordingly.
2014-07-25 17:23:15 -04:00
Eric Johnson 7f38936596 Merge pull request #1350 from mbrukman/googlecompute-driver-vm-images
builder/googlecompute: added support for all standard VM images
2014-07-25 06:08:06 -07:00
Eric Johnson ca53d7e4c0 Merge pull request #1292 from maestrodev/gcloud
[GCE] google compute builder is broken, gsutil update fails in newer images
2014-07-24 19:40:17 -07:00
Misha Brukman 5b56970b09 Added CoreOS, OpenSUSE, and Windows projects for searching images. 2014-07-24 20:39:04 -04:00
abishopric d62edd6c05 Print the evaluated bundle commands 2014-07-24 16:30:30 -07:00
Henry Huang 97eb744c87 De-register the unavailable image in the cleanup 2014-07-22 23:40:38 +08:00
Ross Smith II 2c8ea2b6d2 Merge pull request #1361 from sneal/do-not-add-floppy-files-to-vmx
Do not re-add floppy disk files to VMX
2014-07-21 18:09:19 -07:00
Shawn Neal 05ebc8f316 Do not re-add floppy disk files to VMX
This commit fixes errors like this in the vsphere post-processor when using floppy files in the builder step:
Error: File (/var/folders/zl/57c1vmr532z_ryf1scw53_b9ycmxh7/T/packer964492999) could not be found

The configure VMX step re-adds the floppy files, so we need to configure the VMX and _then_ clean the VMX in that order.
2014-07-21 17:06:43 -07:00
James Massara ca84e2ac55 Fix bug with getting ec2 connection instead of source image 2014-07-21 15:28:47 -07:00
Andy Thompson 4a98ab377a Add Stderr capture to Commit and TagImage calls. 2014-07-21 20:42:24 +01:00
Andy Thompson ed446782f9 Add a docker save post processor 2014-07-21 20:42:24 +01:00
Andy Thompson bf16683140 Add a docker tag post processor 2014-07-21 20:42:23 +01:00
Andy Thompson 1baa63f060 Add a docker commit step to the docker builder that runs instead of export if export_path not present 2014-07-21 20:42:23 +01:00
Mitchell Hashimoto 7439baf75e Merge pull request #1343 from fnoeding/templating
Added support to use templates for more fields in null-builder and amazon-builder
2014-07-19 09:49:49 -07:00
Mitchell Hashimoto 8250755a23 Merge pull request #1228 from jmassara/enhanced_networking
builder/amazon: support for enhanced networking
2014-07-19 09:48:24 -07:00
Mitchell Hashimoto 67bad68c9f Merge pull request #1250 from higebu/check-upload-iso-hash
builder/vmware/esxi: checksum iso upload to not always upload
2014-07-19 09:42:26 -07:00
Misha Brukman 01130da729 builder/googlecompute: added support for all standard VM images
Also fixed the error message to be clear that the image was not found in any of
the projects that we attempted to search, rather than keep the error message
from the last project, which may be confusing to users.
2014-07-18 15:08:08 -04:00
Florian Noeding de29431a43 null-builder: added support for templating 2014-07-17 17:46:22 +02:00
Florian Noeding e932ec6978 amazon builders now handle templating of user_data and user_data_file 2014-07-17 17:45:25 +02: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
Nina Berg bd1a0d07fb Added some variables to amazon-ebs builder and chef-client provisioner 2014-07-08 13:15:17 -04:00
Ross Smith II 418ed0cb3f Merge pull request #1316 from yuuzi41/fix-esx5-path-separator
fix invalid esx5 path separator in windows
2014-07-05 07:00:29 -07:00
yuuzi41 982e523ba2 fix invalid esx5 path separator in windows
before, this code had joining path elements by filepath module. filepath module generate path string with backslash-joined in Windows. but ESX require path string with slash-joined. it means that this code generate illegal path string in windows. illegal path string raised "Error creating disk".

this patch fixes path separator from backslash to slash in windows. from this, creating disk would succeed without error.
2014-07-02 21:55:47 +09:00
Ian Delahorne 0da4aa6f24 Replace ListServers hack with update ServerById
[gophercloud#168](https://github.com/rackspace/gophercloud/issues/168) has been
patched to not panic on non-existing server id's. If an error is returned,
check if the error is a 404 first before bailing.
2014-06-30 19:51:48 -05:00
Ross Smith II be606418e6 Merge pull request #1304 from lflux/fix-openstack-serverid-crash
Fix openstack ServerById crash
2014-06-30 10:56:53 -07:00
Ian Delahorne 2d1e1cc83e Sort AMI names in Artifact.String - fixes random test failures
With go tip, the output from Artifact.String will sometimes be output in a
different order than the tests. Sort the AMI strings before outputting.
See https://travis-ci.org/mitchellh/packer/jobs/28748467 for an example of this
failure.
2014-06-30 09:07:36 -05:00
Ian Delahorne 3af14d3dc7 Fix typo 2014-06-29 23:50:01 -05:00
Ian Delahorne 946843982f Workaround for gophercloud.ServerById crashing, fixes #1257
gophercloud.ServerById is broken in v0.1.0 - it will crash if you feed it a
non-existing server ID (see [rackspace/gophercloud #168](https://github.com/rackspace/gophercloud/issues/168))

Instead, list all servers and iterate over them. If the server id isn't found,
return "DELETED" as a state. Not perfect but it works until next version of
gophercloud is released.
2014-06-29 23:45:50 -05:00
Carlos Sanchez 80fa018a36 [GCE] gsutil update fails in newer images, use gcloud
googlecompute: It looks like you are trying to run "/usr/local/bin/../share/google/google-cloud-sdk/bin/bootstrapping/gsutil.py update".
    googlecompute: The "update" command is no longer needed with the Cloud SDK.
    googlecompute: To update, run: gcloud components update
2014-06-26 13:50:06 +02:00
Yuya Kusakabe 2b8ebe65e4 Resolves #1256, add warning mesasge to VMware ESXi driver 2014-06-25 11:20:24 +09:00
Rickard von Essen 25d2a74f49 Merge pull request #1187 from rickard-von-essen/fix_typing
builder/parallels: Fixed problems with character when typing boot command
2014-06-22 21:05:40 +02:00