Ref: https://github.com/harvester/harvester/issues/553
Verify Steps:
- Install Harvester with any nodes
- Create an Image for VM creation
- Create
vm1
with the image and an additional data volumedisk-1
- Login to
vm1
, execute following commands:fdisk /dev/vdb
with new and primary partitionmkfs.ext4 /dev/vdb1
mkdir vdb && mount -t ext4 /dev/vdb1 vdb
ping 127.0.0.1 | tee -a test vdb/test
- Navigate to Virtual Machines page, click Take Snapshot button on
vm1
’s details, namedvm1s1
- Execute
sync
onvm1
and Take Snapshot namedvm1s2
- Interrupt
ping...
command andrm test && sync
, then Take Snapshot namedvm1s3
- Restore 3 snapshots into New VM:
vm1s1r
,vm1s2r
andvm1s3r
- Content of
test
andvdb/test
should be the same in VM, and different in other restored VMs. - Restore snapshots with Replace Existing
- Content of
test
andvdb/test
in restoredvm1
from the snapshot, should be the same as the VM restored with the same snapshot.