2011-02-04 20:32:31 -06:00
|
|
|
======
|
2011-02-04 20:37:39 -06:00
|
|
|
Glance
|
2011-02-04 20:32:31 -06:00
|
|
|
======
|
2010-08-05 22:06:42 -05:00
|
|
|
|
2011-02-04 20:37:39 -06:00
|
|
|
Glance is a project that defines services for discovering, registering,
|
2011-02-04 20:32:31 -06:00
|
|
|
retrieving and storing virtual machine images. The discovery and registration
|
|
|
|
responsibilities are handled by the `glance-registry` component while the
|
|
|
|
retrieval and storage responsiblities are handled by the `glance-api`
|
|
|
|
component.
|
2010-08-05 22:06:42 -05:00
|
|
|
|
|
|
|
|
2011-02-04 20:32:31 -06:00
|
|
|
Quick Start
|
|
|
|
-----------
|
|
|
|
|
2011-08-04 08:51:04 -07:00
|
|
|
If you'd like to run trunk, you can clone the git repo:
|
2011-02-04 20:32:31 -06:00
|
|
|
|
2011-08-04 08:51:04 -07:00
|
|
|
git clone git@github.com:openstack/glance.git
|
2011-02-04 20:32:31 -06:00
|
|
|
|
|
|
|
|
|
|
|
Install Glance by running::
|
|
|
|
|
|
|
|
python setup.py build
|
|
|
|
sudo python setup.py install
|
|
|
|
|
|
|
|
|
|
|
|
By default, `glance-registry` will use a SQLite database. If you'd like to use
|
|
|
|
MySQL, or make other adjustments, you can modify the glance.cnf file (see
|
|
|
|
documentation for more details).
|
|
|
|
|
|
|
|
|
2011-02-05 19:36:05 -06:00
|
|
|
Now that Glance is installed, you can start the service. The easiest way to
|
2011-03-21 15:22:26 +03:00
|
|
|
do that is by using the `glance-control` utility which runs both the
|
2011-02-05 19:36:05 -06:00
|
|
|
`glance-api` and `glance-registry` services::
|
2011-02-04 20:32:31 -06:00
|
|
|
|
2011-03-21 15:22:26 +03:00
|
|
|
glance-control all start
|
2011-02-04 20:32:31 -06:00
|
|
|
|
|
|
|
|
2011-10-25 22:02:10 -04:00
|
|
|
Once both services are running, you can now use the `glance` tool to
|
2011-02-04 20:32:31 -06:00
|
|
|
register new images in Glance.
|
|
|
|
|
2011-10-25 22:02:10 -04:00
|
|
|
glance add name="My Image" < /path/to/my/image
|
2011-02-04 20:32:31 -06:00
|
|
|
|
|
|
|
|
|
|
|
With an image registered, you can now configure your IAAS provider to use
|
|
|
|
Glance as its image service and begin spinning up instances from your
|
|
|
|
newly registered images.
|