mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
Improve snapshot instructions
This commit is contained in:
17
README.adoc
17
README.adoc
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user