Glance how it is used? publish and run images?

asked 2011-05-03 16:20:33 -0600

ussarg-maxkcr gravatar image

I'm trying to upload, register and run my images using Glance from one PC to another in my network where he is OpenStack. I did the following:

usstest@usstest-virtual-machine:~$ sudo glance --host= --port=9292 add name="maverick test 2" location=file:///home/usstest/maverick-server-uec-amd64.tar.gz is_public=true

usstest@usstest-virtual-machine:~$ sudo glance --host= --port=9292 details

Found 2 public images...

URI: Id: 1 Public: Yes Name: Ubuntu Maverick 10.10 Status: active Size: 188216461 Location: file:///var/lib/glance/images/1 Disk format: None Container format: None

Property 'type': raw

URI: Id: 7 Public: Yes Name: maverick test 2 Status: active Size: 0 Location: file:///home/usstest/maverick-server-uec-amd64.tar.gz Disk format: raw

Container format: ovf

usstest@usstest-virtual-machine:~$ sudo glance --host= --port=9292 index Found 2 public images... ID Name Disk Format Container Format Size

1 Ubuntu Maverick 10.10 None None 188216461 7 maverick test 2 raw ovf 0

You see, up here all goes well, I publish and register my images. But now I want to run to make sure that work and do not know how. Now as start my images? No instructions for this found in the documentation or examples.

another question: as I can see listed my private images?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2018-02-19 06:42:22 -0600

Thomas Li gravatar image

just untart first, there is no compressed image support!

edit flag offensive delete link more

answered 2011-05-03 18:24:30 -0600

jaypipes gravatar image

Hi Maximiliano!

OK, I will answer your second question first :)

To show your "private" images, you do:

glance show <id>

where you know the ID of your private image. Currently, there is no way to query Glance for a list of private images. This will be changing in Diablo release series as we will gain authentication through the Keystone project, which will give us an authentication "tenant" that will define what "private" images actually are.

For your first question, you need to use whatever tools come with whichever API you are using on the compute endpoints. For EC2 API, you would use the euca-bundle-image/uec-publish-tarball workflow. For the OpenStack Compute API, you would use the python-novaclient tools to do this.

Documentation for each of those workflows is available here:

Note that the python-novaclient documentation isn't fully completed yet...

The thing to remember is that currently, Glance serves only as a simple registration and delivery service for disk images. It does not do: bundling, inspection, conversion, or building of images.

Cheers, jay

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2011-05-03 16:20:33 -0600

Seen: 296 times

Last updated: Feb 19 '18