![Forrest logo](/images/logo.png)
qm-snapshot:tldr:d9943
This command is used to create a snapshot of a virtual machine (VM) using the qm (QEMU machine) command in a virtualization environment.
Here's what each part of the command does:
-
${vm_id}
: This is a placeholder for the ID or name of the virtual machine for which you want to create a snapshot. Replace${vm_id}
with the actual ID or name of the VM. -
${snapshot_name}
: This is a placeholder for the desired name of the snapshot. Replace${snapshot_name}
with the actual name you want to give to the snapshot. -
--description ${description}
: This option allows you to provide a description for the snapshot. Replace${description}
with the actual description you want to give to the snapshot. -
--vmstate 1
: This option specifies that the snapshot should include the VM's current memory state (RAM), ensuring that the snapshot captures the exact state of the VM at the time of the snapshot's creation.
By executing this command with the appropriate values filled in, a snapshot of the specified virtual machine will be created with the given name, description, and including the VM's current memory state. This snapshot can later be used to revert the VM back to this captured state if needed.