glance基础命令

------------------------glance相关命令:

----------------------glance help| grep image

  1. 创建镜像
    glance image-create --name centos5.8_x86_64 --disk-format=qcow2 --container-format=bare
    –is-public=True --file=/tmp/centos5.8_x86_64_growroot_1.2_20131231.qcow2
  1. 上传imageglance add name=“Ubuntu 12.04 cloudimg amd64” is_public=true container_format=ovf
    disk_format=qcow2 < /root/precise-server-cloudimg-amd64-disk1.img
  1. 列出当前可用镜像glance image-list

4.列出镜像的详细信息glance image-show 0c47db9c-5f74-4544-8ada-0894c1d2c20c

  1. 删除镜像nova image-delete cirros

6.设置镜像参数openstack image set --property hw_cpu_cores=

8 --property hw_cpu_threads=2 --property hw_cpu_sockets=
2 --property hw_disk_bus=ide 02

你可能感兴趣的:(Linux,openstack,云计算)