An image represents the operating system, software, and any settings that instances may need depending on the project goals. Create images first before creating any instances.
Adding images can be done through the Dashboard, or the command line.
Another option available is the python-openstackclient
tool, which
can be installed on the controller node, or on a workstation.
In order to add an image using the Dashboard, prepare an image binary
file, which must be accessible over HTTP using a valid and direct URL.
Images can be compressed using .zip
or .tar.gz
.
Note
Uploading images using the Dashboard will be available to users with administrator privileges. Operators can set user access privileges.
Log into the controller node directly to add images using the command line with OpenStack command line clients. Glance commands allow users to add, manipulate, and manage images.
Alternatively, configure the environment with administrative access to the controller.
openstack image create
command, and specify the image name.
Use the
--file <The Image File>
variable to specify the image file.openstack image set
command, and specify the image name with the
--name <The Image Name>
variable.openstack
image list
.openstack image list
command to view more details on each image.Variable | Required | Details |
---|---|---|
--name NAME |
Optional | A name for the image |
--public [True|False] |
Optional | If set to true , makes the image available to all users. Permission
to set this variable is admin only by default. |
--protected [True|False] |
Optional | If set to true , this variable prevents an image from being deleted. |
--container-format CONTAINER_FORMAT |
Required | The type of container format, one of ami , ari , aki ,
bare , or ovf |
--disk-format DISK_FORMAT |
Required | The type of disk format, one of ami , ari , aki , vhd ,
vdi , and iso |
--owner PROJECT_ID |
Optional | The tenant who should own the image. |
--size SIZE |
Optional | Size of the image data, which is measured in bytes. |
--min-disk DISK_GB |
Optional | The minimum size of the disk needed to boot the image being configured, which is measured in gigabytes. |
--min-ram DISK_GB |
Optional | The minimum amount of RAM needed to boot the image being configured, which is measured in megabytes. |
--location IMAGE_URL |
Optional | The location where the image data resides. This variables sets the location as a URL. If the image data is stored on a swift service, specify: swift://account:<key@example.com>/container/obj. |
--checksum CHECKSUM |
Optional | Image data hash used for verification. |
--copy-from IMAGE_URL |
Optional | Indicates that the image server should copy data immediately, and store it in its configured image store. |
--property KEY=VALUE |
Optional | This variable associates an arbitrary property to the image, and can be used multiple times. |
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.