> 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/changing-resolution-on-a-uefi-vm.md).

# 更改 UEFI 虚拟机的分辨率

在基于 UEFI 的虚拟机（VM）中，屏幕分辨率由 OVMF（Open Virtual Machine Firmware）平台配置控制。默认情况下，VM 只能使用平台设置中配置的分辨率。如果您需要更改显示分辨率，请按照以下步骤操作。

## 更改屏幕分辨率的步骤

1. **重启 VM** 并保持连接到控制台（通过 VergeOS UI 或您正在使用的任何控制台管理器）。
2. 当 VM 启动时， **按** <kbd>ESC</kbd> 进入 UEFI 设置菜单。
3. 进入 UEFI 菜单后，导航到 **设备管理器**.
4. 在设备管理器中，选择 **OVMF 平台配置**.
5. 选择您所需的 **首选分辨率** 从可用选项列表中。
6. **保存** 配置更改，并重启 VM，使新分辨率生效。

## 注意事项

* 可用的分辨率选项取决于固件和来宾操作系统的显示能力。
* 如果您仍然遇到分辨率问题，请确保您的来宾操作系统已安装必要的显示驱动程序。
* UEFI 设置可能会因 VM 和配置而略有不同，因此在某些环境中，部分步骤看起来可能会有些差异。

按照这些步骤，您可以成功调整基于 UEFI 的 VM 的屏幕分辨率。

***

{% 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/changing-resolution-on-a-uefi-vm.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.
