> For the complete documentation index, see [llms.txt](https://docs.verge.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.verge.io/run-the-platform/zh/xu-ni-ji/import-from-upload.md).

# 从上传的媒体镜像导入 VM

通过媒体映像导入是一种一次导入单个 VM 的便捷方式。VM 数据文件，例如 VMX、VMDK、OVF、VHD(X)，会上传到 vSAN，然后选择导入。

## 从媒体映像导入 VM（配置和磁盘）

{% hint style="info" %}
Hyper-V VM 应在上传前导出为 \*.ova/ovf 或 VMware 格式， **—或—** 使用 ***创建 VM 外壳，导入 VM 磁盘*** 下面的方法先创建 VM，然后导入磁盘
{% endhint %}

1. 将配置和磁盘映像文件上传到 vSAN。有关将文件上传到 vSAN 的说明，请参见 [**将文件上传到 vSAN**](/run-the-platform/zh/cun-chu/uploading-files-to-vsan.md).
2. 导航到 **虚拟机** > **+ 新建 VM**.
3. 从选项列表中选择 **--从媒体映像导入--**。可用文件（已上传到 vSAN）将显示在右侧的“可选项”列表中。单击以 **选择 VM 配置文件** （例如 *.vmx，*.ovf）
4. 单击 **下一步** （屏幕底部）。
5. 该 ***虚拟机名称*** 如果留空，将默认使用所选配置文件的名称；否则可指定名称。
6. 默认情况下 ***MAC 地址*** VM NIC 的地址将与源 VM 保持相同。如果取消选择此选项，系统将生成新的唯一 MAC 地址。
7. 选择 ***首选层级***，或者保持为 --default--。这决定了 VM 存储首先尝试的层。请参见 [**首选层级**](/run-the-platform/zh/cun-chu/preferred-tiers.md) 页面以了解更多信息。
8. 当字段按需填写完毕后，点击 **提交**。VM 实例将被创建，并显示新 VM 的仪表板。

## 创建 VM 外壳，导入 VM 磁盘

1. 将磁盘映像文件上传到 vSAN。有关将文件上传到 vSAN 的说明，请参见 [**将文件上传到 vSAN**](/run-the-platform/zh/cun-chu/uploading-files-to-vsan.md)
2. [**创建新的自定义虚拟机**](/run-the-platform/zh/xu-ni-ji/creating-vms.md#create-a-new-custom-vm)，分配适当的硬件规格和 NIC 设备。
3. 向 VM 添加新驱动器，务必选择 **导入磁盘** 在 ***介质字段***.
4. 选择合适的 ***接口*** （IDE、SATA、Virtio-SCSI、Virtio-Legacy 等）
5. 选择驱动器 ***介质文件*** (*.vhd，*.vhdx、\*.qcow、raw 等）从下拉列表中选择。（[**VM 驱动器**](/run-the-platform/zh/xu-ni-ji/vm-drives.md) 提供了详细的驱动器创建说明。）
6. 如适用，请对其他驱动器重复驱动器创建步骤。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.verge.io/run-the-platform/zh/xu-ni-ji/import-from-upload.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
