Commit Graph

76 Commits

Author SHA1 Message Date
Matthew Hooker d920b3fbf4 run gofmt 2016-11-01 14:08:04 -07:00
Rickard von Essen 3c8dabba9e Fixed formatting 2016-10-11 23:43:50 +02:00
Rickard von Essen 5e96709ee9 Merge pull request #2919 from arizvisa/floppy-recurse
Added an option for copying entire subdirectories via floppy_dirs (supplants floppy_files)
2016-10-08 16:51:16 +02:00
Ali Rizvi-Santiago 86c00490e9 Renamed any and all instances of the word "FloppyContents" to "FloppyDirectories".
Ensure that all builders include FloppyDirectories in the StepCreateFloppy options.
Changed the way the unit-tests in common/step_create_floppy_test work to use the static test-fixtures directory instead of creating the paths dynamically.
Removed a duplicate line of documentation from parallels-pvm.html.md that occurred during rebasing.
2016-09-27 23:31:42 -05:00
Orivej Desh 6762965696 Add -on-error command line argument to allow preserving artifacts on builder errors
Resolves #409
2016-09-16 12:15:00 +00:00
Rickard von Essen 3ab49595e6 Merge pull request #3681 from yoctocloud/communicator
builder/qemu: dont fail on communicator set to none
2016-09-13 22:45:12 +02:00
Ali Rizvi-Santiago a3f0308e92 Re-implemented the support for the floppy_files keyword in order to remain backwards-compatible with templates using the old syntax.
Moved the support for recursive paths from the floppy_files keyword to the new floppy_contents keyword.
Shifted some of the code around to add better logging of what's actually being copied.
Added a couple of unit-tests for the new floppy_contents implementation.
Ensured that all files that were being added were also being included in state.FilesAdded so that the older unit-tests will work.
2016-09-12 11:56:25 -05:00
Ricard Clau acededfc6e tests actually test the floppies 2016-07-27 21:59:21 +01:00
Vasiliy Tolstov 83f175cac7 builder/qemu: dont fail on communicator - none
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2016-07-07 00:49:23 +03:00
Ian Duffy fa273f3bea Allow configurable VNC bind IP for QEMU
This commit allows for a user configurable VNC bind IP to be used for
QEMU.

By default this will be 127.0.0.1, alternatively, a user can use
0.0.0.0 which will bind to all interfaces.

This pull request should satisfy concerns of #3570 and #3559. It is
also in-line with the functionality provided by #3566 and #3565

