In this article, we will use the Raspberry Pi 4 device that was created in Quickstart for AVH (Raspberry Pi4) tutorial.
What Are Snapshots?
Snapshots give you the ability to save the state of a device and then restore or clone that state at a moment’s notice. Reduce valuable setup time by instantly returning to a previously saved state, create clones to run multiple tests from the same starting environment, or provide identical starting VMs to all students in a virtual classroom. Snapshots can save you significant time reproducing bugs or repeating tests.
Every virtual device automatically captures a new snapshot right after the initial creation, providing a quick and easy way to revert back to that fresh image. You can take up to five snapshots (in addition to the snapshot from initial creation) per virtual device.
The virtual device must be turned off to take a snapshot.
Taking Snapshots
This tutorial will demonstrate Snapshots by creating and restoring them.
Find the device you created in the Quickstart for AVH (Raspberry Pi4) tutorial.
Power off the device by clicking the power symbol on the top-right. Wait until you see POWER ON DEVICE on the left to confirm it is shut down.
Click the Snapshot icon, then click TAKE NEW SNAPSHOT. You will see “Snapshot # 1” appear below the Freshly Restored snapshot.
Now that we saved a snapshot, let's break the device to practice restoring the saved state. Open the CONSOLE and POWER ON the device.
Login with username:
pi
and password:raspberry
, typesudo rm -rf /etc
, then hitReturn
.Click Restart on the top-right.
The Console should display
localhost login:
. This will validate the device is broken, as it is unable to log in normally.We will now restore the snapshot. With the device still powered on, click the Snapshot button then click RESTORE next to Snapshot #1. Wait while the snapshot state is loaded.
After the device boots up, validate that the device is working by logging in with username:
pi
and password:raspberry
.
In the next tutorial, we will connect our device to a VPN. Connecting to the VPN