> For the complete documentation index, see [llms.txt](https://docs.acecloud.ai/knowledge-base/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.acecloud.ai/knowledge-base/utilities/how-do-you-upload-a-custom-image-to-glance-in-openstack.md).

# How do you upload a 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.&#x20;

Follow the below steps to upload a custom image to Glance:

**Step 1: Create a New User**

a. Log in to the [Customer portal](http://customer.acecloudhosting.com/).

<figure><img src="/files/SsGgENWbQuyI1HTroq3w" alt=""><figcaption></figcaption></figure>

b. Navigate to **Services** and then click on **My Services.**

<figure><img src="/files/XnpcPaC6k9r3h83STifD" alt=""><figcaption></figcaption></figure>

c. Click on your project.

<figure><img src="/files/kqHjPKaqaLgqib6bNmmo" alt=""><figcaption></figcaption></figure>

d. Click on **Utilities,** then on **User**.

<figure><img src="/files/rUdTZQwNQsS39HurqX6E" alt=""><figcaption></figcaption></figure>

e. Click on **Create User**.

<figure><img src="/files/4haz7XSrqKsbZp1Crh1A" alt=""><figcaption></figcaption></figure>

f. Enter the **Username** and **Description** for the user and click on **Create User**.

<figure><img src="/files/HIxcBhRZgfhrMMHyP3OT" alt=""><figcaption></figcaption></figure>

g. Click on **Download** to save the user credential.

<figure><img src="/files/5jrWpF000sO55MtqWcAU" alt=""><figcaption></figcaption></figure>

**Step 2:** **Download RC File**

To learn how to download a RC file, follow the below steps:

a. Login to the [horizon portal ](https://console.openstack.acecloudhosting.com/auth/login/?next=/identity/users/)with the credential created above.

<figure><img src="/files/gkZk4P5bwHOduNzfVjld" alt=""><figcaption></figcaption></figure>

b. Click on the region on top-left corner and select the region in which you want to upload your image.

<figure><img src="/files/Co7qh6KxBwriZ9BfPaqo" alt=""><figcaption></figcaption></figure>

c. Click on the user icon in the top-right corner.

<figure><img src="/files/EVfmAt8CygvFBkYz2am4" alt=""><figcaption></figcaption></figure>

d. Click on **OpenStack RC File** to download the RC file.

<figure><img src="/files/nFGLBDY2K5bZjgCxERMu" alt=""><figcaption></figcaption></figure>

**Step 3: Set Up Ubuntu Server to Access OpenStack CLI**

a. Run the below command to install the OpenStack CLI on your Ubuntu server:

```
sudo apt update && apt install python3-openstackclient -y
```

<figure><img src="/files/cxCcUmtamPPFYmjqaqPQ" alt=""><figcaption></figcaption></figure>

b. Upload the downloaded RC file to your server and source it to use the OpenStack CLI environment:

```
source /path/to/your/openstack.rc
```

**Note:** Enter the path location in place of \</path/to/your/openstack.rc>

c. Enter your Password.&#x20;

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.)

```
openstack image create --disk-format iso --container-format bare --private --file /path/to/your/iso "image-name-you-want"
```

**Step 5: Verify Image Upload:**

Navigate to **Storage** and click on **Images**, here you can view the uploaded image.

<figure><img src="/files/yEXGJpHc6TNjoye23fsE" alt=""><figcaption></figcaption></figure>
