How to Download OpenStack image in PMO?

Problem

How to download images available in the PMO environment.

Environment

  • Platform9 Managed OpenStack - v4.0 and Higher
  • Image v1,v2

Procedure

To download image using OpenStack cli, image must show the active status.

  1. Use openstack image list to list out the images available in the environment.
  2. Use openstack image save --file <FILE_NAME> <IMAGE_ID> to download the image locally.
  • Replace <FILE_NAME> with the path and name of the file you want to save the image as on your local system. Include the appropriate extension for the image format (e.g., .qcow2 or .img).
  • Replace <IMAGE_ID> with the ID of the image you created.
CLI
Copy

To download an image using curl request, image must show the active status.

  1. Generate the OS_TOKEN using the "openstack token issue" command.

  2. Export the token ID in OS_TOKEN.

  3. Execute curl command to download the image curl -H "X-Auth-Token: $OS_TOKEN" -X GET "http://<FQDN>:9292/v2/images/<UUID>/file" -o file.qcow2

    Where,

    <FQDN> - Is the management plane fqdn

    <UUID> - Image uuid

Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard