Commit Graph

3681 Commits

Author SHA1 Message Date
Mikhail Zholobov eb37742ab0 builder/parallels: Disable default cdrom0 device and then enable it on cleanup
This is needed to make 'cdrom0' device unavailable during the ISO installation process.
It is required for some guest OS types, such as FreeBSD and OmniOS.
2014-10-04 22:39:54 +02:00
Mikhail Zholobov 13251ced49 builder/parallels: Added setting the boot order
CD/DVD drive with installation ISO should be exactly the 2nd device in the VM boot order.
This ensures that VM will boot from this ISO at the first boot time only.
2014-10-04 22:39:54 +02:00
Mikhail Zholobov 280c3c52de builder/parallels: Attach ISO images to the separate cdrom device
For each ISO image the individual cdrom device will be added to the VM. During the cleanup these devices will be deleted.
It makes attach steps more clear - there is no doubt what is the name of the device.

Related to: [mitchellh/packer#1502]
2014-10-04 22:39:54 +02:00
Mikhail Zholobov 0cfe58193f builder/parallels: Added driver method 'DeviceAddCdRom' 2014-10-04 22:39:54 +02:00
JessThrysoee 5394ce61fd builder/parallels: Rely on Cleanup functions to detach devices
Remove the redundant StepRemoveDevices and rely on the cleanup to be handled by:
* StepAttachParallelsTools.Cleanup
* StepAttachFloppy.Cleanup
* stepAttachISO.Cleanup
2014-10-04 22:39:54 +02:00
Jack Pearkes 37a9c3dc7d Merge pull request #1554 from mitchellh/sethvargo/update_middleman
Update website to use latest middleman
2014-10-04 10:01:57 -07:00
Rickard von Essen 57ad64da30 Merge pull request #1501 from JessThrysoee/current_fdd0_does_not_exist
builder/parallels: Ignore 'The fdd0 device does not exist'
2014-10-04 18:04:08 +02:00
Seth Vargo a4eb1035ea Update website to use latest middleman 2014-10-03 17:55:34 -07:00
Seth Vargo ab12c84407 Remove unnecessary counter file (as per @pearkes) 2014-10-03 17:55:26 -07:00
Brian Downs dabf34a458 Replaced struct call with nil per @jsonberanek. Ran go fmt. 2014-10-03 12:34:07 -07:00
Kent Holloway 6b5a505384 -redir is deprecated and missing on some versions of QEMU, using -netdev instead which is recommended. Removing M letter from Memory flag as QEMU now assumes this value is always in MB and errors out if you pass the M as a part of the command 2014-10-03 10:39:57 -05:00
Kent Holloway 2755ba1751 Changing machinetype default to PC instead of PC-1.0 which seems to be a saner default that works on more platforms. RedHat in particular doesnt have PC-1.0 2014-10-03 10:37:03 -05:00
Kent Holloway 2cf7e694bc Fix for panic when ssh min and max port is the same for qemu builder. Taken directly from a previous patch by mitchellh 8f50d2dd9a 2014-10-03 10:14:02 -05:00
Vasiliy Tolstov e614a8c3d5 remove debug output
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2014-10-03 01:47:51 +04:00
Vasiliy Tolstov 90077c6e05 Merge branch 'digitalocean' of github.com:vtolstov/packer into digitalocean 2014-10-03 00:04:33 +04:00
Vasiliy Tolstov f4c756a2cb fix copy/paste error
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2014-10-03 00:02:46 +04:00
Mikhail Zholobov 48c64b05cb builder/parallels: Init VM without hdd and attach it later
Avoid the disk resize because it is unsupported for some guests (OS X)
http://kb.parallels.com/en/113653
2014-10-01 16:13:46 +04:00
mafro ed07fb63e4 salt provisioner: tidy up and refactor into functions 2014-10-01 12:31:58 +10:00
mafro e7a46d97c0 salt provisioner: require local_state_tree 2014-10-01 12:31:58 +10:00
Rickard von Essen dc3f156f02 Merge pull request #1499 from JessThrysoee/python_prltype
builder/parallels: Bundle python version of prltype
2014-09-27 11:10:37 +02:00
Nicolai Fröhlich 7fdb045ed0 Fixed dead links in doc section environment-variables.
Due to a missing `/` the links pointed to i.e. `docs/other/docs/other/core-configuration.html` producing a 404 / Page not found.
2014-09-26 15:28:24 +02:00
amangoel e5c71008ba Update amazon.html.markdown
Technical correction
2014-09-24 17:41:41 -07:00
amangoel 6150a281f5 Update chef-solo.html.markdown 2014-09-24 17:15:47 -07:00
Scott Rahner 4383b435a4 adding default nodename 2014-09-24 19:40:34 -04:00
Jesse Cooke adedfb85a6 Ditch ` around content words 2014-09-24 14:00:58 -07:00
Ask Holme 173237ba45 make docker-push work with docker-tag artifacts 2014-09-24 22:22:39 +02:00
Jesse Cooke c2ffdd99a7 Minor edits 2014-09-24 10:07:57 -07:00
Shawn Neal 5fd9651982 GH 1508 - Ensure Packer VMX is updated and saved
We need to ensure the VMWare process has exited before attempting to run VMX file cleanup steps, otherwise VMWare may overwrite our changes. While Packer does its best to ensure VMWare has exited, there's still a race condition on some OSs between VMWare flushing the VMX and Packer updating it. The workaround is to artifically wait 5 seconds.

When using the VMX builder its possible for the source machine to have a floppy and/or CD-ROM mounted which gets cloned to the new VM Packer spins up, but have no Packer configuration for those devices. With this change we always attempt to remove the mounted devices regardless of the Packer configuration.
2014-09-24 09:42:10 -07:00
Julian Phillips 660e82e689 Update vagrant supported builder list
Update the list of supported builders in the vagrant post-processor
docs to include QEMU.
2014-09-22 11:15:47 +01:00
Julian Phillips 60e608dfdb Add support for vagrant with qemu
Once we have produced a qemu VM, we now have the option of using
the vagrant post-processor to create a .box file that can be used with
the vagrant-libvirt plugin.

This uses the new State method of the Artifact API to get necessary
information from the builder.
2014-09-22 11:15:47 +01:00
Julian Phillips 90a57c411f Expand Artifact API to expose build state
In order that something consuming an artifact can have access to extra
builder specific data add the State method which allows the caller to
ask for arbitary values by name.
2014-09-22 11:15:47 +01:00
Julian Phillips ee6a118090 Configure MessagePack to be a bit more like gob
By default codec's MessagePack encode/decode will convert a string
into a []byte.  Tweak the settings so that string -> string and []byte
-> []byte.
2014-09-21 23:57:37 +01:00
Jason A. Beranek 2c0a7a501e Update CHANGELOG.md 2014-09-20 22:24:33 -05:00
Brian Downs bf5ec1f985 Ran go fmt 2014-09-19 15:55:05 -07:00
Brian Downs 1303329a91 Added struct to be passed to the Process function to render the vagrant file path. Resolves Issue #1125. 2014-09-19 15:46:07 -07:00
JessThrysoee 16b82d6d15 builder/parallels: Bundle python version of prltype
Uses the Python API from Parallels Virtualization SDK to write
boot commands.

This eliminates a 3rd party requirement and makes it easier for people
not using homebrew to get started with packer.
2014-09-19 22:19:15 +02:00
JessThrysoee cf6532ffe2 builder/parallels: Ignore 'The fdd0 device does not exist'
A current floppy disk probably doesn't exist, so the build shouldn't
fail when we try to delete it.
2014-09-18 20:36:05 +02:00
Alexander Kurilo 3592d67093 Fix detecting guest additions URL
When system property exists with empty value, packer treats that
empty value as a URL. The issue has been spotted on Arch
with Virtualbox 4.3.16.
2014-09-18 10:53:13 -04:00
Jason A. Beranek 5e4ffb56d0 Merge pull request #1505 from jasonberanek/issue-1480
builder/vmware-esx: Ignore localhost for VNC lookup and document VNC requirements [GH-1480]
2014-09-16 23:16:51 -05:00
Jason A. Beranek 58a50e0513 website: document vmware-esxi VNC requirements 2014-09-16 22:16:22 -05:00
Jason A. Beranek 8689301d68 builder/vmware-esxi: Ignore localhost for VNC lookup [GH-1480]
Adds logic to ESXi driver VNC Address function to ignore listen
  addresses that bind to localhost (127.0.0.1), this allows certain
  default ports to be available on ESXi for VNC connections
2014-09-16 22:00:52 -05:00
Shawn Neal 7d9c252b3a Clean VMX step should always remove floppy.
When using the VMX builder its possible for the source machine to have a floppy configured which gets cloned to the new VM Packer spins up. When the new VM's Packer config doesn't have a floppy_files config entry, the Packer clean VMX step fails to remove the floppy disk from the new VM. This can cause build failures, for example with the vsphere post processor; generating errors like:

* Post-processor failed: Failed: exit status 1
Error: File (/home/teamcity/tmp/buildTmp/packer941120499) could not be found.

Opening the cloned VM's VMX file you can clearly see it has a floppy entry from the source machine's VMX file (exact same path) even though the Packer config contains no floppy_files entry.
2014-09-16 18:27:00 -07:00
Jason A. Beranek a7122b3cf3 Merge pull request #1497 from routelastresort/vmx-step-order
fixed vmware-vmx step order
2014-09-15 08:55:37 -05:00
Vasiliy Tolstov bb484e88a2 Update digitalocean.html.markdown
fix mistake
2014-09-15 15:44:27 +04:00
Vasiliy Tolstov 018601058c Update digitalocean.html.markdown
separate v1 and v2 api
2014-09-15 15:43:54 +04:00
Vasiliy Tolstov ca6ef4d1e1 Update digitalocean.html.markdown
update docs
2014-09-15 15:43:10 +04:00
John Deatherage e571a133b0 fixed vmware-vmx step order 2014-09-14 04:28:55 -07:00
Hiroyuki Sato c650f6f6af Fix typo 2014-09-12 23:28:10 +09:00
Hiroyuki Sato 64a709e7be Update document about qemu builder for [GH-1407].
https://github.com/mitchellh/packer/pull/1407
2014-09-12 23:14:55 +09:00
Lance French ce5276d667 Update for amazon-instance builder docs [GH-1491]
Updating --url parameter to --region in the builder
documentation for the bundle upload command.
2014-09-11 23:08:45 -07:00