> 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/reasons-a-windows-vm-restarted-unexpectedly.md).

# Windows 虚拟机意外重启的原因

如果您有一台最近意外重启的 Windows 虚拟机，首先应从虚拟机仪表板查看日志开始。\
您可以通过导航到以下位置来打开日志查看器： **主菜单 > 机器 > 虚拟机 >** 您正在调查的虚拟机名称 **> 日志。**

在日志视图中，搜索（或过滤结果）“消息”部分。若干状态消息会表明虚拟机为何停止运行。以下是最常见的几种及其简要说明：

* **消息：已发送 VM 操作“kill”**\
  这表示某位 VergeOS 用户从 VergeOS 界面发出了“强制断电”命令。日志会在“来源”列中显示该用户。\
  在这种情况下，请与系统用户确认发出此命令的原因。
* **消息：已发送 VM 操作“poweroff”**\
  这表示某位 VergeOS 用户从 VergeOS 界面发出了“正常关机”命令。该命令成功与来宾操作系统的 ACPI 交互，从而正常停止了虚拟机。日志会在“来源”列中显示该用户。\
  在这种情况下，请与系统用户确认发出此命令的原因。
* **消息：虚拟机已关机**\
  这表示关机命令是直接从来宾操作系统内部发出的。\
  在这种情况下，请查看来宾操作系统日志，以确定发出关机命令的原因。
* **消息：虚拟机已重置**\
  这表示重启命令是直接从来宾操作系统内部发出的。\
  在这种情况下，请查看来宾操作系统日志，以确定发出重置命令的原因。

{% hint style="info" %}
**最佳实践**

运行 Windows 的来宾虚拟机如果出现意外重启，通常是因为 Microsoft Windows 更新服务被配置为自动安装需要重启的更新。\
若要进一步调查，请查阅有关该特定 Windows 操作系统版本的知识库文章。\
在 Windows 来宾级别开始调查的最佳位置之一是使用 **Windows 事件查看器** 并查看 **Windows 更新日志** 以获取更多信息。
{% 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/reasons-a-windows-vm-restarted-unexpectedly.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.
