summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandreas tux-book2024-02-14 19:46:08 +0100
committerandreas tux-book2024-02-14 19:46:08 +0100
commitf93fd4d14262527708ad4af8cce7801bf9d310fc (patch)
tree2742e6d3bbc64fc0f3a6970acb3d6ffe96b0c4f5
parentf1178188af4add784ebfb15913e02f1e64e09632 (diff)
downloadUnspecifiedGarbage-f93fd4d14262527708ad4af8cce7801bf9d310fc.zip
UnspecifiedGarbage-f93fd4d14262527708ad4af8cce7801bf9d310fc.tar.gz
(qemu) note how to compact snapshot with rebase
-rw-r--r--doc/note/qemu/qemu.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/note/qemu/qemu.txt b/doc/note/qemu/qemu.txt
index f7c9498..a4db753 100644
--- a/doc/note/qemu/qemu.txt
+++ b/doc/note/qemu/qemu.txt
@@ -34,6 +34,14 @@ Windoof:
qemu-img convert -O qcow2 input.qcow output.qcow2
+## Shrink snapshot layer
+
+ qemu-img convert -O qcow2 snapLayer.qcow2 tmpFullClone.qcow2
+ qemu-img create -f qcow2 -b tmpFullClone.qcow2 diff.qcow2
+ qemu-img rebase -b base.qcow2 tmpDiff.qcow2
+ mv tmpDiff.qcow2 snapLayer.qcow2
+
+
## Example Params (Usage: CopyPaste, then delege what is not needed)
qemu-system-x86_64 \
-accel kvm:whpx:hax:tcg -m size=2G -smp cores=$(nproc) \