惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Google DeepMind News
Google DeepMind News
SecWiki News
SecWiki News
V
Visual Studio Blog
博客园 - 三生石上(FineUI控件)
WordPress大学
WordPress大学
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
博客园 - 【当耐特】
Martin Fowler
Martin Fowler
宝玉的分享
宝玉的分享
F
Fortinet All Blogs
U
Unit 42
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
aimingoo的专栏
aimingoo的专栏
V
V2EX
Apple Machine Learning Research
Apple Machine Learning Research
博客园 - 聂微东
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
O
OpenAI News
T
Troy Hunt's Blog
TaoSecurity Blog
TaoSecurity Blog
小众软件
小众软件
MongoDB | Blog
MongoDB | Blog
Recent Commits to openclaw:main
Recent Commits to openclaw:main
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
L
LINUX DO - 最新话题
N
News | PayPal Newsroom
PCI Perspectives
PCI Perspectives
Engineering at Meta
Engineering at Meta
美团技术团队
J
Java Code Geeks
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
人人都是产品经理
人人都是产品经理
雷峰网
雷峰网
V
Vulnerabilities – Threatpost
B
Blog RSS Feed
NISL@THU
NISL@THU
Security Latest
Security Latest
The Register - Security
The Register - Security
酷 壳 – CoolShell
酷 壳 – CoolShell
The GitHub Blog
The GitHub Blog
S
SegmentFault 最新的问题
N
News and Events Feed by Topic
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
S
Schneier on Security
罗磊的独立博客
Know Your Adversary
Know Your Adversary
Hacker News: Ask HN
Hacker News: Ask HN
S
Security Affairs
月光博客
月光博客
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO

博客园 - Ratooner

.NET7 IOC注册SqlSugar .NET 7.0 Program.cs访问appsettings.json配置文件 vite学习笔记 vue3 el-image图片资源的使用 bootstrap.bundle.min.js bootstrap.bundle.min.js.map 404报错 js中===和==的区别 json-server 笔记 vue3创建项目笔记 openstack heat 实验笔记 openstack neutron 实验笔记 openstack nova 实验笔记 openstack keystone 实验笔记 Vue 中npm run dev 和 npm run serve 的区别 Flask+Vue 使用 vue 学习笔记1 vue export学习笔记1 GRE和VXLAN的区别 openstack各组件逻辑关系图(转载) openstack创建云主机流程图(转载)
openstack glance 实验笔记
Ratooner · 2023-04-03 · via 博客园 - Ratooner

创建共享镜像
(openstack) image create dbserver-3.50-public --file cirros-0.3.5-x86_64-disk.img --property description='1234' --disk-format qcow2
+------------------+------------------------------------------------------+
| Field | Value |
+------------------+------------------------------------------------------+
| checksum | f8ab98ff5e73ebab884d80c9dc9c7290 |
| container_format | bare |
| created_at | 2023-03-29T16:53:20Z |
| disk_format | qcow2 |
| file | /v2/images/1362592d-c22b-4413-8ab7-0606cbb11b82/file |
| id | 1362592d-c22b-4413-8ab7-0606cbb11b82 |
| min_disk | 0 |
| min_ram | 0 |
| name | dbserver-3.50-public |
| owner | 2376805a9b7e4da08652a703c6eb5b4a |
| properties | description='1234' |
| protected | False |
| schema | /v2/schemas/image |
| size | 13267968 |
| status | active |
| tags | |
| updated_at | 2023-03-29T16:53:23Z |
| virtual_size | None |
| visibility | shared |
+------------------+------------------------------------------------------+
(openstack)

创建public镜像
(openstack) image create dbserver-3.50 --public --file cirros-0.3.5-x86_64-disk.img --property description='1234' --disk-format qcow2
+------------------+------------------------------------------------------+
| Field | Value |
+------------------+------------------------------------------------------+
| checksum | f8ab98ff5e73ebab884d80c9dc9c7290 |
| container_format | bare |
| created_at | 2023-03-29T16:56:37Z |
| disk_format | qcow2 |
| file | /v2/images/a2111fe2-db3a-490a-9fb3-69195025a60a/file |
| id | a2111fe2-db3a-490a-9fb3-69195025a60a |
| min_disk | 0 |
| min_ram | 0 |
| name | dbserver-3.50 |
| owner | 2376805a9b7e4da08652a703c6eb5b4a |
| properties | description='1234' |
| protected | False |
| schema | /v2/schemas/image |
| size | 13267968 |
| status | active |
| tags | |
| updated_at | 2023-03-29T16:56:37Z |
| virtual_size | None |
| visibility | public |
+------------------+------------------------------------------------------+
(openstack)

创建私有镜像

(openstack) image create devos-4.0 --private --file cirros-0.4.0-x86_64-disk.img --disk-format qcow2
+------------------+------------------------------------------------------+
| Field | Value |
+------------------+------------------------------------------------------+
| checksum | 443b7623e27ecf03dc9e01ee93f67afe |
| container_format | bare |
| created_at | 2023-03-29T16:59:25Z |
| disk_format | qcow2 |
| file | /v2/images/7fe3b72b-bbd4-471e-9e83-a4eb5eb05d18/file |
| id | 7fe3b72b-bbd4-471e-9e83-a4eb5eb05d18 |
| min_disk | 0 |
| min_ram | 0 |
| name | devos-4.0 |
| owner | 2376805a9b7e4da08652a703c6eb5b4a |
| protected | False |
| schema | /v2/schemas/image |
| size | 12716032 |
| status | active |
| tags | |
| updated_at | 2023-03-29T16:59:26Z |
| virtual_size | None |
| visibility | private |
+------------------+------------------------------------------------------+
(openstack)

将镜像分享给项目

(openstack) image set devos-4.0 --share
(openstack) image add project devos-4.0 epc-operating
+------------+--------------------------------------+
| Field | Value |
+------------+--------------------------------------+
| created_at | 2023-03-29T17:04:27Z |
| image_id | a74d3377-025e-4330-9c33-43159a4506ed |
| member_id | 7dfaef2aee8647e5a14d93de5a2e0d04 |
| schema | /v2/schemas/member |
| status | pending |
| updated_at | 2023-03-29T17:04:27Z |
+------------+--------------------------------------+
(openstack)
如果出现如下错误需要将环境变量修改到正确的project export OS_PROJECT_NAME=epc-operating
(openstack) image set devos-4.0 --accept
404 Not Found: 2376805a9b7e4da08652a703c6eb5b4a not found in the member list of the image a74d3377-025e-4330-9c33-43159a4506ed. (HTTP 404)
(openstack)
(openstack) image set devos-4.0 --accept
(openstack) exit

保存镜像到本地

(openstack) image save devos-4.0 --file saveos4.0.img
(openstack) exit
root@controller:/home/coa# ll sav*
-rw-r--r-- 1 root root 12716032 Mar 30 01:24 saveos4.0.img
root@controller:/home/coa#


修改镜像属性

(openstack) image set devos-4.0 --min-disk 1 --min-ram 256
(openstack) image set devos-4.0 --property os_shutdown_timeout=55
(openstack)