Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to use glance in openstack

Shulou Source: shulou.com Published: 2022-06-01 18:58:07 11月14日 Update

This article will explain in detail how to use glance in openstack, the content of the article is of high quality, so the editor will share it with you for reference. I hope you will have some understanding of the relevant knowledge after reading this article.

Glance Management image

As the manager of openstack image management, glance is responsible for providing image. The image here removes the os of host specifice such as ssh key,MAC (if not removed, conflicts will occur between multiple instances), but includes the init part.

Premise

Based on CentOS7, install openstack through packstack. First, the configuration file of admin under source

Source / etc/nagios/keystonerc_admin

Show registration image

Glance image-list

The output is as follows

+-- +-+ | ID | Name | +-- +-+ | fa50412a -5b27-4acd-8e60-e08f93b86e72 | cirros | | 10e783cd-3c12-43c5-a63d-9349a3d4e1e0 | Fedora | +-- +

The first cirros is only for testing. In fact, it is not recommended by the government, because there are great security problems. In addition, the ID of different image must be different, and the name can be the same. Fedora is added by the author. Admin users can also see all image, while ordinary users can only see the image of their project and the image of the global public. Input

Glance image-list-all-tenants

Register the update image command with glance

Glance image-create-name Fedora--diskformat qcow2-container-format bare-file Fedora-x86_64-disk.qcow2

-- file indicates the name of the image,-- diskformat indicates that the image is in qcow2 format, and the image created by default is private. The access properties of image can be changed by executing the following command, and imagename is the parameter passed in image-create-- name above.

Glance image-update propertyname value imagename on how to use glance in openstack to share here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

Tags: Different content name command article more user knowledge article mirror management good normal same security above between global premise parameter Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn Huawei NVidia Redmi Microsoft