Glance command line upload Image

Source: Internet
Author: User

Create a system image and upload it to the/mnt/image directory:

Centos6.5.img

$ Glance image-create-name centos6.5-disk-format = qcow2-container-format = bare-is-Public = true-file =/mnt/image/centos6.5.img

Explanation:

-Name: The name displayed in openstack after the image is uploaded;

-Disk-format disk_format: The image format. For details about the formats supported by openstack, see the official introduction;

-The container format of the container-format container_format image can be AMI, Ari, Aki, ovf, and bare. The default value is bare.

-Owner tenant_id: the tenant can use this image.

-Size size: the size of the image.

-Min-disk disk_gb: the minimum size required for starting the image;

-Min-ram disk_ram: Minimum Memory required to start this image;

-Location image_url: You can use the URL address to upload images on the web interface. Currently, HTTP is supported;

-Local directory where the file image is located;

-Checksum image data verification;

-Is-public [true | false] indicates whether the image is shared. After sharing, other users can use the image to start the instance;


This article is from the "Siberian wolf" blog, please be sure to keep this source http://kernal.blog.51cto.com/8136890/1530227

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.