> Documentation index for agents: /hcp/3.3/en/llms.txt

# Image library

The image library is the section of the web interface where you manage the OS images of the cluster. You create virtual machines (VMs) from an image: you select it in the **OS profile** field when you create a VM — [Create a VM](/hcp/3.3/en/vms/create-vm/index.md).

To open the section, select **Provider Data Center** → **Image library** in the left menu. The **Images** tab holds the image catalog of the cluster, the **Sources** tab holds the external servers you import images from. The menu item is visible if the role has the **View Image Catalog** privilege: the **Cluster master** and **VDC admin** roles have it.

## Where images come from

An image gets into the catalog in one of two ways:

- **Import from a source.** A source is a web server that lists its images in a `manifest.json` file. Center downloads the image once, checks it against the checksum from `manifest.json` and distributes the image to pools — [Import an image from a source](/hcp/3.3/en/images/import-image/index.md). Sources are added on the **Sources** tab — [Connect an image source](/hcp/3.3/en/images/manage-image-sources/index.md).
- **Upload as a file.** You upload a `.zfs` file from your computer, without a source — [Upload an image as a file](/hcp/3.3/en/images/upload-image-file/index.md).

> **Official vStack image source**
>
> OS images from vStack are published in the repository <https://repo.vstack.com/images> — the official source of images prepared for vStack HCP. Connect it as a source: enter `https://repo.vstack.com/images` in the **Address** field — [Connect an image source](/hcp/3.3/en/images/manage-image-sources/index.md). Which images it contains — [OS images](/hcp/3.3/en/reference/os-images/index.md).

## Image distribution to pools

Center makes the disk of a new VM from the copy of the image on the pool where the VM disks will be stored. That is why the image is stored as a separate copy on each pool, and you can create a VM only on a pool that has a copy of the image. If you select a pool without a copy when you create a VM, Center rejects the request with the error **image is not available on the selected pool: \<pool>**. With **Least-loaded storage pool**, Center takes the least filled of the pools that have a copy.

The catalog shows where the copies are: the **Availability** column shows how many of the selected pools have received a copy, for example **2 / 3 pools**, and the **Pool layout** block of the image panel shows each pool and its node. The pool state is in the tooltip on hover: **In place**, **Pending**, **Removed**, and for a pool with an error — the reason for the error.

Images that existed in the cluster before the image library appeared are marked as available on all pools of the cluster when you upgrade to 3.3.

## Who can see an image

An image has an owner — the owner defines who can see the image and who can change it.

- **A shared image** is visible in all VDCs (virtual data centers). The **Access** column shows **Common**. Shared images are created by the **Cluster master**: everything this role imports or uploads becomes shared.
- **A VDC image** is visible only in its VDC. The **Access** column shows the VDC name. Such an image is created by a **VDC admin**: when importing or uploading, the admin selects the VDC in the **Owner VDC** field.

Only the owner can cancel the import of an image and delete it: the **Cluster master** — any image, a **VDC admin** — images of their VDC. A **VDC admin** sees a shared image but cannot delete it: the **Delete image** button is inactive, with the tooltip **The image belongs to another virtual data center**. You cannot change the owner of an image: a repeated import does not change the owner.

You cannot delete a VDC that owns images: Center rejects the request with the error **VDC has owned OS images**. Delete these images first — [Delete an image](/hcp/3.3/en/images/delete-image/index.md).

## Image statuses

The image status is in the **Status** column of the catalog and in the image panel.

| Status | Meaning |
| - | - |
| **Waiting for the file** | The upload as a file has started, the file transfer has not begun yet |
| **Uploading the file** | The file is being transferred; the browser tab that uploads it also shows the transferred volume and the speed |
| **Checking the file** | The file has been received, Center computes its checksum |
| **Importing** | The image is being downloaded and distributed to pools; for an import from a source, the downloaded volume, the total volume and the speed in MB/s are shown next to it |
| **Available** | Copies of the image are on all selected pools; you can create VMs from the image |
| **Partially available** | Some pools have not received a copy, or the copy has been removed from them; VMs are created on the pools that have a copy |
| **Failure** | The import or upload failed; the reason is in the **Failure reason** field of the image panel |
| **Deleting** | The image is being deleted |

## Image panel

Click the image row — the panel with the image name in the header opens on the right. It contains:

- the status, and during the import — the **Import** bar with the downloaded volume and the percentage;
- **Failure reason** — for an image with the **Failure** status;
- the image properties: **ID**, **OS type**, **Artifact size**, **SHA-256**, **Min. disk**, **Link scheme** and others;
- the **Origin** block — the image source, or **File** if the image was uploaded as a file;
- the **Access** block — **Visibility** (**Shared** or **Virtual data center**) and **Owner**;
- the **Pool layout** block.

## Sources

You add a source once and then import the images you need from it.

- A shared source is added by the **Cluster master**. Only the **Cluster master** can import from a shared source.
- A **VDC admin** adds a source of their VDCs and imports images from it.
- Only the owner of a source sees its address; other users see a dash instead.
- Deleting a source does not delete images: the images imported from it stay in the catalog, but you can no longer retry their distribution to pools with an error.

For details, see [Connect an image source](/hcp/3.3/en/images/manage-image-sources/index.md).

## Next

- [Connect an image source](/hcp/3.3/en/images/manage-image-sources/index.md)
- [Import an image from a source](/hcp/3.3/en/images/import-image/index.md)
- [Upload an image as a file](/hcp/3.3/en/images/upload-image-file/index.md)
- [Delete an image](/hcp/3.3/en/images/delete-image/index.md)
- [OS images](/hcp/3.3/en/reference/os-images/index.md) — the images published by vStack.
- [Roles and privileges](/hcp/3.3/en/reference/roles-privileges/index.md)

API methods: `golden-images-list`, `os-library-list` — in the [API reference](/hcp/3.3/en/api/methods/index.md).
