more polish to 5000* demo
[eblake-techtalks.git] / 5100-libvirt-demo-continued.term
blobcc58c643a3f14453244898f1369b9bfe53eb983d
1 #!/bin/bash
3 source functions
5 # Title.
6 export title="Full push backup with bitmap creation"
8 # History.
9 remember 'virsh start f32'
10 remember 'cat backup.xml'
11 remember 'cat checkpoint.xml'
12 remember 'qemu-img create -f qcow2 Full.qcow2 6G'
13 remember 'virsh backup-begin --reuse-external f32 backup.xml checkpoint.xml'
14 remember 'virsh backup-dumpxml f32'
15 remember ''
17 pushd $talkdir/demo.d >/dev/null
18 cat > backup.xml <<EOF
19 <domainbackup mode='push'>
20 <disks>
21 <disk name='vda' type='file'>
22 <target file='$PWD/Full.qcow2'/>
23 <driver type='qcow2'/>
24 </disk>
25 </disks>
26 </domainbackup>
27 EOF
28 cat > checkpoint.xml <<\EOF
29 <domaincheckpoint>
30 <name>check1</name>
31 </domaincheckpoint>
32 EOF
33 rm -f Backup.qcow2
34 reset_f32 backup-5100.d
35 terminal
36 popd >/dev/null