Signed-off-by: Ian Duffy <ian@ianduffy.ie>
2016-05-25 10:10:12 +01:00
Chris Bednarski 24cf28d4b6 Merge branch 'yoctocloud-accelerator' 2016-05-19 22:54:19 -07:00
Chris Bednarski bff939b373 Added comment on why we need to open /dev/kvm before using it 2016-05-19 22:53:53 -07:00
Vasiliy Tolstov 0f638f9111 builder/qemu: add simple kvm/tcg autodetection
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2016-05-18 15:38:38 +03:00
Sean Chittenden 98bae9c98e
Pause between boot_commands when debugging a QEMU build
When debugging a build (or maintaining an existing packer template), teach `packer build -debug` how to step through individual `boot_command`s in order to triage the packer template.
2016-05-17 17:14:50 -04:00
James Bishopp bd8fb014c4 Removed ssh_key_path
- removed backwards compatibility code
- ensured key usage came from SSHPrivateKey configuration
- changed tests to use private_key
2016-02-12 17:24:42 -08:00
Vasiliy Tolstov d96283e475 qemu: allow to use live iso without cache
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2016-01-25 10:44:42 +00:00
Mark Peek 7f149e595d Refactor http server config into common 2015-11-01 14:45:47 -08:00
Vasiliy Tolstov 8e1cc16ab5 add convert step for qcow2 image format
https://ext4.wiki.kernel.org/index.php/Ext4_VM_Images does not
recommends to dd zero file and deletes it, but in case of enabling
discards and qcow2 image we can recreate qcow2 file with less used
space.
Also qemu-img able to enable compression for qcow2 files, that
sometimes may be useful because it natively supported by qemu.

Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2015-10-29 12:27:46 +00:00
Mark Peek c3d77dc5a1 Fix unintended BC issues in ISO option refactoring 2015-10-26 17:39:48 -07: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
Vasiliy Tolstov 48f8612b72 add virtio-scsi
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2015-09-15 10:59:29 +00:00
Chris Bednarski bf733b75d5 Revert "By default, Qemu will now have an extension added based on the file format. This is a change to more closely match behavior from 0.7.5."
This reverts commit 55fadd96bc.
2015-08-21 16:46:29 -07:00
Olivier Tremblay 6644f57160 Merge branch 'master' into custom-targetpath 2015-08-20 08:20:55 -04:00
Olivier Tremblay f301a6454d Added documentation, renamed config param to iso_target_path 2015-08-20 07:37:24 -04:00
Chris Bednarski 55fadd96bc By default, Qemu will now have an extension added based on the file format. This is a change to more closely match behavior from 0.7.5. 2015-08-18 17:44:17 -07: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 5852bd7cd7 builder/qemu: default acceleration to tcg on Windows [GH-2284] 2015-06-22 17:56:35 -07:00
Mitchell Hashimoto 84189f7a28 builder/*: properly save interpolation context 2015-06-22 09:22:42 -07:00
Mitchell Hashimoto 115d583cff helper/communicator: make host more generic 2015-06-13 19:23:33 -04:00
Mitchell Hashimoto 89af447c8c builder/qemu: convert to helper/comm 2015-06-13 18:47:59 -04:00
Mitchell Hashimoto 77af5f83f7 Merge pull request #2120 from vtolstov/discard
add discard option to qemu builder
2015-05-27 20:18:11 -07:00
Mitchell Hashimoto 3e76547bff bulder/qemu: convert interpolation 2015-05-27 13:39:43 -07:00
Vasiliy Tolstov 3984f5e6f6 add discard option to qemu builder
Enabling discards for disk can greatly minimize disk size then user
inside vm use fstrim command or trim/discard unneded blocks.

Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2015-05-17 20:48:58 +03:00
Seth Vargo 96c813684e Merge pull request #1645 from vtolstov/qemu_disk
Allow none checksumtype for qemu builder
2014-11-26 16:28:19 -05:00
Vasiliy Tolstov 16110c6be6 add CD-ROM only if not used disk_image, also boot from it only if CD-ROM present
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2014-11-06 23:13:09 +03:00
Vasiliy Tolstov 4762075dc3 add missing variable
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2014-10-31 16:15:23 +03:00
Vasiliy Tolstov 5631873727 allow none checksumtype for qemu builder (copy/paste from virtualbox)
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2014-10-31 16:07:04 +03:00
Mitchell Hashimoto 06144cf287 fmt 2014-10-28 08:43:19 -07:00
Mitchell Hashimoto 0db6cd3533 Merge pull request #1330 from qur/qemu-vagrant
Qemu vagrant
2014-10-28 08:42:17 -07:00
Mitchell Hashimoto 60e2a8b5fc Merge pull request #1342 from iwebhosting/qemu-image-support
Add support for building QEMU images from pre-existing image files
2014-10-28 08:38:51 -07:00
Vasiliy Tolstov e1e3d3c1e1 fix quote in variable name
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2014-10-28 17:25:53 +03:00
Mitchell Hashimoto c161f9adc5 Merge pull request #1558 from vtolstov/qemu_cache
builder/qemu: add ability to set cache mode for disk
2014-10-27 16:56:16 -07:00
Vasiliy Tolstov 8efc8ec984 add ability to set cache mode for disk
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2014-10-06 01:09:45 +04: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
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
Mitchell Hashimoto 76a8221636 builder/*: extract key path to ssh.Signer 2014-09-03 20:23:39 -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
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