Skip to content

Commit

Permalink
[user-guide] revert to nova client command
Browse files Browse the repository at this point in the history
For openstackclient not including provisions for --block-device
flag, it is better to use nova client to boot an instance from an
ISO image.

-Add commands reported from the bug, and note on the nova client,
and booting an instance from an ISO image.

Change-Id: Ib5d425fa1521c2cc99e6b35074039c0f713cd93f
Closes-Bug: #1656132
  • Loading branch information
chenxing authored and RobiJoe committed Jan 23, 2017
1 parent 937a35f commit 1206b9b
Showing 1 changed file with 28 additions and 8 deletions.
36 changes: 28 additions & 8 deletions doc/user-guide/source/cli-nova-launch-instance-using-ISO-image.rst
Expand Up @@ -9,13 +9,11 @@ Boot an instance from an ISO image

OpenStack supports booting instances using ISO images. But before you
make such instances functional, use the :command:`openstack server create`
command with the following parameters to boot an instance.
command with the following parameters to boot an instance:

.. code-block:: console
.. code-block:: console
$ openstack server create \
--image ubuntu-14.04.2-server-amd64.iso \
--block-device source=blank,dest=volume,size=10,shutdown=preserve \
$ openstack server create --image ubuntu-14.04.2-server-amd64.iso \
--nic net-id = NETWORK_UUID \
--flavor 2 INSTANCE_NAME
+--------------------------------------+--------------------------------------------+
Expand Down Expand Up @@ -56,11 +54,33 @@ In this command, ``ubuntu-14.04.2-server-amd64.iso`` is the ISO image,
and ``INSTANCE_NAME`` is the name of the new instance. ``NETWORK_UUID``
is a valid network id in your system.

Create a bootable volume for the instance to reside on after shutdown.

#. Create the volume:

.. code-block:: console
$ openstack volume create \
--size <SIZE_IN_GB> \
--bootable VOLUME_NAME
#. Attach the instance to the volume:

.. code-block:: console
$ openstack server add volume
INSTANCE_NAME \
VOLUME_NAME \
--device /dev/vda
.. note::

You need the Block Storage service, and the parameter
``shutdown=preserve`` is also mandatory, thus the volume will be
preserved after the shutdown of the instance.
You need the Block Storage service to preserve the instance after
shutdown. The `--block-device` argument, used with the
legacy command:: `nova-boot`, will not work with the OpenStack
:command:`openstack server create` command. Instead, the
:command:`openstack volume create` and
:command:`openstack server add volume` commands create persistent storage.

After the instance is successfully launched, connect to the instance
using a remote console and follow the instructions to install the
Expand Down

0 comments on commit 1206b9b

Please sign in to comment.