openstack-manuals/doc/config-reference/image-service/section_image-service-ISO-support.xml
Christian Berendt a6bce01980 Unified the syntax of the XML root element (config-reference)
The XML root element of Docbook XML files should match the following
format:

<ELEMENT xmlns="http://docbook.org/ns/docbook"
  xmlns:xi="http://www.w3.org/2001/XInclude"
  xmlns:xlink="http://www.w3.org/1999/xlink"
  version="5.0"
  xml:id="THE_XML_ID_OF_THE_ELEMENT">

Change-Id: I02a75b63d0fb3ea4a7d015794b9229a94ddad279
2014-07-10 14:11:19 +02:00

47 lines
2.0 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<section xmlns="http://docbook.org/ns/docbook"
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:xlink="http://www.w3.org/1999/xlink"
version="5.0"
xml:id="iso-support">
<title>Support for ISO images</title>
<para>You can load ISO images into the Image Service. You can
subsequently boot an ISO image using Compute.</para>
<procedure>
<title>To load an ISO image to an Image Service data
store</title>
<step>
<para>Obtain the ISO image. For example,
<filename>ubuntu-13.04-server-amd64.iso</filename>.</para>
</step>
<step>
<para>In the Image Service, run the following
command:</para>
<screen><prompt>$</prompt> <userinput>glance image-create --name ubuntu.iso \
--is-public=True --container-format=bare \
--disk-format=iso &lt; ubuntu-13.04-server-amd64.iso</userinput></screen>
<para>In this command, <literal>ubuntu.iso</literal> is
the name for the ISO image after it is loaded to the
Image Service, and
<literal>ubuntu-13.04-server-amd64.iso</literal>
is the name of the source ISO image.</para>
</step>
<step>
<para>Optionally, confirm the upload in Compute.</para>
<para>Run this command:</para>
<screen><prompt>$</prompt> <userinput>nova image-list</userinput></screen>
</step>
</procedure>
<procedure>
<title>To boot an instance from an ISO image</title>
<step>
<para>Run this command:</para>
<screen><prompt>$</prompt> <userinput>nova boot --image ubuntu.iso \
--flavor 1 instance_name</userinput></screen>
<para>In this command, <literal>ubuntu.iso</literal> is
the ISO image, and <literal>instance_name</literal> is
the name of the new instance.</para>
</step>
</procedure>
</section>