# 创建镜像

## 前提条件

* 请注意，您必须先关闭您的 VM 实例，然后才能创建镜像。
* 您可以在每个地域创建多达 5 个镜像。
* 您只能在同一地域使用自定义镜像创建实例。如果您需要使用其他地域的镜像创建实例，请联系 Zenlayer 支持。

## 操作步骤

1. 登录 [**zenConsole**](https://console.zenlayer.com/)。
2. 转到 **计算** > **虚拟机** > **镜像** 并点击 **创建镜像**。
3. 选择您要从中创建镜像的虚拟机实例。\
   列表中显示了所有虚拟机实例，但只有已关闭的实例可以选择。如果您仍想选择这些实例，请先转到实例列表将其关闭。
4. 标记您的镜像并添加备注（如有需要）。
5. 点击 **确认**。

## 可选操作步骤

### 创建实例

在镜像列表页面，点击 **创建实例** 跳转到虚拟机创建页面。

### 删除镜像

在镜像列表页面，点击 **删除** 删除不再使用的镜像。镜像删除后，使用该镜像的实例仍可继续使用并产生费用。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.console.zenlayer.com/welcome/cn/virtual-machine/get-started/virtual-machine-instance/create-an-image.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
