Commit Graph

1065 Commits

Author SHA1 Message Date
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
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
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
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
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
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
Rickard von Essen a5d39cebc7 Merge pull request #1173 from rickard-von-essen/pvm_bootcommand
[feature] Support boot command for pvm builder
2014-06-22 21:05:04 +02:00
Rickard von Essen 3f3deab162 Merge pull request #1279 from rickard-von-essen/issue_1226
Parallels-iso errors while removing floppy drive GH-1226
2014-06-22 21:04:02 +02:00
Rickard von Essen d6ddb5f6ff Merge pull request #1278 from rickard-von-essen/issue_1225
Parallels errors while creating floppy disk GH-1225
2014-06-22 21:03:27 +02:00
StefanScherer 9dc06b608e increase VMware cleanup timeout to 120 seconds 2014-06-20 01:07:40 +02:00
Ross Smith II a0caa635fa Merge pull request #1261 from lflux/openstack-networks-support
Add ability to configure networks for openstack
2014-06-16 17:53:44 -07:00
Ian Delahorne c00696992a Add ability to configure networks for openstack
Add configuration option `networks`, a list of network UUIDs, to attach to the
source instance.

In some openstack installs, no default network will be attached or the network
with the ability to attach a public floating IP will need to be specified.
2014-06-15 13:56:19 -05:00
Ian Delahorne 8bf935beb8 Force IPv4 addresses from address pools in Openstack. Fixes #1258
Rackspace defaults to a public IPv4 and IPv6 address. These are returned in
random order, with the sprintf further on generating an incorrect connection
string if on IPv6. Force IPv4 until support for correct connection strings and
a configuration flag for logging in over IPv6 is added.
2014-06-15 02:12:52 -05:00
Yuya Kusakabe 6ff38c86ea Fixes #1244, Add a check for upload iso hash to ESXi Driver 2014-06-12 14:33:34 +09:00
Mohammed Naser 110c168a68 Update run_config.go 2014-06-07 16:04:29 -04:00
Rickard von Essen 905f242582 Parallels-iso errors while removing floppy drive GH-1226
Status "stopping" should be handled in IsRunning
2014-06-06 15:59:27 +02:00
Paul Palmer 5a8f56b6ad Parallels errors while creating floppy disk GH-1225
Patch applied with modifications - tests updated to pass.
2014-06-06 15:54:19 +02:00
James Massara be27ecc64b Add option to enable enhanced networking (SriovNetSupport) for images. 2014-06-04 14:58:11 -07:00
Brandon Turner b2258dc4e9
Fix chroot builder to work with chef-solo
According to be5adb92b5, the UploadDir
method supports two ways of copying depending on whether a trailing
slash is used:
    src = "dir"  -> dest/dir
    src = "dir/" -> dest

On BSD-based systems (such as OSX, FreeBSD, etc.) the `cp -R` command
handles these two cases automatically.  However, Linux treats "src/" and
"src" the same.

To support the trailing slash syntax portably, we can use:
    src = "dir"   -> dest/dir
    src = "dir/." -> dest

This works on BSD and Linux.  It is better than using wildcards as it
grabs hidden files as well.

This fixes #1196 that prevents the chef-solo provisioner from working
with the chroot builder.
2014-05-27 19:02:29 -05:00
Greg Burek 3a45712780 Adds support for encrypted EBS volumes 2014-05-22 11:36:22 -07:00
Rickard von Essen 29344a5631 Parallels builder mistypes boot command on OmniOS
Fixes [GH-1185] and adds tests for the boot command.
Also requires the latest prl-utils (e592a15) to fix the stuck on enter
while typing.
2014-05-19 20:14:50 +02:00
Rickard von Essen 4d994deb3a [feature] Support boot command for pvm builder
Similar to [GH-1082] but for parallels-pvm builder.
2014-05-19 20:04:13 +02:00
Pierre Riteau 5294e0ed61 Remove unused file 2014-05-15 17:22:40 +01:00
Ross Smith II 38d1d7fd3c Update vmx_config.go
Tiny typo.
I really should add a unit test here.
2014-05-12 14:43:12 -07:00
Ross Smith II b397d75a52 Update driver_workstation9.go
1 line typo
2014-05-11 08:46:19 -07:00
Rickard von Essen 4cdce51df5 builder/parallels: Don't delete sound, since it doesn't allways exist. 2014-05-11 11:20:56 +02:00
Rickard von Essen bd25866e90 builder/parallels: Select which interface to connect to.
The IP address that the guest OS connect to download files from the
http_dir is determined by searching for a host interface with an IP
assigned. Now it is possible to use host_interfaces to select which
interfaces are searched.
2014-05-11 11:12:50 +02:00
Rickard von Essen bd5d5e049d builder/parallels: Added pppX interface to be able to run packer when using mobile wlan 2014-05-11 00:14:35 +02:00
Mitchell Hashimoto 6a930d819c builder/vmware/common: remove unnecessary tags 2014-05-10 10:21:44 -07:00