2 ----------------------------------------------------------------------
4 (1) Create fedora-33 "dirty" disk image (simulating a long-running VM)
5 on a remote SSH server. See "create.sh" script.
7 (2) The remote server is located over a 100 Mbps ethernet link. Both
8 the client and server have plenty of local CPU and are otherwise idle
13 scp remote:fedora-33.img local.img
15 (4) qcow2 snapshot + sparsify + qemu-img convert. The time taken to
16 run all of the following operations in series. See "testA4.sh".
18 (5) As above but without sparsify. See "testA5.sh".
20 (6) As above but using nbdkit + nbdcopy. See "testA6.sh".
23 Results of scenario (A)
24 ----------------------------------------------------------------------
29 (4) (sparsify + qemu-img convert) 2m21
31 (5) (qemu-img convert) 59m39
33 4.1G -rw-r--r--. 1 rjones rjones 32G Feb 10 11:11 local.img
35 (6) (nbdkit + nbdcopy) 3m49 [probably lock contention in cow filter]
37 1.2G -rw-r--r--. 1 rjones rjones 32G Feb 10 11:16 local.img
42 ----------------------------------------------------------------------
44 (1) Create local OVA file from disk image in scenario (A) using:
46 tar -cf test.ova -C /path/to/remote fedora-33.img
47 # -S option is not usually used with OVA files
49 (2) Time how long it takes to copy the file:
51 time cp test.ova test2.ova
53 (3) Time how long it takes to unpack this using tar -xf:
55 time tar -xf test.ova fedora-33.img
57 (4) Time how long it takes to copy out the sparsified image.
61 Results of scenario (B)
62 ----------------------------------------------------------------------
68 (4) (sparsify + qemu-img convert) 7.6s