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