Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
packer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kristopher Ruzic
packer
Commits
2e438b7e
Commit
2e438b7e
authored
Nov 05, 2013
by
Mitchell Hashimoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
website: update QEMU docs
parent
355b37ed
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
81 deletions
+13
-81
CHANGELOG.md
CHANGELOG.md
+2
-2
website/source/docs/builders/qemu.html.markdown
website/source/docs/builders/qemu.html.markdown
+10
-79
website/source/layouts/docs.erb
website/source/layouts/docs.erb
+1
-0
No files found.
CHANGELOG.md
View file @
2e438b7e
...
...
@@ -2,8 +2,8 @@
FEATURES:
*
Q
emu
builder. This builder builds a new VM compatible with KVM or Xen
using
qemu
.
*
Q
EMU
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:
...
...
website/source/docs/builders/qemu.html.markdown
View file @
2e438b7e
...
...
@@ -2,7 +2,7 @@
layout
:
"
docs"
---
# Q
emu (qemu-system-x86_64)
Builder
# Q
EMU
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.
}
</pre>
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:
<pre
class=
"prettyprint"
>
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 <<CFG
zerombr
bootloader --location=mbr --driveorder=$bootdrive --append="nomodeset"
clearpart --all --initlabel
part /boot --ondrive=$bootdrive --fstype ext4 --fsoptions="relatime,nodev" --size=512
part pv.1 --ondrive=$bootdrive --size 1 --grow
volgroup vg0 pv.1
logvol / --fstype ext4 --fsoptions="noatime,nodiratime,relatime,nodev" --name=root --vgname=vg0 --size=4096
logvol swap --fstype swap --name=swap --vgname=vg0 --size 1 --grow
CFG
%end
%post
%end
</pre>
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.
...
...
website/source/layouts/docs.erb
View file @
2e438b7e
...
...
@@ -33,6 +33,7 @@
<li><a
href=
"/docs/builders/amazon.html"
>
Amazon EC2 (AMI)
</a></li>
<li><a
href=
"/docs/builders/digitalocean.html"
>
DigitalOcean
</a></li>
<li><a
href=
"/docs/builders/openstack.html"
>
OpenStack
</a></li>
<li><a
href=
"/docs/builders/qemu.html"
>
QEMU
</a></li>
<li><a
href=
"/docs/builders/virtualbox.html"
>
VirtualBox
</a></li>
<li><a
href=
"/docs/builders/vmware.html"
>
VMware
</a></li>
<li><a
href=
"/docs/builders/custom.html"
>
Custom
</a></li>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment