> 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/making-a-nonpersistent-vm.md).

# 创建非持久性虚拟机

非持久性虚拟机在重启后会恢复到原始状态，并丢弃会话期间所做的任何更改。这对于 VDI（虚拟桌面基础架构）环境很有用，在这些环境中，系统应在每次使用后重置。

## 创建非持久性虚拟机的步骤：

1. 导航到 **VM 仪表板**.
2. 通过选择以下选项关闭虚拟机 **操作 > 关机** 或者使用 **电源按钮**:

{% hint style="info" %}
这可确保数据处于适合克隆的良好状态。
{% endhint %}

3. 点击 **复制** 按钮，位于虚拟机上的主磁盘旁边。 ![nonpersistent-2.png](/files/50965a68d8f8fec8d0e2ef1aaf321f11fd70706c)
4. 更改 **介质类型** 更改为 **非持久性** 然后点击 **提交** 在底部。
5. 点击 **编辑** 图标 ![edit icon pencil](/files/061d3d6a6f70629c955d14342b91713e6b9b286e) 用于原始 **磁盘介质类型**.

{% hint style="info" %}
新磁盘将显示一个 **介质类型** 的 **非持久性**。对此磁盘所做的任何更改都会在虚拟机重启时恢复。
{% endhint %}

6. 取消勾选 **已启用** 复选框。
7. 通过选择以下选项启动虚拟机 **开机** 在左侧菜单中，或点击 **播放按钮**:

这将使用非持久性磁盘启动虚拟机。该磁盘在会话期间可完全写入，但所有更改都会在重启后被丢弃，使虚拟机恢复到其原始状态。

{% hint style="warning" %}
**不要删除原始磁盘。由于重复数据删除，它不会占用额外空间。**
{% 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/making-a-nonpersistent-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.
