KnowledgeBase
Image Management
How to Upload an Image on OpenStack

How to Upload an Image on OpenStack

Using the Command Line Interface (CLI)

Firstly, log in to your OpenStack CLI using the RC file.

Alt Text

To learn how to access the OpenStack CLI, refer to this document.

Then upload the image to OpenStack using the following command:

openstack image create ImageName --file /path/to/image-file --disk-format raw --container-format bare --public --progress

Alt Text

Example:

Parameters Explained:

  • ImageName: The name you want to give to the uploaded image.
  • --file /path/to/image-file: The path to the image file that you want to upload.
  • --disk-format raw: The disk format of the image.
  • --container-format bare: The container format of the image (typically bare unless you have a specific container format).
  • --public: Makes the image accessible to all users in the OpenStack project.
  • --private: Restricts access to only the user who uploads the image.
  • --progress: Shows the progress of the image upload.

Using the XConnect Dashboard

  1. Log in to your XConnect account.

  2. Navigate to Compute > Images and click on the Create Image button.

Alt Text

  1. Provide the necessary details:

    • Name: Enter a name for the image.
    • Image File: Select the file you want to upload.
    • Format: Choose the format of the image.
    • Visibility: Select the visibility option (Private, Protected, Public).
  2. Click on the Create Image button to upload the image. Alt Text

© Copyright@xloud.tech