易陆发现互联网技术论坛

 找回密码
 开始注册
查看: 1723|回复: 4
收起左侧

openstack上传镜像命令image create

[复制链接]
发表于 2021-10-31 17:08:51 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?开始注册

x
openstack image create ubuntu-20-hdd-raw --file /usr/src/ubuntu-20-x86_64.raw --disk-format raw --container-format bare  --public
( O2 K, L7 B: [7 g7 Z
0 r: g4 B; Y, b% U4 [7 b7 S8 H& \1 Jopenstack image create "centos7.4" \
" V; G. T7 [  ?& a% a( Y --file centos7.4-.qcow2 \
1 Y' B# m. U, r* ?- S+ \2 g7 _ --disk-format qcow2 --container-format bare \
  a, L3 B/ C: C/ ]* V9 t5 ~6 ] --property hw_qemu_guest_agent=yes \
# q. H" g7 f! L8 [ --public
7 ^, Q; F2 {+ C7 Q5 \
 楼主| 发表于 2021-10-31 17:33:05 | 显示全部楼层
openstack image create ubuntu-20-ssd-raw --file /usr/src/ubuntu-20-x86_64.raw --disk-format raw --container-format bare  --public! Z/ t+ W$ G) |* r, `5 G9 i4 _* x. n
+------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+0 T! L3 ]+ t* I/ M4 G' }8 L2 @
| Field            | Value                                                                                                                                                                                                                                                                                                                                                                                                                               |5 u8 P  ~$ @; B6 o5 g, ^% x6 v
+------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+8 P8 G, o9 Z/ h, T" ^, L
| checksum         | e489e3ac004516835459af551b76d2c2                                                                                                                                                                                                                                                                                                                                                                                                    |, ~8 ~/ v3 Q8 e$ M* O7 D
| container_format | bare                                                                                                                                                                                                                                                                                                                                                                                                                                |% b3 `0 y* ~2 f* u6 C7 X- M" i; l
| created_at       | 2021-10-31T09:29:12Z                                                                                                                                                                                                                                                                                                                                                                                                                |
) M( X' k, |) M! ^  r5 X| disk_format      | raw                                                                                                                                                                                                                                                                                                                                                                                                                                 |) a) M: O+ I; l3 Y1 G4 _' R
| file             | /v2/images/1a982e8b-af67-4358-a9df-a706e91edf2d/file                                                                                                                                                                                                                                                                                                                                                                                |0 ]& d$ O1 Z  k& D" h: }8 L: l
| id               | 1a982e8b-af67-4358-a9df-a706e91edf2d                                                                                                                                                                                                                                                                                                                                                                                                |
' P4 X2 ~6 G0 t) B, c- ?| min_disk         | 0                                                                                                                                                                                                                                                                                                                                                                                                                                   |2 p# |9 H, J* K
| min_ram          | 0                                                                                                                                                                                                                                                                                                                                                                                                                                   |. Z' Z0 ]. u7 I) h4 T3 G/ x0 ?& F  `
| name             | ubuntu-20-ssd-raw                                                                                                                                                                                                                                                                                                                                                                                                                   |$ |$ V+ D/ ^6 s) a$ f
| owner            | 165d201028964584b5d105cfef581c21                                                                                                                                                                                                                                                                                                                                                                                                    |6 q- r& z& P& n( @5 I+ X7 e- L
| properties       | locations='[{u'url': u'rbd://8daade9f-1db5-4e9e-a0ac-cbe1b3abafd1/images/1a982e8b-af67-4358-a9df-a706e91edf2d/snap', u'metadata': {}}]', owner_specified.openstack.md5='e489e3ac004516835459af551b76d2c2', owner_specified.openstack.object='images/ubuntu-20-ssd-raw', owner_specified.openstack.sha256='9fd9d9afd387f154de4066066139b5823fb99a18afb9ddd816c1225d2895f907', self='/v2/images/1a982e8b-af67-4358-a9df-a706e91edf2d' |
9 J  {6 O& V: c' f| protected        | False                                                                                                                                                                                                                                                                                                                                                                                                                               |6 |$ i. [/ y0 }. t( E
| schema           | /v2/schemas/image                                                                                                                                                                                                                                                                                                                                                                                                                   |
% V9 v# j8 k0 O. D; g7 o2 E3 || size             | 4294967296                                                                                                                                                                                                                                                                                                                                                                                                                          |
! S( i# p- m; ?& K: C/ S6 o6 ^| status           | active                                                                                                                                                                                                                                                                                                                                                                                                                              |3 T/ _' n/ A$ u3 ^+ N
| tags             |                                                                                                                                                                                                                                                                                                                                                                                                                                     |# {6 i7 @% c! `9 S& g( m
| updated_at       | 2021-10-31T09:30:47Z                                                                                                                                                                                                                                                                                                                                                                                                                |/ ?& U8 K8 F& w2 t, e; [/ }4 ?
| visibility       | public                                                                                                                                                                                                                                                                                                                                                                                                                              |
! L6 M/ ~' C9 n7 I+------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
 楼主| 发表于 2021-10-31 17:53:33 | 显示全部楼层
也可以加入些别的参数:# d( H/ m2 X! o. A2 C) F4 K% W
--property hw_qemu_guest_agent=yes --property hw_ovirt_guest_agent=yes 4 x; k/ y# T6 e) E/ G' G
 楼主| 发表于 2021-11-3 13:06:34 | 显示全部楼层
$ glance image-create --name mySignedImage --container-format bare --disk-format qcow2 --property img_signature="$image_signature" --property img_signature_certificate_uuid="$cert_uuid" --property img_signature_hash_method='SHA-256' --property img_signature_key_type='RSA-PSS' < myimage# I4 {9 m3 b8 s! U  p$ Q( X
 楼主| 发表于 2021-11-3 13:46:18 | 显示全部楼层
openstack image create  "CentOS-7.9_x86_64-1" --file /usr/src/CentOS7.9-x86.raw --disk-format raw --container-format bare --property hw_qemu_guest_agent=yes --property hw_ovirt_guest_agent=yes --property cinder_img_volume_type=volumes --public
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

站长推荐上一条 /4 下一条

北京云银创陇科技有限公司以云计算运维,代码开发

QQ|返回首页|Archiver|小黑屋|易陆发现技术论坛 点击这里给我发消息

GMT+8, 2026-4-10 17:58 , Processed in 0.039868 second(s), 23 queries .

Powered by Discuz! X3.4 Licensed

© 2012-2025 Discuz! Team.

快速回复 返回顶部 返回列表