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

# Import an image from a source

Import an OS image from a source when the cluster needs a new image or a new version of an image. Center downloads the image from the source, checks the checksum and distributes copies of the image to the selected pools. You can create VMs from the image on the pools that already have a copy.

## Before you begin

- You need the **Cluster master** or **VDC admin** role. The **Cluster master** imports shared images that are visible in all VDCs (virtual data centers). A **VDC admin** imports an image of their VDC and only from a source of their VDCs.
- The source is connected — [Connect an image source](/hcp/3.3/en/images/manage-image-sources/index.md).
- The image in the source is in the `zfs` format: Center does not import other formats.

## 1. Select the image

1. In the left menu, select **Provider Data Center** → **Image library**. The **Images** tab opens.

2. Click **Add image**. A window with the **File** and **Source** tabs opens; the **Source** tab is open.

3. If the window has the **Owner VDC** field, select the VDC that will own the image. The field is shown for the **VDC admin** role; if there is only one VDC, it is selected automatically.

4. Select the source in the **Source** field. The **Image showcase** appears below — the cards of the source images with the version and the size.

5. Click the card of the image you need.

   - An inactive card with the caption **The platform cannot import this format** — the image is not in the `zfs` format.
   - A card with a check mark — the image is already in the catalog. A repeated import distributes it to the pools that do not have a copy yet.

## 2. Select pools and start the import

1. Click **Next**. The list of pools opens, all of them selected; each pool shows its node. Below the list — how much space the copies take: the image size multiplied by the number of selected pools.
2. Clear the pools where you do not need the image. You cannot clear the last selected pool.
3. Click **Add**.

If there is no **Next** button, your role has no pool selection step: click **Add** on the first step, and Center distributes the image to all pools of the cluster.

The web interface shows the notification **Image import has started**, closes the window and opens the panel of the new image. The import runs in the background — the notification means that Center has accepted the job, not that the image is ready.

### Import from the Sources tab

You can start the same import from the **Sources** tab: click the source row and, in the **Image showcase** of its panel, click the image card. In the **Import image** window, select the **Owner VDC** if the field is there, keep the pools you need selected and click **Import**.

## 3. Wait for the import to finish

While the image is being downloaded, the **Status** column shows **Importing** with the downloaded volume, the total volume and the speed in MB/s. The image panel shows the **Import** bar with the volume and the percentage, and the **Pool layout** block shows the state of each pool.

Downloading the image has no time limit: it continues as long as the downloaded volume grows. If the volume does not grow for 15 minutes, Center stops the import: the status is **Failure**, the reason is **Download stopped: no data received for 15 minutes.**. Distributing the image to the pools has a time limit for each pool: the image size divided by 100 Mbit/s, plus 5 minutes. If a pool does not make it in time, distribution to it fails.

## Check the result

- The image status is **Available**.
- In the **Availability** column, the number of pools with a copy equals the number of selected pools.

Create a VM from the image on one of these pools — [Create a VM](/hcp/3.3/en/vms/create-vm/index.md).

The **Partially available** status means that some pools have not received a copy: hover over a pool with an error in **Pool layout** to see the reason, and retry the distribution — [Retry the distribution to pools with an error](#retry-failed-pools).

## Cancel the import

Cancel the import if the image was selected by mistake or the download takes too long. You can cancel while the status is **Importing**. The owner of the image cancels it: the **Cluster master** — any image, a **VDC admin** — an image of their VDC.

1. In the image row, select **Actions** → **Cancel import**, or click **Cancel import** in the image panel. The **Cancel import** window opens with the text **Cancel the import of image “\<name>”? The image stays in the list as failed; you can delete it separately.**.
2. Click **Cancel import**.

Center stops the download and the distribution to pools. The web interface shows the notification **Import of image \<name> has been cancelled**, the image status becomes **Failure**, the reason is **Import cancelled by user.**. The image stays in the catalog: delete it or retry its distribution later.

You cannot delete an image while it is being imported: there is no **Delete** item. Cancel the import first.

## Retry the distribution to pools with an error

If some pools have not received a copy — the status is **Partially available** or **Failure**, and **Pool layout** has pools with an error — repeat the import only on these pools.

1. Click the image row. The image panel opens.
2. Click **Retry failed** in the **Pool layout** block.

The web interface shows the notification **Repeat started for the failed pools of image \<name>**, and Center imports the image again to the pools with an error. If the button is inactive, the tooltip explains why:

- **There is nothing to retry — no pool has failed**;
- **The image was uploaded from a file — repeat is unavailable** — the image has no source, including when the source has been deleted;
- **You are not allowed to import images** — the role does not have the **Import Golden Image** privilege.

## Troubleshooting

If Center has not accepted the import, the window stays open, and the web interface shows a notification:

| Notification | What to do |
| - | - |
| **The image was not found in the source catalog** | The list of source images has changed. Synchronize the source and select the image again |
| **This image is already being imported** | Wait for the current import to finish |
| **The image is being deleted — import is unavailable** | Wait for the deletion to finish |
| **The image format is not supported** | Select an image in the `zfs` format |
| **The image description in the source is invalid** | The image description in `manifest.json` does not pass the check. Contact the owner of the source |
| **The selected pool is unavailable** | The pool does not exist, or the cluster has no pools connected to nodes. Open the window again and select pools from the list |
| **An image with this identifier already exists under a different source** | This image has already been imported from another source |

If the import has started but failed, the image status is **Failure**, and the reason is in the **Failure reason** field of the image panel:

| Failure reason | What to do |
| - | - |
| **Download stopped: no data received for 15 minutes.** | Check that the source is reachable from the Center network and import the image again |
| **Could not download the artifact from the source** | Check that the source is reachable and import the image again |
| **Checksum does not match the manifest** | The image file in the source does not match `manifest.json`. Contact the owner of the source |
| **Distribution to pools failed** | See the reason per pool in **Pool layout** and click **Retry failed** |
| **Import cancelled by user.** | The import was cancelled — [Cancel the import](#cancel-import) |
| **Import was interrupted by a service restart** | Import the image again |

Center does not repeat a failed import automatically: the user starts the repeated import. A repeated import of the same image returns the failed row to **Importing**; you do not need to delete it.

## Next

- [Create a VM](/hcp/3.3/en/vms/create-vm/index.md)
- [Delete an image](/hcp/3.3/en/images/delete-image/index.md)
- [Image library](/hcp/3.3/en/images/index.md) — how the catalog and the distribution to pools work.

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