> 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/loading-virtio-drivers-in-windows-recovery-console.md).

# 在 Windows 恢复控制台中加载 Virtio 驱动程序

如果运行任何版本 Windows 操作系统且已安装 Virtio-SCSI 磁盘驱动程序的来宾虚拟机启动到恢复控制台模式，由于驱动程序尚未加载，操作系统分区可能不可见。

## 前提条件

在开始对来宾操作系统进行恢复工作之前，请确保管理员已具备：

1. 对虚拟机的访问权限，包括 **经过测试/已知可用的凭据**.
2. 该 **Virtio 驱动程序 ISO** 已在 VergeOS 环境中加载并可用，位于 **文件**.
3. 该 **Windows 操作系统安装 ISO** 已在 VergeOS 环境中可用。

## 要求

要从 Windows 来宾操作系统恢复控制台加载 Windows 驱动程序，管理员需要：

1. 可访问运行该来宾操作系统的环境的 VergeOS UI 平台。
2. （最新）的一份副本 **Virtio 磁盘驱动程序** ，采用 ISO 格式。
3. 一份 **Windows 操作系统 ISO** （示例：Windows 启动盘）。

## 启动 Windows 恢复控制台

1. 登录到 **控制台** 并按照 Windows 安装提示导航到 **恢复控制台** 以及 **命令提示符**.
2. 到达命令提示符后，输入以下命令以列出虚拟机上可用的磁盘：

   ```doscon
   wmic logicaldisk get deviceid, volumename, description
   ```

   按 <kbd>ENTER</kbd>.

   这将返回可用磁盘列表。通常， **D:** 将是 EFI 启动卷， **E:** 将是 CD 安装介质，而 **X:** 将是活动的、已启动的 Windows 恢复会话。

   Virtio-SCSI 磁盘很可能不存在，需要先加载驱动程序才能显示出来。

## 安装 Virtio-SCSI 和存储驱动程序

从 **命令提示符** 在 Windows 恢复控制台中，请按以下步骤操作：

1. 要加载 Virtio-SCSI 存储驱动程序，请输入：

   ```doscon
   Drvload e:\vioscsi\2k16\amd64\vioscsi.inf
   ```

   按 <kbd>ENTER</kbd>.

   * **E:** 指的是加载 Virtio ISO 的驱动器号。
   * **2k16\amd64** 指的是基于操作系统的 Virtio 驱动程序路径。如有需要，请浏览 ISO 镜像以查找其他操作系统版本的路径。
2. 要加载 Virtio 存储驱动程序，请输入：

   ```doscon
   Drvload e:\viostor\2k16\amd64\viosstor.inf
   ```

   按 <kbd>ENTER</kbd>.

   * **E:** 再次指的是加载 Virtio ISO 的驱动器号。
   * **2k16\amd64** 指的是基于操作系统的 Virtio 驱动程序路径。请按需调整。

## 验证磁盘挂载

加载这两个驱动程序后，磁盘应会挂载，通常显示为 **F:** 驱动器。

要验证这一点，请再次运行该命令：

```doscon
wmic logicaldisk get deviceid, volumename, description
```

按 <kbd>ENTER</kbd>。你现在应该能看到新挂载的磁盘。

***

{% 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/loading-virtio-drivers-in-windows-recovery-console.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.
