From c88ed332b75fac386f96f134be35b66858ee05df Mon Sep 17 00:00:00 2001 From: OctopusZhang Date: Tue, 11 Oct 2016 17:32:32 +0800 Subject: [PATCH] Add the way to get the deploy ram disks And use coreos as the default path to build the deploy image. Change-Id: I64adffd8b3263daaa33256f6c9d7290c1428566e Closes-Bug: #1635094 --- .../include/configure-glance-images.rst | 29 ++++++++++++++----- 1 file changed, 21 insertions(+), 8 deletions(-) diff --git a/install-guide/source/include/configure-glance-images.rst b/install-guide/source/include/configure-glance-images.rst index 9b62135595..7b6e1d9f36 100644 --- a/install-guide/source/include/configure-glance-images.rst +++ b/install-guide/source/include/configure-glance-images.rst @@ -10,7 +10,9 @@ user images are installed on the bare metal server to be used by the end user. Below are the steps to create the required images and add them to the Image service: -#. The `disk-image-builder`_ can be used to create images required for +#. Build the user images + + The `disk-image-builder`_ can be used to create user images required for deployment and the actual OS which the user is going to run. .. _disk-image-builder: http://docs.openstack.org/developer/diskimage-builder/ @@ -48,9 +50,6 @@ them to the Image service: If you want to use Fedora image, replace ``ubuntu`` with ``fedora`` in the chosen command. - .. note:: To build the deploy image take a look at the :ref:`deploy-ramdisk` - section. - #. Add the user images to the Image service Load all the images created in the below steps into the Image service, @@ -94,21 +93,35 @@ them to the Image service: --disk-format qcow2 \ --container-format bare < my-whole-disk-image.qcow2 +#. Build or download the deploy images + + The deploy images are used initially for preparing the server (creating disk + partitions) before the actual OS can be deployed. + + There are several methods to build or download deploy images, please read + the :ref:`deploy-ramdisk` section. + + The recommended method is to use CoreOS to build deploy images, you will get + one kernel disk ``coreos_production_pxe.vmlinuz`` and one ram disk + ``coreos_production_pxe_image-oem.cpio.gz``. + + .. note:: If you want to customize your deploy images, please read `Image Builders `_. + #. Add the deploy images to the Image service - Add the *my-deploy-ramdisk.kernel* and *my-deploy-ramdisk.initramfs* images - to the Image service: + Add the *coreos_production_pxe.vmlinuz* and *coreos_production_pxe_image-oem.cpio.gz* + images to the Image service: .. code-block:: console $ glance image-create --name deploy-vmlinuz --visibility public \ - --disk-format aki --container-format aki < my-deploy-ramdisk.kernel + --disk-format aki --container-format aki < coreos_production_pxe.vmlinuz Store the image UUID obtained from the above step as ``DEPLOY_VMLINUZ_UUID``. .. code-block:: console $ glance image-create --name deploy-initrd --visibility public \ - --disk-format ari --container-format ari < my-deploy-ramdisk.initramfs + --disk-format ari --container-format ari < coreos_production_pxe_image-oem.cpio.gz Store the image UUID obtained from the above step as ``DEPLOY_INITRD_UUID``.