Commit Graph

56 Commits

Author SHA1 Message Date
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
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 e9657e6a9f Merge pull request #2642 from oliviertremblay/master
Make TargetPath customizable
2015-10-20 12:11:13 -07:00
Mark Peek 2411c779d1 Make qemu ssh_wait_timeout example more reasonable 2015-10-01 22:52:06 -07:00
Robin Kearney 87f2f7c96d Confusing to specify this twice 2015-09-30 13:13:46 +01:00
Chris Bednarski f725cf1a4b Correct docs for qemu vm_name 2015-08-21 17:10:56 -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 d367b8b521 If is customized no file extension is added. The documentation has been updated to reflect this. 2015-08-18 17:43:59 -07:00
Chris Bednarski d8e8f98b32 Change to 4 spaces 2015-07-22 20:25:58 -07:00
Chris Bednarski d57c051651 Reformat everything 2015-07-22 19:31:00 -07:00
Tyler Tidman 3139d3d2c5 Fixes #2474: Replace use of 'int' and 'uint' in website docs with 'integer' and wrap long lines 2015-07-19 10:56:00 -04:00
Tyler Tidman bb6db46962 Cull duplicate word 'values' for disk_cache description 2015-07-17 12:20:57 -04:00
Tyler Tidman d8cde46e76 Add missing default values for 'disk_cache' and 'disk_discard' in qemu builder docs, sort qemu_binary before qemuargs so it matches ordering from 'packer fix' 2015-07-17 12:10:22 -04:00
Mitchell Hashimoto 3cc90768a2 website: update docs to link to communicator 2015-06-23 14:44:57 -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
Emil Hessman 825cd7a86a website: address spelling mistakes 2015-02-21 09:27:04 +01:00
Ross Smith II b8626d8340 Alphabetized options in qemu.html.markdown 2014-12-21 10:12:34 -08: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
Mitchell Hashimoto 733a3ca317 website: update for machine type on qemu 2014-10-27 17:06:17 -07:00
Mitchell Hashimoto d0501a7bfb Merge pull request #1493 from hiroyuki-sato/patch_for_packer
Update document about qemu builder for [GH-1407].
2014-10-27 17:05:26 -07: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
Mitchell Hashimoto 3504e4c1b7 Merge branch 'fix_qemu_size_argument' of https://github.com/berendt/packer into berendt-fix_qemu_size_argument
Conflicts:
	website/source/docs/builders/qemu.html.markdown
2014-10-27 16:13:53 -07:00
Christian Berendt 5874e23548 Fix the value for the QEMU size parameter in the documentation
Instead of 1024m it shoud be 1024M. Using 1024m as value does not work:

---snip---
2014/10/27 10:21:41 packer-builder-qemu: 2014/10/27 10:21:41 Executing
/usr/bin/qemu-system-x86_64: []string{"-m", "1024m", "-redir",
"tcp:3213::22", "-device", "virtio-net,netdev=user.0", "-cdrom",
"/home/berendt/B1-Systems/openstack-appliance/packer_cache/436c246ce08d768bbacce00e39c11ecd09071565542788d08b3120de0228c9eb.iso",
"-machine", "type=pc-1.0,accel=kvm", "-vnc", "0.0.0.0:47", "-netdev",
"user,id=user.0", "-name", "openstack", "-drive",
"file=openstack/openstack.qcow2,if=virtio", "-boot", "once=d"}
2014/10/27 10:21:41 packer-builder-qemu: 2014/10/27 10:21:41 Started
Qemu. Pid: 2618
2014/10/27 10:21:41 packer-builder-qemu: 2014/10/27 10:21:41 Qemu
stderr: qemu-system-x86_64: -m 1024m: Parameter 'size' expects a size
==> qemu: Error launching VM: Qemu failed to start. Please run with logs
to get more info.
---snap---
2014-10-27 10:34:41 +01:00
Seth Vargo 67fad6c429 Add metadata description to all pages + include "Packer" for SEO 2014-10-22 17:41:53 -04:00
Seth Vargo 0800ebfe7a Use formatting helpers and labeled code blocks 2014-10-22 17:41:53 -04:00
Josh Frye 1e2cb36735 Add all boot commands from source to docs. 2014-10-14 15:45:34 -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
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
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
RH Becker e3015d7fe1 Add `page_title` attribute to each documentation file for which it didn't already exist, matching the value to each page's h1, respectively. 2014-08-21 17:41:35 -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
Aaron Brady ddd794c38e Update QEMU builder documentation with `disk_image` flag 2014-07-17 15:30:54 +01:00
Andreas Kohn baa9fb9b76 Update the kickstart link
Instead of pointing at a specific (in this case actually non-working!) revision, point to the github UI for the
head revision.
The user is expected to find the 'raw' link there, but the page allows to also quickly look at changes etc, which
might be helpful for people unfamiliar with kickstart files.
2014-06-20 14:16:35 +02:00
Andreas Kohn 792c8ac964 Improve the boot command sequence
Use a single command line, avoid the graphical installer, and use {{ .HTTPIP }} rather than the actual IP.
Also wait a bit before entering the commands to increase the chance of actually being in the boot menu.
2014-06-20 14:14:15 +02:00
Andreas Kohn 2eafb03f16 Update to CentOS 6.5 2014-06-20 14:13:53 +02:00
Ross Smith II d666b64fb8 website: alphabetized configuration options, added missing ones, standardized text 2014-05-04 10:47:56 -07:00
Ross Smith II e422d45f92 Allow wildcards and directories for floppy_files parameter 2014-04-29 12:27:34 -07:00
Mitchell Hashimoto c71e06e800 website: update to be a little more clear [GH-933] 2014-03-12 21:12:14 -07:00
Mitchell Hashimoto 0fd7bdd3f5 builder/qemu: style 2014-02-21 15:22:58 -08:00
Mitchell Hashimoto 1b23af2667 Merge pull request #854 from qur/qemu-config-binary
builder/qemu: binary name to be configured
2014-02-21 15:22:27 -08:00
Mitchell Hashimoto d2fe49d6a2 builder/qemu: document run_once is gone (but keep it around for compat) 2014-02-21 15:18:03 -08:00
Julian Phillips a8993662b5 Allow Qemu binary name to be configured
On some systems the default Qemu binary name of qemu-system-x86_64
isn't appropriate.  So expose the binary name as a configurable item,
allowing the user to set it to something more appropriate if they need
to.
2014-01-24 18:01:42 +00:00
DracoBlue 8195b8da7f Fixed typo in qemu documentation 2014-01-18 22:03:36 +01:00
Mitchell Hashimoto 80c2f0fcd0 Merge pull request #690 from TranscendComputing/master
builder/qemu: added template processing for QemuArgs, floppy_files for auto-building f...
2013-12-12 14:46:08 -08:00
Thomas D. Hite 08f5131746 Added template processing for QemuArgs, floppy_files for auto-building floppies which attach to the VM at startup, and run_once flag to trigger just one powerup/powerdown. 2013-12-06 18:20:25 -06:00
Phil Fenstermacher c4ae11589d Changed error message and docs to match code - qemu-img options are qcow2 and raw 2013-12-04 14:05:07 -05:00
Mitchell Hashimoto 300897c116 website: remove outdated qemu docs 2013-11-05 21:46:38 -08:00