diff --git a/doc/image-guide/ch_creating_images_automatically.xml b/doc/image-guide/ch_creating_images_automatically.xml
index 04bcc6da1f..b708193e21 100644
--- a/doc/image-guide/ch_creating_images_automatically.xml
+++ b/doc/image-guide/ch_creating_images_automatically.xml
@@ -8,7 +8,27 @@
There are several tools that are designed to automate image
creation.
-
+
+ Diskimage-builder
+ diskimage-builder is an automated disk image creation
+ tool that supports a variety of distributions and architectures.
+ Diskimage-builder (DIB) can build images for Fedora, Redhat,
+ Ubuntu, Debian, CentOS, and openSUSE. DIB is organized in a series
+ of elements that build on top of each other to create specific
+ images.
+ To build an image, call the following script:
+#disk-image-create ubuntu vm
+ This example creates a generic, bootable Ubuntu image of the latest
+ release.
+ Further customization could be accomplished by setting
+ environment variables or adding elements to the command-line:
+#disk-image-create -a armhf ubuntu vm
+ This example creates the image as before, but for arm architecture.
+ More elements are available on github.
+
+
+ OzOz is a command-line tool that automates the process of
@@ -17,11 +37,13 @@
virtual machine. It uses a predefined set of kickstart (Red
Hat-based systems) and preseed files (Debian-based systems) for
operating systems that it supports, and it can also be used to
- create Microsoft Windows images. On Fedora, install Oz with yum:#yum install oz
- As of this writing, there are no Oz packages for Ubuntu,
+ create Microsoft Windows images. On Fedora, install Oz with yum:
+#yum install oz
+
+ As of this writing, there are no Oz packages for Ubuntu,
so you will need to either install from source or build your
own .deb file.
-
+
A full treatment of Oz is beyond the scope of this document, but
we will provide an example. You can find additional examples of Oz
template files on GitHub at centos64.tdl) with the following contents.
The only entry you will need to change is the
<rootpw>
- contents.<template>
+ contents.
+<template>
<name>centos64</name>
<os>
<name>CentOS-6</name>
@@ -65,7 +88,7 @@ echo -n > /lib/udev/rules.d/75-persistent-net-generator.rules
</command>
</commands>
</template>
-
+
This Oz template specifies where to download the Centos 6.4
install ISO. Oz will use the version information to identify which
kickstart file to use. In this case, it will be /lib/udev/rules.d/75-persistent-net-generator.rules
specified in the command section of the XML
file.To run this, do, as root:
- #oz-install -d3 -u centos64.tdl -x centos64-libvirt.xml
+ #oz-install -d3 -u centos64.tdl -x centos64-libvirt.xml
+ The -d3 flag tells Oz to show
status information as it runs.
@@ -97,12 +121,13 @@ echo -n > /lib/udev/rules.d/75-persistent-net-generator.rules
(otherwise it will default to something like
centos64Apr_03_2013-12:39:42).
- If you leave out the -u flag, or
+
+ If you leave out the -u flag, or
you want to edit the file to do additional customizations, you can
use the oz-customize command, using the libvirt
- XML file that oz-install creates. For example:
+ XML file that oz-install creates. For example:#oz-customize -d3 centos64.tdl centos64-libvirt.xml
- Oz will invoke libvirt to boot the image inside of KVM, then Oz will
+ Oz will invoke libvirt to boot the image inside of KVM, then Oz will
ssh into the instance and perform the customizations.