Taking a Virtual Machine Snapshot via Ubuntu Terminal
Introduction
Creating a Virtual Machine Snapshot, is a little bit lite creating a restore point in Windows. The Snapshot records the current state of the virtual machine and allow you revert back to the stored state incase something goes wrong with the virtual machine.
You can take a snapshot from the host console using the following command:
Steps
Step 1. - Take Snapshot
VBoxManage snapshot "Langflow3" take "MySnapshotName" --live
"Langflow3"→ Your VM name."MySnapshotName"→ Replace with a meaningful name for the snapshot.--live→ (Optional) This allows you to take a snapshot while the VM is running.
Step 2. - Verify the snapshot
- To check if the snapshot was successfully created, run:
VBoxManage snapshot "Langflow3" list
Step 3. - Restore a snapshot
- If you ever need to revert to a snapshot:
VBoxManage snapshot "Langflow3" restore "MySnapshotName"