> 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).

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

{% 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 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/resizing-a-virtual-disk-drive.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.
