Improve snapshot instructions

This commit is contained in:
Ciro Santilli
2018-02-14 06:46:00 +00:00
parent 0b09391695
commit 1e0f0b4928

View File

@@ -1592,20 +1592,21 @@ To test it out, login into the VM, and run:
/count.sh
....
Then on another shell, open the monitor:
On another shell, take a snapshot:
....
./runqemu
savevm my_snap_id
echo 'savevm my_snap_id' | ./qemumonitor
....
The counting continues. The, if we load the vm:
The counting continues.
Restore the snapshot:
....
loadvm my_snap_id
echo 'loadvm my_snap_id' | ./qemumonitor
....
the counting goes back to where we saved. This shows that CPU and memory states were reverted.
and the counting goes back to where we saved. This shows that CPU and memory states were reverted.
We can also verify that the disk state is also reversed. Guest:
@@ -1616,7 +1617,7 @@ echo 0 >f
Monitor:
....
savevm my_snap_id
echo 'savevm my_snap_id' | ./qemumonitor
....
Guest:
@@ -1628,7 +1629,7 @@ echo 1 >f
Monitor:
....
loadvm
echo 'loadvm my_snap_id' | ./qemumonitor
....
Guest: