diff --git a/CHANGELOG.md b/CHANGELOG.md index f71031fba..9de487f17 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,8 +2,8 @@ FEATURES: -* Qemu builder. This builder builds a new VM compatible with KVM or Xen - using qemu. +* QEMU builder. This builder builds a new VM compatible with KVM or Xen + using QEMU. * Vagrant post-processor can now make DigitalOcean provider boxes. [GH-504] IMPROVEMENTS: diff --git a/website/source/docs/builders/qemu.html.markdown b/website/source/docs/builders/qemu.html.markdown index 626d01b8b..e824eee24 100644 --- a/website/source/docs/builders/qemu.html.markdown +++ b/website/source/docs/builders/qemu.html.markdown @@ -2,7 +2,7 @@ layout: "docs" --- -# Qemu (qemu-system-x86_64) Builder +# QEMU Builder Type: `qemu` @@ -37,7 +37,7 @@ paths to files, URLS for ISOs and checksums. "format": "qcow2", "headless": false, "accelerator": "kvm", - "http_directory": "/home/tdhite/packer/httpfiles", + "http_directory": "httpdir", "http_port_min": 10082, "http_port_max": 10089, "ssh_host_port_min": 2222, @@ -59,79 +59,10 @@ paths to files, URLS for ISOs and checksums. } -The following is a working CentOS 6.x kickstart file adapted from -an unknown source. You would place such a file in the http_files -directory with the name centos6-ks.cfg: - -
-text
-skipx
-install
-url --url http://mirror.raystedman.net/centos/6/os/x86_64/
-repo --name=updates --baseurl=http://mirror.raystedman.net/centos/6/updates/x86_64/
-lang en_US.UTF-8
-keyboard us
-rootpw s0m3password
-firewall --disable
-authconfig --enableshadow --passalgo=sha512
-selinux --disabled
-timezone Etc/UTC
-%include /tmp/kspre.cfg
-
-services --enabled=network,sshd/sendmail
-
-poweroff
-
-%packages --nobase
-at
-acpid
-cronie-noanacron
-crontabs
-logrotate
-mailx
-mlocate
-openssh-clients
-openssh-server
-rsync
-sendmail
-tmpwatch
-vixie-cron
-which
-wget
-yum
--biosdevname
--postfix
--prelink
-%end
-
-%pre
-bootdrive=vda
-
-if [ -f "/dev/$bootdrive" ] ; then
-  exec < /dev/tty3 > /dev/tty3
-  chvt 3
-  echo "ERROR: Drive device does not exist at /dev/$bootdrive!"
-  sleep 5
-  halt -f
-fi
-
-cat >/tmp/kspre.cfg <
+A working CentOS 6.x kickstart file can be found
+[at this URL](https://gist.github.com/mitchellh/7328271/raw/c91e0c4fa19c171a40b016c6c8f251f90d2ad0ba/centos6-ks.cfg), adapted from an unknown source.
+Place this file in the http directory with the proper name. For the
+example above, it should go into "httpdir" with a name of "centos6-ks.cfg".
 
 ## Configuration Reference
 
@@ -159,6 +90,10 @@ Required:
 
 Optional:
 
+* `accelerator` (string) - The accelerator type to use when running the VM.
+  This may have a value of either "kvm" or "xen" and you must have that
+  support in on the machine on which you run the builder.
+
 * `boot_command` (array of strings) - This is an array of commands to type
   when the virtual machine is first booted. The goal of these commands should
   be to type just enough to initialize the operating system installer. Special
@@ -190,10 +125,6 @@ Optional:
 * `format` (string) - Either "qcow2" or "img", this specifies the output
   format of the virtual machine image. This defaults to "qcow2".
 
-* `accelerator` (string) - The accelerator type to use when running the VM.
-  This may have a value of either "kvm" or "xen" and you must have that
-  support in on the machine on which you run the builder.
-
 * `headless` (bool) - Packer defaults to building virtual machines by
   launching a GUI that shows the console of the machine being built.
   When this value is set to true, the machine will start without a console.
diff --git a/website/source/layouts/docs.erb b/website/source/layouts/docs.erb
index 400e264c1..f400ec930 100644
--- a/website/source/layouts/docs.erb
+++ b/website/source/layouts/docs.erb
@@ -33,6 +33,7 @@
 			
  • Amazon EC2 (AMI)
  • DigitalOcean
  • OpenStack
  • +
  • QEMU
  • VirtualBox
  • VMware
  • Custom