7 export title
="Setting up for libvirt"
10 remember
'virt-install --import --name=f32 --ram=2048 --os-variant=fedora32 --disk=path=Base1.qcow2,format=qcow2 --disk=path=Base2.qcow2,format=qcow2'
11 remember
'virsh start f32'
12 remember
'ip=root@$(virsh domifaddr f32 | sed -n "s,.*ipv4 *\(.*\)/.*,\1,p")'
13 remember
'ssh $ip "bash -c '\''mke2fs /dev/vdb; mkdir -p /mnt/img; mount /dev/vdb /mnt/img; touch /mnt/img/a; sync'\''"'
14 remember
'virsh shutdown f32'
17 pushd $talkdir/demo.d
>/dev
/null
18 reset_files backup-2900.d
19 virsh undefine f32
>& /dev
/null
21 if [ ! -f ..
/backup-3000.d
/Base1.qcow2
]; then
22 echo 'First run, copying...'
23 cp Base1.qcow2 Base2.qcow2 ..
/backup-3000.d
/
24 virsh dumpxml f32
> ..
/backup-3000.d
/f32.xml