Skip to Content
Deploying OpenStack
book

Deploying OpenStack

by Ken Pepple
July 2011
Intermediate to advanced
88 pages
1h 52m
English
O'Reilly Media, Inc.
Content preview from Deploying OpenStack

Installation

If you are on Ubuntu 11.04 or later, Glance can be installed with a simple apt-get:

$ sudo apt-get install glance python-glance-doc

Note

Glance requires a large number of dependencies.

Once installed, it needs to be started with the glance-control utility.

$ sudo glance-control all start

Glance is now ready for uploading and querying of virtual disk images. The glance index command shows all virtual disk images currently in Glance.

$ glance index
No public images found.

As you can see from the example above, Glance is currently empty. Let's put a image into it. The glance-upload command puts an image record into the glance-registry and stores the data file in the image store. It requires a the disk format and container format as a minimum set of arguments. In this example, the virtual disk is formatted as an AMI from the Ubuntu Enterprise Cloud image repository.

$ glance-upload natty-server-uec-amd64.img natty-uec --disk-format ami \
 --container-format ami
Stored image. Got identifier: {u'checksum': u'b420e097baf54cd32af5970b3f0cb93b',
 u'container_format': u'ami',
 u'created_at': u'2011-07-06T00:54:23.600181',
 u'deleted': False,
 u'deleted_at': None,
 u'disk_format': u'ami',
 u'id': 6,
 u'is_public': True,
 u'location': u'file:///var/lib/glance/images/6',
 u'name': u'natty-uec',
 u'properties': {u'type': u'raw'},
 u'size': 1476395008,
 u'status': u'active',
 u'updated_at': u'2011-07-06T00:55:01.901066'}

Now that an image has been uploaded, Glance should show it via the glance index command. ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

OpenStack Essentials

OpenStack Essentials

Dan Radez

Publisher Resources

ISBN: 9781449311223Errata