Glance详解
2018-02-21 11:27
134 查看
一 什么是GlanceGlance是Openstack项目中负责镜像管理的模块,其功能包括虚拟机镜像的查找,注册和检索等操作。Glance提供restful API可以查询虚拟机镜像的metadata,并且可以获得镜像。通过Glance,虚拟机镜像进行可以被存储到多种存储上,比如简单的文件存储或者对象存储。
二 Glance in Openstack
三 基本概念1 image identifiers就是Image URI,格式:<Glance Server Location>/images/<ID>全局唯一2 Image statusQueued:镜像ID已经被保留,镜像还没有上传Saving:镜像正在被上传Active:镜像可以使用了Killed:镜像损坏或者不可用Deleted:镜像被删除3 Disk Formatraw:This is an unstructured disk image formatvhd:VMWare,Xen,Microsoft,VirtualBoxvmdk:common formatvdi:VirtualBox,QEMU emulatoriso:optical discqcow2:QEMU emulatoraki:Amazon kernel imageari:Amazon ramdisk iamgeami:Amazon machine image4 Container FormatBareovfakiamiari
四 基本架构
五模块Glance API:处理API请求Glance Registry:处理镜像的metadata存储Store Adapter:镜像本身的存储
六 Store-AdapterS3SwiftFileSystem:默认后端存储RBD:Ceph的Rados block device(RBD)HTTP:通过HTTP在Internet上读取可用的虚拟机镜像其他分布是存储,比如sheepdog等。
七 Glance搭建1 安装Glance包2 初始化数据库3 配置Glance数据库Keystone认证信息4 启动Glance
八 Glance CLI列出镜像创建镜像删除镜像下载镜像
九 添加镜像glance image-create --name myimage --disk-format=raw --container-format=bare --file /path/to/file.img --is-publicglance image-create --name myimage --disk-format=raw --container-format=bare --location <IMAGE_URL> --is-public
十 API实验1 获取Token2 使用Token列出镜像3 使用Token上传,下载镜像4 获取镜像5 制作镜像-Linux6 修改镜像7 转换镜像格式
二 Glance in Openstack
三 基本概念1 image identifiers就是Image URI,格式:<Glance Server Location>/images/<ID>全局唯一2 Image statusQueued:镜像ID已经被保留,镜像还没有上传Saving:镜像正在被上传Active:镜像可以使用了Killed:镜像损坏或者不可用Deleted:镜像被删除3 Disk Formatraw:This is an unstructured disk image formatvhd:VMWare,Xen,Microsoft,VirtualBoxvmdk:common formatvdi:VirtualBox,QEMU emulatoriso:optical discqcow2:QEMU emulatoraki:Amazon kernel imageari:Amazon ramdisk iamgeami:Amazon machine image4 Container FormatBareovfakiamiari
四 基本架构
五模块Glance API:处理API请求Glance Registry:处理镜像的metadata存储Store Adapter:镜像本身的存储
六 Store-AdapterS3SwiftFileSystem:默认后端存储RBD:Ceph的Rados block device(RBD)HTTP:通过HTTP在Internet上读取可用的虚拟机镜像其他分布是存储,比如sheepdog等。
七 Glance搭建1 安装Glance包2 初始化数据库3 配置Glance数据库Keystone认证信息4 启动Glance
八 Glance CLI列出镜像创建镜像删除镜像下载镜像
九 添加镜像glance image-create --name myimage --disk-format=raw --container-format=bare --file /path/to/file.img --is-publicglance image-create --name myimage --disk-format=raw --container-format=bare --location <IMAGE_URL> --is-public
十 API实验1 获取Token2 使用Token列出镜像3 使用Token上传,下载镜像4 获取镜像5 制作镜像-Linux6 修改镜像7 转换镜像格式
相关文章推荐
- Glance原理详解
- [linux]查看性能的命令(top和glance)的详解
- Oracle数据库主机巡检之 HP_UNIX系统中 TOP/Vmstat/iostat/Glance 命令详解
- TOP/Vmstat/iostat/Glance 命令详解
- [OpenStack] OpenStack Essex - Glance 安装部署与命令行详解
- 【OpenStack】OpenStack系列4之Glance详解
- HTTP协议Keep-Alive模式详解
- 详解JS面向对象编程
- iOS NSPredicate用法详解
- Android SharedElement详解
- VC常用数据类型使用转换详解
- 摄像头编程WindowsAPI - avicap32.dll 参数详解
- 【C/C++语法外功】Static详解
- c语言枚举类型详解
- 举例详解AngularJS中ngShow和ngHide的使用方法
- SQL server数据类型详解
- Linux管道编程技术:dup函数,dup2函数,open函数详解 http://blog.csdn.net/zhouhong1026/article/details/8151235/
- XStream使用详解
- PHPCMS中模板中$forminfos循环输出表单的代码详解
- linux系统下的grep命令功能与正则表达式详解