分享一下 openstack 的 glance镜像image
Image resourcesDownloading Pre-Built Images for OpenStack
This is a collection of various OpenStack-ready images of different distributions and operating systems.
[*] Fedora 19: 32-bit / 64 bit (more info)
[*] Fedora 18: 32-bit / 64-bit
[*] CentOS 6.5 images
[*] Ubuntu cloud images
[*] Redhat6.5 (Requires RHEL subscription)
[*] Windows Server 2012 test image
[*] See alsothe oz-image-build list on Github
Importing Images into Glance
You can load an image from the command line with glance, eg:
glance image-create --name 'Fedora 19 x86_64' --disk-format qcow2 --container-format bare --is-public true \
--copy-from http://cloud.fedoraproject.org/fedora-19.x86_64.qcow2... or go to the 'Images and Snapshots' tab in your OpenStack dashboard to add them via the gui.
See the glance documentation for more details about the glance command line tools.
Building Your Own Images
[*] Information on building an image via Oz for OpenStack (RHOS and RDO) is available in the RHOS 3.0 Installation and Configuration Guide
[*] Building a Windows Image for OpenStack
Alternatively, one can use diskimage-builder, which is available in the RDO repository:
$ yum install diskimage-builder
$ disk-image-create -a amd64 fedora vm -o fedora-image.qcow2
Note: using the vm element as shown above is currently required for EPEL. Otherwise, one may instead not specify the vm element and extract the kernel and ramdisk as documented here: https://wiki.openstack.org/wiki/Baremetal#Image_Requirements
The resulting image file can be imported into glance similar to any other image:
$ glance image-create --name F19-x86_64 --disk-format qcow2 --container-format bare --is-public True < fedora-image.qcow2
页:
[1]