Lab 05: Snapshots And Restore
Create a stopped-VM snapshot, change the VM, then restore the clean baseline.
You will learn:
- why snapshots require stopped VMs
- how
yeast snapshotcreates a reset point - how
yeast snapshotslists reset points - how
yeast restorereplaces the current disk state - why restore is intentionally explicit
What You Will Build
Before You Start
Run:
Step 1: Create And Start
Step 2: Create A Baseline
Snapshots require the VM to be stopped.
Expected result:
- a snapshot named
baseline - metadata showing the snapshot belongs to
web
Step 3: Change The VM
The marker file proves the guest disk has changed after the baseline.
Step 4: Restore The Baseline
If the last command succeeds, restore worked.
Warning
Restore replaces the current instance disk with the snapshot disk. Any changes made after the snapshot are removed.
Step 5: Delete The Snapshot
Use this when you no longer need a reset point.
Clean Up
What You Learned
Snapshots are per-instance reset points. They are safest when the VM is stopped because the disk is not changing underneath Yeast.
Next Lab
Continue with Multi-VM Private Networking.