> 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/knowledge-base/zh/virtual-machines/importing-windows-server-with-uefi-into-vergeos.md).

# 将带有 UEFI 的 Windows Server 导入 VergeOS

本指南介绍如何将启用 UEFI 的 Windows Server 虚拟机从 VMware 迁移到 VergeOS。该过程已在 Windows Server 2019 和 2022 上测试过，但也可能适用于更早版本的 Windows。

{% hint style="info" %}
**迁移前已移除 VMware Tools。该过程已在 Windows Server 2019 和 2022 上测试过，也可能适用于早期版本的 Windows。**
{% endhint %}

## 导入 Windows Server 虚拟机的步骤

1. **导入虚拟机** 来自 VMware 服务。请按照 [本指南](/run-the-platform/virtual-machines/import-from-vmware.md) 中的步骤将虚拟机导入 VergeOS。
2. 将主磁盘接口设置为 **SATA** 以确保初次启动时兼容。
3. 更改主磁盘的 **启动顺序** 更改为 **0** 在 VergeOS 中。
4. **开机** 使虚拟机启动到 Windows。
5. 安装 **virtio-win-guest-tools.exe** 如果尚未安装。此软件包包含 Virtio 驱动程序，磁盘和网络性能都需要它们。
6. 安装完成后， **关闭电源** 虚拟机。
7. **删除 EFI 磁盘**，因为迁移后它已不再需要。你可以在虚拟机的磁盘设置中将其移除。
8. 将主磁盘接口从 **SATA** 更改为 **Virtio-SCSI** 更改为以获得最佳性能。
9. 从 **光驱** 中移除介质文件（ISO）。
10. 更改 **NIC 驱动程序** 更改为 **Virtio** 以确保虚拟机使用高性能网络驱动程序。
11. 启用 **QEMU Guest Agent** 在虚拟机编辑界面上，以便让 VergeOS 收集有关该虚拟机的信息。
12. **开机** 再次启动虚拟机，并确保一切正常运行。
13. 通过查看虚拟机仪表板，确认 guest agent 正在向 VergeOS 回传信息。

{% hint style="success" %}
**监控来宾代理**

来宾代理状态可在虚拟机的仪表板上查看。如果它没有回传，请确保虚拟机内的来宾代理服务正在运行。
{% endhint %}

***

{% hint style="info" %}
**文档信息**

* 最后更新：2024-08-29
* vergeOS 版本：4.12.6
  {% endhint %}


---

# 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/knowledge-base/zh/virtual-machines/importing-windows-server-with-uefi-into-vergeos.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.
