openstack之镜像管理
概览
[root@cc07 fast-pulsar]# glance help | grep image
[--os-image-url OS_IMAGE_URL]
[--os-image-api-version OS_IMAGE_API_VERSION]
image-create Create a new image.
image-create-via-import
EXPERIMENTAL: Create a new image via image import.
image-deactivate Deactivate specified image.
image-delete Delete specified image.
image-download Download a specific image.
image-import Initiate the image import taskflow.
image-list List images you can access.
image-reactivate Reactivate specified image.
image-show Describe a specific image.
image-stage Upload data for a specific image to staging.
image-tag-delete Delete the tag associated with the given image.
image-tag-update Update an image with the given tag.
image-update Update an existing image.
image-upload Upload data for a specific image.
location-add Add a location (and related metadata) to an image.
location-delete Remove locations (and related metadata) from an image.
location-update Update metadata of an image's location.
member-create Create member for a given image.
member-delete Delete image member.
member-list Describe sharing permissions by image.
member-update Update the status of a member for a given image.
--os-image-url OS_IMAGE_URL
Defaults to env[OS_IMAGE_URL]. If the provided image
url contains a version number and `--os-image-api-
picked as the image api version to use.
--os-image-api-version OS_IMAGE_API_VERSION
Run `glance --os-image-api-version help` for v1 help
列出镜像
[root@cc07 ~]# glance image-list
+--------------------------------------+----------------------------------------+
| ID | Name |
+--------------------------------------+----------------------------------------+
| c9c21ea6-c74d-43cb-8e93-e100a718cc78 | centos-vmvare |
| 069d5dab--437a-9a0d-02301558ecb8 | centos7 |
| 0276832c-03c1-48d5--6dfd4771cf66 | CentOS7-Ironic-- |
| 1bb24b50-8b06--a396-dada6ba3def2 | centos7withCloudInit.qcow2 |
| 7c63c10f-d543-4b85-99a0-446f43624edf | centos7_10G |
| 568362bf-680b--a142-90dc1f0d9685 | centos7_official |
| 81a2af08-8e14-43f5-8d9a-48f7628e630d | Chinacloud-WIN2K8R2-64bit-DC-20G.qcow2 |
| 181adf3e-beb7-4bb6-b776-d690863e951e | cirros_vhd |
| c17a8330-7b5d-4e9b--c842b363bbf0 | dfsadfa |
| 7c59f7d3-512e-42de-b598-812e88657f53 | gagag345 |
| 083ec459-d4e5-4da8-8b5f-c76b247e63a4 | k8s-base-image |
| 29436d00-e6e5-402e-8a59-c10f89bc5a09 | linux_legacy |
| fa6e0fea-5a5e-48b9-8ba0-fb9d5b53582f | test-xulang111 |
| 5833c05e-56a7-439b-a0b2-567925dea539 | test-xulang12 |
| 7dbda9ff-b13f-410b--2c27c6bba4b6 | test-xulang1g |
| 3c819f4c-15ad-417d-93eb-cb600648ee5d | ubuntu-deploy.initramfs |
| 1a56dae5-196d-4d21-aea8-d89efc994643 | ubuntu-deploy.kernel |
| ad4ef384-03c0-4f5b-87a7-fec8d942ce85 | ubuntuDemoIronic |
| b2814a9e-f4a1-48d7--2cb8cc17dce9 | win2012 |
| 5339fad1-546c-4f63-8dbf-6a40a0e9737e | win2k8_r2_x64 |
| b29574d0-6f9c-405d-9a42-47441ad4f11e | windows2007 |
| 71b6fbee-5f71-458e-8bfb-39c1d5c2779f | windows2012_inject_pwd |
| 28f3f44c-b3f7-4d01-b100-75ec63ed919b | windows2k3r2 |
| bb93f6fc--43c9-ac82-b1835ebcc1df | xulang |
+--------------------------------------+----------------------------------------+
下载镜像
glance image-download --file ./centos7-kvm-1g.qcow2 7dbda9ff-b13f-410b--2c27c6bba4b6
上传镜像
上传iso 镜像(qemu)
openstack image create --container-format bare --disk-format iso --property hypervisor_type=qemu --public --file CentOS-6.9-x86_64-bin-DVD1.iso --name ISO_CentOS6.
上传qcow2镜像(qemu):
[root@cc31 fast-pulsar]# glance image-create --disk-format qcow2 --property hypervisor_type=qemu --container-format bare --file ./centos7-kvm-1g.qcow2 --min-disk= --property os-type=linux --name centos7_kvm_1g
+------------------+--------------------------------------+
| Property | Value |
+------------------+--------------------------------------+
| checksum | 64d7c1cd2b6f60c92c14662941cb7913 |
| container_format | bare |
| created_at | --31T01::08Z |
| disk_format | qcow2 |
| hypervisor_type | qemu |
| id | 683b57e2--4b94-af34-4a3eb6a1c6e9 |
| min_disk | |
| min_ram | |
| name | centos7_kvm_1g |
| os-type | linux |
| owner | 093e788ff69e40cb85edad8fac58c5d1 |
| protected | False |
| size | |
| status | active |
| tags | [] |
| updated_at | --31T01::10Z |
| virtual_size | None |
| visibility | private |
+------------------+--------------------------------------+
上传vmware镜像
glance image-create --disk-format vmdk --property hypervisor_type=vmware --container-format bare --file ./centos6Tomcat.qcow2 --is-public=True --min-disk= --property os-type=linux --property vmware_disktype=thin --propertyvmware_adaptertype=lsiLogicsas --name centos6-vmdk-oracle11g
上传windows镜像
glance image-create --disk-format vmdk --property hypervisor_type=vmware --property vmware_adaptertype=lsiLogicsas --property vmware_disktype=preallocated --property vmware_ostype=winNetEnterprise64Guest --container-format bare --file ./windows2008server-flat.vmdk --is-public=True --min-disk= --property os-type=windows --name vmdk_windows2008_iis_new2 --property vmware_ostype=winNetEnterprise64Guest --property vmware_disktype=preallocated --property vmware_adaptertype=lsiLogicsas导入windows镜像;property vmware_disktype=preallocated否则会黑屏
删除镜像
glance image-delete 683b57e2--4b94-af34-4a3eb6a1c6e9
openstack之镜像管理的更多相关文章
- OpenStack云计算快速入门之三:OpenStack镜像管理
原文:http://blog.chinaunix.net/uid-22414998-id-3272059.html 第三部分 OpenStack镜像管理 一.简介 很多源都有为OpenStack已经编 ...
- OpenStack镜像管理3
第三部分 OpenStack镜像管理 一.简介 很多源都有为OpenStack已经编译好的各种镜像了,您可以直接下载并通过使用这些镜像来熟悉OpenStack. 不过如果是为生产环境进行部署的话,您一 ...
- openstack 命令行管理 - 目录
原文http://blog.csdn.net/signmem/article/details/19513775 相关 openstack 命令行管理, 分下面部分进行介绍 openstack 命令行 ...
- OpenStack安装部署管理中常见问题解决方法
一.网络问题-network 更多网络原理机制可以参考<OpenStack云平台的网络模式及其工作机制>. 1.1.控制节点与网络控制器区别 OpenStack平台中有两种类型的物理节点, ...
- 仿OpenStack开发云计算管理软件
仿OpenStack开发云计算管理软件 使用Python语言开发一套类似OpenStack的云计算管理平台LouCloud,具备基本的用户,服务器,镜像与 虚拟机管理功能,学习IaaS,虚拟化,Lib ...
- 制作 OpenStack Linux 镜像 - 每天5分钟玩转 OpenStack(151)
这是 OpenStack 实施经验分享系列的第 1 篇. OpenStack 的 instance 是通过 Glance 镜像部署的,所以准备镜像是必须要做的工作.本节介绍 Linux 镜像的制作方法 ...
- openstack导入镜像
本文以制作CentOS7.2镜像为例,详细介绍手动制作OpenStack镜像详细步骤,解释每一步这么做的原因.镜像上传到OpenStack glance,支持以下几个功能: 支持密码注入功能(nova ...
- openstack——glance镜像服务
一.glance介绍: Glance是Openstack项目中负责镜像管理的模块,其功能包括虚拟机镜像的查找.注册和检索等. Glance提供Restful API可以查 ...
- 2、docker镜像管理
Docker镜像管理 镜像是Docker容器的基础,想运行一个Docker容器就需要有镜像.我们上面已经学会了使用search搜索镜像.那么这个镜像是怎么创建的呢? 创建镜像 镜像的创建有以下几种方法 ...
随机推荐
- TZOJ 3295 括号序列(区间DP)
描述 给定一串字符串,只由 “[”.“]” .“(”.“)”四个字符构成.现在让你尽量少的添加括号,得到一个规则的序列. 例如:“()”.“[]”.“(())”.“([])”.“()[]”.“()[( ...
- Inno Setup界面拉伸
1.源起: 源于一个安装包的广告定制.广告客服提供的图片太大,inno setup默认尺寸容不下它,需要扩充,拉宽安装界面尺寸. 以inno setup所附带例子说事,其默认尺寸如下: 2.Scale ...
- PyCharm 2019 最新激活方式总结(最新最全最有效!!!
host 注册码 http://idea.lanyus.com/ https://www.cnblogs.com/yjd_hycf_space/p/9110550.html ...
- [z]一个SQL语句分清楚RANK(),DENSE_RANK(),ROW_NUMBER()三个排序的不同
转自:http://blog.csdn.net/s630730701/article/details/51902762 在SCOTT用户下,执行下面SQL; SELECT s.deptno,s.ena ...
- <history> 特别报道:Google离职富翁们都在干什么?
特别报道:Google离职富翁们都在干什么? 时间:2008-01-23 10:16:47作者:CNET科技资讯网 本文关键词:Google CNET科技资讯网1月23日国际报道 假如你拥有1千万或1 ...
- pyspider入门
1.http://www.pyspider.cn/jiaocheng/pyspider-webui-12.html 2.https://blog.csdn.net/weixin_37947156/ar ...
- sublime 注释模版插件DocBlockr的使用
一.gihub地址 https://github.com/spadgos/sublime-jsdocs/ 其中有使用的教程可以参考 二.配置示例 安装教程此处略,请自行查找教程 jsdocs_extr ...
- andorid UI事件
- hdu 2119(简单二分图) Matrix
http://acm.hdu.edu.cn/showproblem.php?pid=2119 一个由0和1构成的矩阵,每次选取一行或者一列将其中的1变成0,求最小删除次数 简单的二分图应用,矩阵的横坐 ...
- Jquery中$.each()与$().each()的使用与区别。
在jquery中,遍历对象和数组,经常会用到$().each和$.each(),两个方法.两个方法是有区别的,从而这两个方法在针对不同的操作上,显示了各自的特点. $().each,对于这个方法,在d ...