blob: 46546f1060ab00c4684501640b51c069340b18cc [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
Jiri Konecny0456cfa2016-04-20 16:47:25 +020072
73Client-side RabbitMQ HA setup
74
75.. code-block:: yaml
76
77 glance:
78 server:
79 ....
80 message_queue:
81 engine: rabbitmq
82 members:
83 - host: 10.0.16.1
84 - host: 10.0.16.2
85 - host: 10.0.16.3
86 user: openstack
87 password: pwd
88 virtual_host: '/openstack'
89 ....
90
91
Jakub Pavlik80a41ea2016-03-06 14:33:42 +010092Keystone and cinder region
93============================
94
95.. code-block:: yaml
96
97 glance:
98 server:
99 enabled: true
100 version: kilo
101 ...
102 identity:
103 engine: keystone
104 host: 127.0.0.1
105 region: RegionTwo
106 ...
107
Jiri Konecny0456cfa2016-04-20 16:47:25 +0200108
Filip Pytlound681ae22015-10-06 16:28:31 +0200109Ceph integration glance
110=======================
111
112.. code-block:: yaml
113
114 glance:
115 server:
116 enabled: true
117 version: juno
118 storage:
119 engine: rbd
120 user: glance
121 pool: images
122 chunk_size: 8
123 client_glance_key: AQDOavlU6BsSJhAAnpFR906mvdgdfRqLHwu0Uw==
124
125* http://ceph.com/docs/master/rbd/rbd-openstack/
126
127Read more
128=========
129
130* http://docs.openstack.org/image-guide/content/ch_obtaining_images.html
131* http://cloud-images.ubuntu.com/precise/current/
132* http://fedoraproject.org/en/get-fedora#clouds
133* http://www.cloudbase.it/ws2012r2/
134* http://docs.openstack.org/cli-reference/content/glanceclient_commands.html