오픈 스택의 Glance(https://docs.openstack.org/glance/latest/contributor/architecture.html)를 사용하면 운영체제 템플릿 이미지를 등록할 수 있다. 이미지 등록, 삭제, 변경등을 api를 통해 진행할 수 있다.
Glance API 서버를 통해 controller를 지나 Registry Layer에서 Glance DB를 사용하는 구조이다.
출처 : https://docs.openstack.org/glance/latest/contributor/architecture.html
이미지 포맷은 https://docs.openstack.org/image-guide/image-formats.html에서 볼 수 있듯이 다양하다.
많은 이미지와 컨테이너 타입을 지원하고 있다. 표로 설명하는 문서(https://platform9.com/support/supported-image-types-and-file-formats/)는 다음과 같다.
Format Type | Description | Supported By Platform9? | Our Comments | |
raw/img | An unstructured disk image format; if you have a file without an extension it is possibly a raw format. | Yes (given .raw, .img, .dat, .bin extensions) | Common extensions .raw, .img, .dat, .bin | |
qcow2 | Supported by the QEMU emulator that can expand dynamically and supports Copy-on-Write | Yes | Most common file format used with Linux/KVM | |
vmdk | Common disk format supported by many common virtual machine monitors | Yes (for VMware vSphere hypervisor) | VMDK format is commonly associated with VMware | |
vdi | Supported by VirtualBox virtual machine monitor and the QEMU emulator | Not recommended(Will be recognized, but may or may not work depending on driver availability) | VirtualBox image files in practice may or may not work with Linux/KVM hypervisor. You might run into compatibility issues due to missing required virtualization drivers) | |
iso | An archive format for the data contents of an optical disc, such as CD-ROM | Yes | ||
aki | An Amazon kernel image | No | Amazon image types are not popularly used with Linux/KVM | |
ari | An Amazon ramdisk image | No | Amazon image types are not popularly used with Linux/KVM | |
ami | An Amazon machine image | No | Amazon image types are not popularly used with Linux/KVM | |
vhd | The VHD disk format, a common disk format used by virtual machine monitors from VMware, Xen, Microsoft, VirtualBox, and others |
| Not a popular image format |
우분투 OS이미지를 생성하는 방법(아마도 구 버전이겠지만.) 대충 이렇다.
(출처 : http://lollyrock.com/articles/glance-image-create/)
glance image-create --name 'Ubuntu 14.04 LTS' \ --container-format bare \ --disk-format qcow2 \ --is-public true \ --copy-from http://uec-images.ubuntu.com/releases/14.04/release/ubuntu-14.04-server-cloudimg-amd64-disk1.img +------------------+--------------------------------------+ | Property | Value | +------------------+--------------------------------------+ | checksum | None | | container_format | bare | | created_at | 2014-04-02T13:16:20 | | deleted | False | | deleted_at | None | | disk_format | qcow2 | | id | aa5ab6de-e461-4330-136e-fb149802bdc0 | | is_public | True | | min_disk | 0 | | min_ram | 0 | | name | Ubuntu 14.04 LTS Beta 1 | | owner | 9ab2f1a7ca521eee9c8de5a14567d377 | | protected | False | | size | 261095936 | | status | queued | | updated_at | 2014-04-02T13:16:20 | +------------------+--------------------------------------+
glance 슬라이드 자료.
'Cloud' 카테고리의 다른 글
처음 본 오픈스택 Neutron (0) | 2017.07.24 |
---|---|
처음 본 오픈스택 Swift (0) | 2017.07.24 |
처음 본 오픈 스택의 Nova (0) | 2017.07.20 |
[펌] 공개된 카카오 오픈 스택 관련 공개 및 강의 자료 (0) | 2017.07.20 |
처음 본 오픈 스택의 Cinder (0) | 2017.07.18 |