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

# Importing Windows Server with UEFI into VergeOS

Guide to migrating a UEFI-enabled Windows Server VM from VMware into VergeOS, including disk interface changes, Virtio driver installation, and QEMU guest agent configuration.

This guide covers how to migrate a Windows Server VM with UEFI enabled from VMware into VergeOS. The process was tested with Windows Server 2019 and 2022, but it may also work for earlier versions of Windows.

{% hint style="info" %}
**VMware tools were removed before the migration. This was tested on Windows Server 2019 and 2022. It may also work on previous versions of Windows.**
{% endhint %}

## Steps to Import the Windows Server VM

1. **Import the VM** from the VMware service. Follow the steps from [this guide](/run-the-platform/virtual-machines/import-from-vmware.md) to import the VM into VergeOS.
2. Set the primary disk interface to **SATA** for compatibility during initial boot.
3. Change the primary disk's **Boot Order** to **0** in VergeOS.
4. **Power On** the VM to boot into Windows.
5. Install the **virtio-win-guest-tools.exe** if it's not already installed. This package includes Virtio drivers necessary for disk and network performance.
6. Once the installation is complete, **Power Off** the VM.
7. **Delete the EFI drive**, as it is no longer needed after the migration. You can remove it from the VM's disk settings.
8. Change the primary disk interface from **SATA** to **Virtio-SCSI** for optimal performance.
9. Remove the media file (ISO) from the **CD drive** in the VM settings.
10. Change the **NIC driver** to **Virtio** to ensure the VM uses a high-performance network driver.
11. Enable the **QEMU Guest Agent** on the VM edit screen to allow VergeOS to gather information about the VM.
12. **Power On** the VM again and ensure everything is working correctly.
13. Verify that the guest agent is reporting back to VergeOS by checking the VM dashboard.

{% hint style="success" %}
**Monitoring the Guest Agent**

The guest agent status can be viewed on the VM's dashboard. If it doesn't report back, ensure the guest agent service is running inside the VM.
{% endhint %}

***

{% hint style="info" %}
**Document Information**

* Last Updated: 2024-08-29
* vergeOS Version: 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 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/knowledge-base/virtual-machines/importing-windows-server-with-uefi-into-vergeos.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.
