• Home
  • OpenStack
  • OpenStack Image Service Overview and Installation

OpenStack Image Service Overview and Installation

  • (4.0)
  • | 897 Ratings

OpenStack Image Service

In this section regarding OpenStack Image Service, we will cover:
1. Installing OpenStack Image Service
2. Configuring OpenStack Image Service with MySQL
3. Configuring OpenStack Image Service with OpenStack Identity Service
4. Managing images with OpenStack Image Service
5. Registering a remotely stored image
6. Sharing images among tenants and
7. Viewing shared images


The OpenStack image service (Glance) provides a service where users can upload and discover data assets that are meant to be used by other services. This currently includes images and metadata definitions. This service is central to Infrastructure-as-a-Service (IaaS). This service allows you to register, discover, and retrieve virtual machine images for usage in OpenStack environment. Images made available through the OpenStack Image Service can be stored in a variety of backend locations, from local filesystem storage to distributed file systems such as OpenStack Storage. 
If you have followed the steps mentioned in previous posts about the Keystone OpenStack Identity Service, then at the end of the concept we will have the following environment set up:


Installing OpenStack Image Service

Installation of latest OpenStack Image Service is simply achieved by using the packages provided from the Ubuntu Cloud Archive repositories which have been packaged for our Ubuntu 12.04 Linux installation.

Getting started

To begin with, ensure you’re logged into our OpenStack Controller host— where  an OpenStack Image Service will be installed.
To log on to our OpenStack Controller host that was created using Vagrant, issue the following command:

vagrant ssh controller

Ensure that our Ubuntu 12.04 LTS release is using the Ubuntu Cloud Archive that has the packages required for the Grizzly release.

How to achieve it…

Installation of OpenStack Image Service is very simple, using apt. It os shown as follows:

sudo apt-get update
sudo apt-get -y install glance

To install just the client which allows us to administer and use OpenStack Image Service without any need to log onto our server, we execute the following command:

sudo apt-get update
sudo apt-get -y install glance-client

How it works…

The Ubuntu Cloud Archive repositories have the latest supported version of OpenStack Image Service for our environment that we can use. To test the Image Service installation, download at least one virtual machine image that is known to work with OpenStack.

Still more…

More information about the Ubuntu Cloud Archive can be found by visiting
https:// ServerTeam/ CloudArchive .
This explains the release process and the ability to use the latest releases of OpenStack— where new versions are released every 6 months— on a long term supported release of Ubuntu that gets released every 2 years.

Using an alternative release

If you wish to optionally deviate from stable releases, it is appropriate when you are helping develop or debug OpenStack, or require functionality that is not available in the current release. To enable different releases, you add different Personal Package Archives (PPA) to your system. To view the OpenStack PPAs, visit https:// PPAs . To use them, we first install a prerequisite tool that allows us to easily add PPAs to our system, as follows:

sudo apt-get update
sudo apt-get -y install python-software-properties

To use a particular release of PPA, for example, Havana trunk testing, we issue the following command:

sudo add-apt-repository ppa:openstack-ubuntu-testing/ havana-trunk-testing
sudo add-apt-repository ppa:openstack-ubuntu-testing/ havana-trunk-testing

Related Pages:
Openstack Training
Openstack Tutorial

Sample Resume:
Openstack Sample Resumes

Interview Questions:
Openstack Interview Questions

Subscribe For Free Demo

Free Demo for Corporate & Online Trainings. Protection Status