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

# 从 NAS 卷导入虚拟机

使用 NAS 卷导入方法，将 NFS 或 CIFS 网络共享中的虚拟机批量导入 VergeOS 的说明。

此方法支持一次导入多台 VM。无需将任何文件上传到 vSAN，而是可以从 NFS 或 CIFS 共享中拉取数据。注意：对于生产环境中的 VMware 实时环境，最好使用 VMware Service 来 [**从 VMware 备份作业导入**](https://docs.verge.io/run-the-platform/zh/xu-ni-ji/import-from-vmware.md)

{% hint style="warning" %}
**应从已关机的 VM 执行导入。**
{% endhint %}

{% hint style="info" %}
NAS 导入支持 **完整的虚拟机软件包——VMX、OVF、OVA 和 YBVM（VergeOS VM 导出格式）**。不支持导入独立的虚拟磁盘文件。YBVM 是 VergeOS 的原生格式，无需转换即可直接导入。其他格式请参阅 [从文件导入 VM](https://docs.verge.io/knowledge-base/zh/virtual-machines/import-vms-from-files.md).
{% endhint %}

## 从卷导入

1. 若要使用外部 NFS 或 CIFS 共享导入 VM，必须先在 NAS 中将外部源设置为 **远程卷** 。请参阅 [**远程卷**](https://docs.verge.io/run-the-platform/zh/nas/nas-remote-volumes.md) 了解操作说明。
2. 在云端仪表板中，从菜单选择 **机器** ，或点击仪表板上的“机器”快捷链接。
3. 选择 **新建 VM** （位于左侧菜单中）。
4. 选择左侧的“类型”，然后选择 **--从卷导入--**.
5. 右侧会显示现有卷。点击以 **选择相应的 CIFS/NFS 远程卷**.
6. 点击 **下一步** （屏幕底部）。
7. 屏幕将显示所选 NAS 卷中的现有文件夹。 ***选择文件夹*** 以指定所需 VM 文件所在的位置。所选文件夹的子目录中的 VM 也会一并导入。（点击左上角的复选框可选择卷中的所有文件夹。）
8. 点击 **下一步** （屏幕底部）。
9. 导入作业的默认名称为“Import Volume” + *NameofVolume*. **可根据需要更改导入作业名称** 。
10. 默认情况下， ***MAC 地址*** 将予以保留（MAC 地址与导入源 VM 的地址相同）；通常建议保留此选项，以避免必须重新配置来宾操作系统。如果取消选中此选项，系统将为所有 NIC 生成新的唯一 MAC 地址。
11. ***首选层级*** 可以选择，也可以保留为 **--default--**。此设置决定 VM 存储优先尝试使用的层级。 [**首选层级**](https://docs.verge.io/run-the-platform/zh/cun-chu/preferred-tiers.md) 页面对此设置有详细说明。
12. 按需填写字段后，点击 **提交**.
13. 导入将启动，并显示 **导入作业仪表板** 。其中会提供以下信息（以及其他数据）：
    * ***状态*** （正在初始化/正在导入/已完成）
    * ***创建日期***
    * ***子导入作业列表***，每个虚拟机对应一个子作业，其中包含：
      * 状态、（如适用）状态消息、虚拟机名称、源卷、首选层、保留 MAC 设置、创建日期/时间和上次更新时间/时间
    * ***作业日志***
    * ***已完成的子作业（虚拟机）数量 / 检测到的作业（虚拟机）总数***

请参阅 [**查看导入作业**](https://docs.verge.io/run-the-platform/zh/xu-ni-ji/view-import-jobs.md) ，了解有关查看导入作业详细信息的更多信息。


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
