Quantcast
Viewing latest article 1
Browse Latest Browse All 14

OpenStack add images to glance

You need to provide some images for your instances to be created. These can be any images.
Login to the utility container (if using openstack-ansible deploy) or via cli as admin

Download the image locally.

wget http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img

 

Upload the image to openstack

glance image-create --name "cirros-test" --file cirros-0.3.4-x86_64-disk.img --disk-format qcow2 --container-format bare --visibility public --progress

 

+------------------+----------------------------------------------------------------------------------+
| Property         | Value                                                                            |
+------------------+----------------------------------------------------------------------------------+
| checksum         | ee1eca47dc88f4879d8a229cc70a07c6                                                 |
| container_format | bare                                                                             |
| created_at       | 2016-04-02T11:51:33Z                                                             |
| direct_url       | rbd://e478110c-76fb-4d23-9d06-559a84cae578/glance-images/845ca59c-4e46-4615      |
|                  | -83ad-1b07f7465d1e/snap                                                          |
| disk_format      | qcow2                                                                            |
| id               | 845ca59c-4e46-4615-83ad-1b07f7465d1e                                             |
| min_disk         | 0                                                                                |
| min_ram          | 0                                                                                |
| name             | cirros-test                                                                      |
| owner            | adf998ea387e4fb684246431de401047                                                 |
| protected        | False                                                                            |
| size             | 13287936                                                                         |
| status           | active                                                                           |
| tags             | []                                                                               |
| updated_at       | 2016-04-02T11:51:34Z                                                             |
| virtual_size     | None                                                                             |
| visibility       | public                                                                           |
+------------------+----------------------------------------------------------------------------------+

 

Image may be NSFW.
Clik here to view.


Viewing latest article 1
Browse Latest Browse All 14

Trending Articles