← 返回命令列表

Linux command

qm-snapshot 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Create

qm snapshot vm_id snapshot_name

Example

qm snapshot vm_id snapshot_name --description "description"

Example

qm snapshot vm_id snapshot_name --vmstate 1

List

qm listsnapshot 100

Rollback

qm rollback vm_id snap_name

说明

qm snapshot creates a point-in-time snapshot of a QEMU/KVM virtual machine in Proxmox VE. Snapshots capture the disk state and optionally the VM memory state, allowing rollback to that point later.

参数

vmid
The numeric ID of the virtual machine
snapname
Name for the snapshot (must start with a letter)
--description _text_
Description text for the snapshot
--vmstate _boolean_
Include the VM memory state in the snapshot

FAQ

What is the qm-snapshot command used for?

qm snapshot creates a point-in-time snapshot of a QEMU/KVM virtual machine in Proxmox VE. Snapshots capture the disk state and optionally the VM memory state, allowing rollback to that point later.

How do I run a basic qm-snapshot example?

Run `qm snapshot vm_id snapshot_name` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does vmid do in qm-snapshot?

The numeric ID of the virtual machine