天天看點

分享一下 openstack 的 glance鏡像image

Image resources

Downloading Pre-Built Images for OpenStack

This is a collection of various OpenStack-ready p_w_picpaths of different distributions and operating systems.

  • Fedora 19: 32-bit / 64 bit (more info)
  • Fedora 18: 32-bit / 64-bit
  • CentOS 6.5 p_w_picpaths
  • Ubuntu cloud p_w_picpaths
  • Redhat6.5 (Requires RHEL subscription)
  • Windows Server 2012 test p_w_picpath
  • See alsothe oz-p_w_picpath-build list on Github

Importing Images into Glance

You can load an p_w_picpath from the command line with glance, eg:

glance p_w_picpath-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 p_w_picpath 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 diskp_w_picpath-builder, which is available in the RDO repository:

$ yum install diskp_w_picpath-builder
$ disk-p_w_picpath-create -a amd64 fedora vm -o fedora-p_w_picpath.qcow2
      
$ glance p_w_picpath-create --name F19-x86_64 --disk-format qcow2 --container-format bare --is-public True < fedora-p_w_picpath.qcow2      

繼續閱讀