Atom feed of this document
  
Kilo -  Kilo -  Kilo -  Kilo -  Kilo -  Kilo -  Kilo -  Kilo - 

 Support for ISO images

You can load ISO images into the Image service. You can subsequently boot an ISO image using Compute.

 

Procedure 8.1. To load an ISO image to an Image service data store

  1. In the Image service, run the following command:

    $ glance image-create --name "ubuntu-14.04.2-server-amd64.iso" \
        --copy-from http://releases.ubuntu.com/14.04.2/ubuntu-14.04.2-server-amd64.iso \
        --is-public True --container-format bare --disk-format iso

    In this command, ubuntu.iso is the name for the ISO image after it is loaded to the Image service, and ubuntu-14.04.2-server-amd64.iso is the name of the source ISO image.

  2. Optionally, to confirm the upload in Image Service (glance), run this command:

    Run this command:

    $ glance image-list
 

Procedure 8.2. To boot an instance from an ISO image

OpenStack supports booting instances using ISO images, but in order to make the instances created using ISO images functional, follow a few more steps:

  1. Boot instance with ISO image using the following command:

    $ nova boot \
        --image ubuntu-14.04.2-server-amd64.iso \
        --block-device source=blank,dest=volume,size=10,shutdown=preserve \
        --nic net-id=NETWORK_UUID
        --flavor 3 INSTANCE_NAME

    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

    You need Block Storage service and the parameter shutdown=preserve is also mandatory, thus the volume will be preserved after the shutdown of the instance.

  2. After the instance is successfully launched, connect to the instance using remote console and follow the instructions to install the system as using ISO images on regular computers. When the installation is finished and system rebooted, the instance asks you again to you to install the operating system, which means your instance is not usable. If you have problems with image creating please check the Virtual Machine Image Guide for reference.

 

Procedure 8.3. To make the instances booted from ISO image functional

Now you have to do the following actions to make your instances created using ISO actually functional:

  1. Delete the instance you just created:

    $ nova delete INSTANCE_NAME
  2. After you delete an instance, the system you just installed using your ISO image remains because the parameter shutdown=preserve was set, run the following command:

    $ cinder list

    You get a list with all the volumes in your system. In this list, you can find the volume that is attached to your ISO created instance, with the false bootable property.

  3. Upload the volume to glance:

    $ cinder upload-to-image VOLUME_UUID IMAGE_NAME

    The VOLUME_UUID is the uuid of the volume that is attached to your ISO created instance, and the IMAGE_NAME is the name that you give to your new image.

  4. After the image is successfully uploaded, you can now use the new image to boot instances, the instance launched using this image will contain the system you just installed using the ISO image.

Questions? Discuss on ask.openstack.org
Found an error? Report a bug against this page

loading table of contents...