blob: a2367bbde34d22d936112e1f2b12ad1b7639cbc4 [file] [log] [blame]
Filip Pytlound681ae22015-10-06 16:28:31 +02001==================
2Glance Image Store
3==================
4
5The Glance project provides services for discovering, registering, and retrieving virtual machine images. Glance has a RESTful API that allows querying of VM image metadata as well as retrieval of the actual image.
6
7Usage
8=====
9
10Import new public image
11
12.. code-block:: yaml
13
14 glance image-create --name 'Windows 7 x86_64' --is-public true --container-format bare --disk-format qcow2 < ./win7.qcow2
15
16Change new image's disk properties
17
18.. code-block:: yaml
19
20 glance image-update "Windows 7 x86_64" --property hw_disk_bus=ide
21
22Change new image's NIC properties
23
24.. code-block:: yaml
25
26 glance image-update "Windows 7 x86_64" --property hw_vif_model=rtl8139
27
28Sample pillar
29=============
30
31.. code-block:: yaml
32
33 glance:
34 server:
35 enabled: true
36 version: juno
Alena Holanovac1e51312016-03-22 14:08:44 +010037 workers: 8
Filip Pytlound681ae22015-10-06 16:28:31 +020038 policy:
39 publicize_image:
40 - "role:admin"
41 - "role:image_manager"
42 database:
43 engine: mysql
44 host: 127.0.0.1
45 port: 3306
46 name: glance
47 user: glance
48 password: pwd
49 identity:
50 engine: keystone
51 host: 127.0.0.1
52 port: 35357
53 tenant: service
54 user: glance
55 password: pwd
56 message_queue:
57 engine: rabbitmq
58 host: 127.0.0.1
59 port: 5672
60 user: openstack
61 password: pwd
62 virtual_host: '/openstack'
63 storage:
64 engine: file
65 images:
66 - name: "CirrOS 0.3.1"
67 format: qcow2
68 file: cirros-0.3.1-x86_64-disk.img
69 source: http://cdn.download.cirros-cloud.net/0.3.1/cirros-0.3.1-x86_64-disk.img
70 public: true
71
Jakub Pavlik80a41ea2016-03-06 14:33:42 +010072Keystone and cinder region
73============================
74
75.. code-block:: yaml
76
77 glance:
78 server:
79 enabled: true
80 version: kilo
81 ...
82 identity:
83 engine: keystone
84 host: 127.0.0.1
85 region: RegionTwo
86 ...
87
Filip Pytlound681ae22015-10-06 16:28:31 +020088Ceph integration glance
89=======================
90
91.. code-block:: yaml
92
93 glance:
94 server:
95 enabled: true
96 version: juno
97 storage:
98 engine: rbd
99 user: glance
100 pool: images
101 chunk_size: 8
102 client_glance_key: AQDOavlU6BsSJhAAnpFR906mvdgdfRqLHwu0Uw==
103
104* http://ceph.com/docs/master/rbd/rbd-openstack/
105
106Read more
107=========
108
109* http://docs.openstack.org/image-guide/content/ch_obtaining_images.html
110* http://cloud-images.ubuntu.com/precise/current/
111* http://fedoraproject.org/en/get-fedora#clouds
112* http://www.cloudbase.it/ws2012r2/
113* http://docs.openstack.org/cli-reference/content/glanceclient_commands.html