Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use glance in openstack

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

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.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report