> 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/resizing-a-virtual-disk-drive.md).

# 调整虚拟磁盘驱动器大小

在 VergeOS 中增大虚拟磁盘驱动器容量的分步说明，包括热插拔支持和来宾操作系统要求的说明。

{% hint style="info" %}
**注意**

驱动器只能增大，不能缩小。请确认您的来宾操作系统是否支持在不重启电源的情况下调整大小，尤其是 Virtio-SCSI 驱动器。
{% endhint %}

要在 VM 中调整虚拟磁盘驱动器大小，请按以下步骤操作：

1. 从 **虚拟机仪表板**，点击 **驱动器** 在左侧菜单中。
2. 选择要修改的驱动器。
3. 点击 **编辑** 在左侧菜单中。
4. 按需修改驱动器大小。
5. 点击 **提交**.

## 重要说明

{% hint style="info" %}
**注意**

如果 VM 配置允许热插拔，磁盘接口设置为 **Virtio-SCSI**，并且来宾操作系统（OS）支持，则通常可以在不重启 VM 的情况下增大驱动器大小。
{% endhint %}

{% hint style="danger" %}
**警告**

驱动器大小不能缩小。虽然可以在来宾操作系统中调整分区大小，但磁盘驱动器本身无法缩小。
{% endhint %}

{% hint style="danger" %}
**警告**

对驱动器大小的修改很可能需要在来宾操作系统中进行相应更改，以使用新添加的空间。
{% 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 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/zh/virtual-machines/resizing-a-virtual-disk-drive.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.
