Commit Graph

1131 Commits

Author SHA1 Message Date
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
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
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
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
StefanScherer de5c38e6c5 skip adding floppy again in vmx_data_post step 2014-06-09 01:02:21 +02: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
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
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 750ffc8a54 builder/vmware: add VMWare Player 6 support
Also added VMWare Player support in Windows
Fixes #972
2014-05-12 18:35:37 -07:00
Ross Smith II 8313856949 builder/vmware-vmx: add floppy_files support 2014-05-12 18:24:03 -07: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
Mitchell Hashimoto d925331902 fmt 2014-05-10 10:19:35 -07:00
Mitchell Hashimoto ad72c5a4bb builder/vmware/common: more tests 2014-05-10 10:19:14 -07:00
Mitchell Hashimoto 7e991af48e builder/vmware/common: tests for StepPrepareTools
/cc @rasa - an example
2014-05-10 10:16:53 -07:00
Mitchell Hashimoto 1b1d87128c Merge pull request #1154 from rasa/765-add-tools-upload-flavor-support-in-vmware-vmx
builder/vmware-vmx: Added tools_upload_flavor support
2014-05-10 10:07:34 -07:00
Ross Smith II 779c7184a2 go fmt 2014-05-09 21:12:14 -07:00
Mitchell Hashimoto e9727df15e Merge pull request #1146 from higebu/fix-esxi-driver-iso-upload-path
Fixes #1062, ESXi Driver supports PACKER_CACHE_DIR
2014-05-09 19:56:28 -07:00
Ross Smith II ba13239672 builder/vmware-vmx: Added tools_upload_flavor support 2014-05-09 17:24:19 -07:00
Ross Smith II bdfac49410 builder/vmware: added vmx_data_post option 2014-05-09 09:25:15 -07:00
Yuya Kusakabe 6dc858e6cf Fixes #1062, ESXi Driver supports PACKER_CACHE_DIR 2014-05-09 13:16:18 +09:00
Jaime Soriano Pastor 32bb745734 Force LANG=C before appending rest of environment, as only first occurence is used 2014-05-08 17:11:19 +02:00
Mitchell Hashimoto 0b63f4f9dc Merge pull request #1132 from rasa/1123-use-local-vboxguestadditions-iso
virtualbox: use local VBoxGuestAdditions.iso by default
2014-05-06 18:54:13 -07:00
Ross Smith II bea167a48e builder/vmware-vmx: add floppy_files support
fixes #1057
2014-05-06 17:20:26 -07:00
Ross Smith II 58fd5aec61 virtualbox: use local VBoxGuestAdditions.iso by default
fixes #1123
2014-05-06 16:15:55 -07:00
Mitchell Hashimoto d8d22299ce Merge pull request #1127 from jakobadam/master
builder/parallels: Fix http_files typo in comments
2014-05-06 08:31:22 -07:00
Jakob A. Dam 40150c376d Fix http_files typo in comments 2014-05-06 17:13:15 +02:00
Pierre Riteau 2ee90b29c3 Allow OpenStack builder to skip certificate verification 2014-05-06 12:26:05 +01:00
Rickard von Essen 83cf8b23a1 Merge pull request #1120 from rickard-von-essen/vbox-ovf_guest_add
virtualbox-ovf support for guest_additions_mode
2014-05-04 22:58:04 +02:00
Ross Smith II a8a583a80c Merge pull request #1116 from higebu/fix-remote-esxi-builder-doesnt-upload-floppy
Fixes #1106, Remote ESXi builder doesn't upload floppy
2014-05-04 10:57:22 -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
Mikhail Zholobov 57e8f8e15b builder/parallels: Fixed unit test [GH-1115] 2014-05-03 14:50:30 +04:00
Yuya Kusakabe 5cac40b47c Fixes #1106, Remote ESXi builder doesn't upload floppy 2014-05-03 18:41:00 +09:00
Mikhail Zholobov dbe40b9f55 builder/parallels: Do not delete the first cdrom device
Just detach the iso from 'cdrom0', but do not delete this device from VM confguration.
2014-05-03 11:11:10 +04:00
Mitchell Hashimoto 97115821ac Merge pull request #1111 from njhartwell/master
builder/amazon/chroot: Appending wildcard to src causes problems
2014-05-02 09:47:46 -07:00
Nathan Hartwell be5adb92b5 Appending wildcard to src causes problems
It appears that the desired effect was to support
    src = "dir" -> dest/dir
    src = "dir/" -> dest

but cp -R already handles this, provided the trailing slash does not
get consumed by the shell.

The wildcard causes problems when multiple files match the
shell glob, e.g.

UploadDir("/tmp", "./salt*", [])

where my working dir contains
 - salt
 - salt-foo

will error.
2014-05-02 11:18:56 -05:00
Yuya Kusakabe 7ff781b258 Revert the way to retrieve vm ip in VMware ESXi Driver 2014-05-03 00:25:58 +09:00
Mitchell Hashimoto b4729ca7aa Merge pull request #848 from nebula/securityGroups
Support for Security Groups in Openstack
2014-05-01 20:24:42 -07:00
Mitchell Hashimoto 5c5d62733f fmt 2014-05-01 14:24:19 -07:00
Mikhail Zholobov c1510d2b50 Parallels provider: fix typos 2014-05-02 01:07:00 +04:00
Mitchell Hashimoto 3a68c8aaef builder/parallels: update builder ID
We're using packer namespace now
2014-05-01 13:59:52 -07:00
Rickard von Essen cdaa9d5a8e Added support for Parallels Desktop for Mac [GH-223]
Added builder plugins: builder-parallels-iso and builder-parallels-pvm.
2014-05-01 20:29:22 +02:00
Pierre Riteau 04d1bc67ff Support more user variables in the OpenStack builder 2014-05-01 10:23:43 +01:00
Kgespada f48fc1e2cd Adds security group support
Allows security groups to be specified in the template.
2014-05-01 00:32:55 -07:00
Mitchell Hashimoto 660be5b783 builder/openstack: support a tenant ID 2014-04-30 17:21:32 -07:00
Mitchell Hashimoto 4a725409af Merge pull request #919 from nebula/manage_floating_ips
[OpenStack] Add flexible IP pool/address handling.
2014-04-30 16:54:13 -07:00