How to Upload Custom Image to Glance in OpenStack?
This document provides step-by-step instructions for uploading an image to Glance. It includes setting up an Ubuntu server to access the OpenStack CLI, creating a new user, downloading the RC file, and uploading the image.
Follow the below steps to upload a custom image to Glance:
Step 1: Create a New User
a. Log in to the Customer portal.
b. Navigate to Services and then click on My Services.
c. Click on your project.
d. Click on Utilities, then on User.
e. Click on Create User.
f. Enter the Username and Description for the user and click on Create User.
g. Click on Download to save the user credential.
Step 2: Download RC File
To learn how to download a RC file, follow the below steps:
a. Login to the horizon portal with the credential created above.
b. Click on the region on top-left corner and select the region in which you want to upload your image.
c. Click on the user icon in the top-right corner.
d. Click on OpenStack RC File to download the RC file.
Step 3: Set Up Ubuntu Server to Access OpenStack CLI
a. Run the below command to install the OpenStack CLI on your Ubuntu server:
b. Upload the downloaded RC file to your server and source it to use the OpenStack CLI environment:
Note: Enter the path location in place of </path/to/your/openstack.rc>
c. Enter your Password.
You can now use the OpenStack CLI on your Ubuntu server to interact with your OpenStack environment.
Step 4: Upload Your Image:
a. Copy the image to the Ubuntu server using SCP/SFTP/Mobaxterm.
b. Use the below command to upload the image in your desired format (iso, vmdk, raw etc.)
Step 5: Verify Image Upload:
Navigate to Storage and click on Images, here you can view the uploaded image.
Last updated